Function at 0x4645f0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50fc0e
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [0x55e2f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov ecx, dword [ebp + 0x10]
xor esi, esi
mov edi, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x2c8], eax
mov dword [ebp - 0x2d4], ecx
mov dword [ebp - 0x2cc], ebx
mov dword [ebp - 0x2d8], ebx
mov dword [ebp - 0x2d0], esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x464985
mov ebx, dword [ebp - 0x2c8]
lea edx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x464664
sub ebx, edx
mov esi, edi
sar ebx, 1
mov dword [ebp - 0x2dc], ebx
mov ebx, dword [ebp - 0x2cc]
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x464684
sub esi, edx
sar esi, 1
mov dword [ebp - 0x2e0], esi
mov esi, 0
test cl, 0x10
je 0x46498c
push dword [ebp - 0x2c8]
lea ecx, [ebp - 0x70]
call fcn.00403e70
push str..
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 4], esi
push eax
call fcn.00403cd0
add esp, 0xc
mov eax, dword [ebp - 0x5c]
mov byte [ebp - 4], 2
cmp eax, 8
jb 0x4646e3
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.004052a0
xor eax, eax
mov dword [ebp - 0x5c], 7
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x2c0]
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push ecx
push eax
mov dword [ebp - 0x60], 0
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov dword [ebp - 0x2cc], eax
cmp eax, 0xffffffff
je 0x46495f
nop
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp word [ebp - 0x294], ax
jne 0x464741
xor ecx, ecx
jmp 0x46475f
lea ecx, [ebp - 0x294]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x464750
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x40]
call fcn.004051a0
push 1
push 0x516c70
push dword [ebp - 0x30]
or ebx, 1
mov byte [ebp - 4], 3
push 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2d8], ebx
call fcn.00408610
test eax, eax
je 0x464810
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [ebp - 0x294], ax
jne 0x4647b9
xor ecx, ecx
jmp 0x4647d1
lea ecx, [ebp - 0x294]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4647c2
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x28]
call fcn.004051a0
push 2
push 0x51d3f4
push dword [ebp - 0x18]
or ebx, 2
mov dword [ebp - 4], 4
push 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2d8], ebx
call fcn.00408610
mov byte [ebp - 0x2c1], 0
test eax, eax
jne 0x464817
mov byte [ebp - 0x2c1], 1
test bl, 2
je 0x464848
mov eax, dword [ebp - 0x14]
and ebx, 0xfffffffd
cmp eax, 8
jb 0x464834
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004052a0
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 2
test bl, 1
je 0x46486c
mov eax, dword [ebp - 0x2c]
and ebx, 0xfffffffe
cmp eax, 8
jb 0x46486c
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004052a0
cmp byte [ebp - 0x2c1], 0
jne 0x464923
mov esi, dword [ebp - 0x2c8]
lea eax, [ebp - 0x294]
push eax
mov eax, dword [ebp - 0x2dc]
push 0x521e00
lea eax, [esi + eax*2]
push eax
call fcn.004054c0
lea eax, [ebp - 0x294]
push eax
mov eax, dword [ebp - 0x2e0]
push 0x521e00
lea eax, [edi + eax*2]
push eax
call fcn.004054c0
add esp, 0x18
test byte [ebp - 0x2c0], 0x10
je 0x464909
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x4648ed
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push edi
mov esi, eax
call fcn.00414f30
add esp, 4
test eax, eax
je 0x464976
mov esi, dword [ebp - 0x2c8]
push dword [ebp - 0x2d4]
push edi
push esi
call fcn.004645f0
mov esi, eax
add esp, 0xc
mov dword [ebp - 0x2d0], esi
test esi, esi
jmp 0x464921
push dword [ebp - 0x2d4]
push edi
push esi
call fcn.00463fa0
add esp, 0xc
mov dword [ebp - 0x2d0], eax
test eax, eax
jne 0x46493e
lea eax, [ebp - 0x2c0]
push eax
push dword [ebp - 0x2cc]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x464720
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebp - 0x2cc]
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
push esi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov esi, dword [ebp - 0x2d0]
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x4649a3
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004052a0
jmp 0x4649a3
push esi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
lea ecx, [ebp - 0x58]
call fcn.00495b40
mov eax, 1
jmp 0x4649a5
push dword [ebp - 0x2d4]
push edi
push dword [ebp - 0x2c8]
call fcn.00463fa0
add esp, 0xc
mov esi, eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret