Function at 0x439aa0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5851c8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x6069b0]
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
xor eax, eax
mov dword [ebp - 0x14], 7
push 0xffffffffffffffff
push eax
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00406a80
xor eax, eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
test ecx, ecx
setne al
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x439b21
push 1
push 0x5e4cfc
lea ecx, [ebp - 0x28]
call fcn.0043bb00
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x50], eax
push 1
push 3
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x44], 0x5c
call fcn.0043b870
mov esi, eax
cmp esi, 0xffffffff
je 0x439bf8
mov dword [ebp - 0x44], 0x5c
nop
push esi
push ecx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.0043b6b0
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.0043b540
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x439bd2
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x7fffffff
ja 0x439c89
add eax, eax
cmp eax, 0x1000
jb 0x439bc9
test cl, 0x1f
jne 0x439c89
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x439c89
sub ecx, eax
cmp ecx, 4
jb 0x439c89
cmp ecx, 0x23
ja 0x439c89
mov ecx, eax
push ecx
call fcn.00551edc
add esp, 4
push 1
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x28]
call fcn.0043b870
mov esi, eax
cmp esi, 0xffffffff
jne 0x439b60
mov eax, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x58]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x54]
mov eax, 0x2aaaaaab
sub ecx, ebx
xor edi, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x44], eax
je 0x439c50
mov esi, ebx
cmp dword [esi + 0x14], 8
jb 0x439c21
mov eax, dword [esi]
jmp 0x439c23
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x439c47
cmp dword [esi + 0x14], 8
jb 0x439c38
mov eax, dword [esi]
jmp 0x439c3a
mov eax, esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x439c8e
inc edi
add esi, 0x18
cmp edi, dword [ebp - 0x44]
jb 0x439c17
mov esi, dword [ebp - 0x4c]
test ebx, ebx
je 0x439cd6
push dword [ebp - 0x4c]
mov edx, dword [ebp - 0x54]
push ecx
mov ecx, ebx
call fcn.0043bfc0
mov ecx, dword [ebp - 0x48]
mov eax, 0x2aaaaaab
sub ecx, ebx
add esp, 8
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0xaaaaaaa
jbe 0x439c92
call fcn.0055ebf1
xor esi, esi
jmp 0x439c53
lea eax, [eax + eax*2]
shl eax, 3
cmp eax, 0x1000
jb 0x439ccd
test bl, 0x1f
je 0x439ca9
call fcn.0055ebf1
mov eax, dword [ebx - 4]
cmp eax, ebx
jb 0x439cb5
call fcn.0055ebf1
sub ebx, eax
cmp ebx, 4
jae 0x439cc1
call fcn.0055ebf1
cmp ebx, 0x23
jbe 0x439ccb
call fcn.0055ebf1
mov ebx, eax
push ebx
call fcn.00551edc
add esp, 4
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x439d33
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x7fffffff
jbe 0x439cee
call fcn.0055ebf1
add eax, eax
cmp eax, 0x1000
jb 0x439d2a
test byte [ebp - 0x28], 0x1f
je 0x439d02
call fcn.0055ebf1
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax - 4]
cmp ecx, eax
jb 0x439d11
call fcn.0055ebf1
mov eax, dword [ebp - 0x28]
sub eax, ecx
cmp eax, 4
jae 0x439d20
call fcn.0055ebf1
cmp eax, 0x23
jbe 0x439d2a
call fcn.0055ebf1
push ecx
call fcn.00551edc
add esp, 4
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.00551ee1
mov esp, ebp
pop ebp
ret