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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5833c8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x6039b0]
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.00406a40
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 0x438fb1
push 1
push 0x5e2b74
lea ecx, [ebp - 0x28]
call fcn.0040d1d0
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.0043ac20
mov esi, eax
cmp esi, 0xffffffff
je 0x439088
mov dword [ebp - 0x44], 0x5c
nop
push esi
push ecx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.0043aae0
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call fcn.0043a9d0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x439062
mov ecx, dword [ebp - 0x40]
inc eax
cmp eax, 0x7fffffff
ja 0x439119
add eax, eax
cmp eax, 0x1000
jb 0x439059
test cl, 0x1f
jne 0x439119
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x439119
sub ecx, eax
cmp ecx, 4
jb 0x439119
cmp ecx, 0x23
ja 0x439119
mov ecx, eax
push ecx
call fcn.00550427
add esp, 4
push 1
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x28]
call fcn.0043ac20
mov esi, eax
cmp esi, 0xffffffff
jne 0x438ff0
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 0x4390e0
mov esi, ebx
cmp dword [esi + 0x14], 8
jb 0x4390b1
mov eax, dword [esi]
jmp 0x4390b3
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4390d7
cmp dword [esi + 0x14], 8
jb 0x4390c8
mov eax, dword [esi]
jmp 0x4390ca
mov eax, esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x43911e
inc edi
add esi, 0x18
cmp edi, dword [ebp - 0x44]
jb 0x4390a7
mov esi, dword [ebp - 0x4c]
test ebx, ebx
je 0x439166
push dword [ebp - 0x4c]
mov edx, dword [ebp - 0x54]
push ecx
mov ecx, ebx
call fcn.0043b1a0
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 0x439122
call fcn.0055d130
xor esi, esi
jmp 0x4390e3
lea eax, [eax + eax*2]
shl eax, 3
cmp eax, 0x1000
jb 0x43915d
test bl, 0x1f
je 0x439139
call fcn.0055d130
mov eax, dword [ebx - 4]
cmp eax, ebx
jb 0x439145
call fcn.0055d130
sub ebx, eax
cmp ebx, 4
jae 0x439151
call fcn.0055d130
cmp ebx, 0x23
jbe 0x43915b
call fcn.0055d130
mov ebx, eax
push ebx
call fcn.00550427
add esp, 4
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4391c3
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x7fffffff
jbe 0x43917e
call fcn.0055d130
add eax, eax
cmp eax, 0x1000
jb 0x4391ba
test byte [ebp - 0x28], 0x1f
je 0x439192
call fcn.0055d130
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax - 4]
cmp ecx, eax
jb 0x4391a1
call fcn.0055d130
mov eax, dword [ebp - 0x28]
sub eax, ecx
cmp eax, 4
jae 0x4391b0
call fcn.0055d130
cmp eax, 0x23
jbe 0x4391ba
call fcn.0055d130
push ecx
call fcn.00550427
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.0055042c
mov esp, ebp
pop ebp
ret