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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x644
mov eax, dword [0x4f4284]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
mov byte [ebp - 0x58a], al
cmp dword [esi + 0x10], 0x104
mov byte [ebp - 0x590], al
mov dword [ebp - 0x594], ebx
jae 0x439998
cmp dword [edi + 0x10], 0x104
jae 0x439998
push edi
lea ecx, [ebp - 0x1c]
call fcn.004379c0
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x439789
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0043a6e0
add esp, 8
lea ecx, [ebp - 0x1c]
push eax
call fcn.00437ad0
lea ecx, [ebp - 0x34]
call fcn.00434920
cmp dword [ebp - 0xc], ebx
je 0x4397c4
lea eax, [ebp - 0x94]
push esi
push eax
call fcn.0043a6e0
add esp, 8
cmp dword [ebp - 0x84], ebx
je 0x439970
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00437b40
test al, al
jne 0x439970
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x94]
call fcn.00439130
test al, al
jne 0x439970
xor eax, eax
lea ecx, [ebp - 0x338]
cmp byte [ebp - 0x58a], al
setne al
lea eax, [eax*2 + 1]
push eax
push dword [ebp - 0x590]
push esi
call fcn.00446930
push esi
call fcn.0043a8f0
add esp, 4
test al, al
jne 0x4397e1
lea ecx, [ebp - 0x338]
xor bl, bl
call fcn.00446ab0
jmp 0x439972
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00438610
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0043a6e0
add esp, 8
lea ecx, [ebp - 0x1c]
push eax
call fcn.00437ad0
lea ecx, [ebp - 0x34]
call fcn.00434920
lea ecx, [ebp - 0x64]
call fcn.00434920
cmp dword [ebp - 0xc], ebx
jne 0x4396fb
lea ecx, [ebp - 0x1c]
xor bl, bl
call fcn.00434920
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d8a1
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [ebp - 0x4c]
call fcn.004379c0
push esi
call fcn.0043a330
add esp, 4
mov byte [ebp - 0x58b], al
lea ecx, [ebp - 0x7c]
mov byte [ebp - 0x589], 1
push esi
call fcn.004379c0
cmp byte [ebp - 0x58a], bl
je 0x43983a
push edi
call fcn.0043a330
add esp, 4
test al, al
je 0x43983a
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
call fcn.00438610
push eax
lea ecx, [ebp - 0x7c]
call fcn.00437ad0
lea ecx, [ebp - 0x64]
call fcn.00434920
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [ebp - 0x3c], 0
je 0x439941
push edi
lea ecx, [ebp - 0x34]
call fcn.004379c0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00437bf0
test al, al
je 0x43987b
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x7c]
call fcn.004380b0
test al, al
je 0x439964
cmp byte [ebp - 0x58b], 0
lea eax, [ebp - 0x34]
push eax
je 0x4398b2
call fcn.0043a330
add esp, 4
test al, al
jne 0x4398dc
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
push 0
cmovae eax, dword [ebp - 0x34]
push eax
call esi
test eax, eax
jne 0x4398dc
test bl, 2
je 0x4398d5
and ebx, 0xfffffffd
jmp 0x4398ca
lea eax, [ebp - 0x4c]
push eax
call fcn.004399b0
add esp, 8
test al, al
jne 0x4398dc
test bl, 4
je 0x4398d5
and ebx, 0xfffffffb
lea ecx, [ebp - 0x644]
call fcn.00431880
mov byte [ebp - 0x589], 0
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x338]
call fcn.00446c20
push eax
lea ecx, [ebp - 0x4c]
call fcn.00437ad0
lea ecx, [ebp - 0x64]
call fcn.00434920
cmp dword [ebp - 0x3c], 0
je 0x43992c
lea eax, [ebp - 0x588]
push eax
lea ecx, [ebp - 0x338]
call fcn.00446b30
mov ecx, eax
call fcn.00446c10
lea ecx, [ebp - 0x588]
mov byte [ebp - 0x58b], al
call fcn.004474c0
lea ecx, [ebp - 0x34]
call fcn.00434920
cmp byte [ebp - 0x589], 0
jne 0x439840
mov bl, byte [ebp - 0x589]
lea ecx, [ebp - 0x7c]
call fcn.00434920
lea ecx, [ebp - 0x4c]
call fcn.00434920
lea ecx, [ebp - 0x338]
call fcn.00446ab0
jmp 0x439972
lea ecx, [ebp - 0x34]
xor bl, bl
call fcn.00434920
jmp 0x439947
xor bl, bl
lea ecx, [ebp - 0x94]
call fcn.00434920
lea ecx, [ebp - 0x1c]
call fcn.00434920
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d8a1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049d8a1
mov esp, ebp
pop ebp
ret