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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x644
mov eax, dword [0x4de4e4]
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 0x42a2ea
cmp dword [edi + 0x10], 0x104
jae 0x42a2ea
push edi
lea ecx, [ebp - 0x34]
call fcn.004275d0
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42a0cc
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0042ab50
add esp, 8
lea ecx, [ebp - 0x34]
push eax
call fcn.00427680
lea ecx, [ebp - 0x1c]
call fcn.00401f50
cmp dword [ebp - 0x24], ebx
je 0x42a107
lea eax, [ebp - 0x94]
push esi
push eax
call fcn.0042ab50
mov eax, dword [ebp - 0x84]
add esp, 8
test eax, eax
je 0x42a2c2
cmp dword [ebp - 0x24], eax
jb 0x42a088
lea ecx, [ebp - 0x94]
push ecx
push eax
push 0
lea ecx, [ebp - 0x34]
call fcn.0042ae80
test eax, eax
je 0x42a2c2
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.0043e360
push esi
call fcn.0042ad30
add esp, 4
test al, al
jne 0x42a124
lea ecx, [ebp - 0x338]
xor bl, bl
call fcn.0043e500
jmp 0x42a2c4
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x34]
call fcn.00428100
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0042ab50
add esp, 8
lea ecx, [ebp - 0x34]
push eax
call fcn.00427680
lea ecx, [ebp - 0x1c]
call fcn.00401f50
lea ecx, [ebp - 0x64]
call fcn.00401f50
cmp dword [ebp - 0x24], ebx
jne 0x42a04b
lea ecx, [ebp - 0x34]
xor bl, bl
call fcn.00401f50
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049510d
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [ebp - 0x4c]
call fcn.004275d0
push esi
call fcn.0042a7a0
add esp, 4
mov byte [ebp - 0x58b], al
lea ecx, [ebp - 0x7c]
mov byte [ebp - 0x589], 1
push esi
call fcn.004275d0
cmp byte [ebp - 0x58a], bl
je 0x42a17d
push edi
call fcn.0042a7a0
add esp, 4
test al, al
je 0x42a17d
lea eax, [ebp - 0x64]
mov ecx, esi
push eax
call fcn.00428100
push eax
lea ecx, [ebp - 0x7c]
call fcn.00427680
lea ecx, [ebp - 0x64]
call fcn.00401f50
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp dword [ebp - 0x3c], 0
je 0x42a293
push edi
lea ecx, [ebp - 0x1c]
call fcn.004275d0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00427750
test al, al
je 0x42a1be
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00427c30
test al, al
je 0x42a2b6
cmp byte [ebp - 0x58b], 0
lea eax, [ebp - 0x1c]
je 0x42a203
cmp dword [ebp - 8], 8
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42a1e5
shr eax, 4
and al, 1
jne 0x42a22e
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
push 0
cmovae eax, dword [ebp - 0x1c]
push eax
call esi
test eax, eax
jne 0x42a22e
test bl, 4
je 0x42a227
and ebx, 0xfffffffb
jmp 0x42a21c
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0042a300
add esp, 8
test al, al
jne 0x42a22e
test bl, 8
je 0x42a227
and ebx, 0xfffffff7
lea ecx, [ebp - 0x644]
call fcn.00422910
mov byte [ebp - 0x589], 0
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x338]
call fcn.0043e620
push eax
lea ecx, [ebp - 0x4c]
call fcn.00427680
lea ecx, [ebp - 0x64]
call fcn.00401f50
cmp dword [ebp - 0x3c], 0
je 0x42a27e
lea eax, [ebp - 0x588]
push eax
lea ecx, [ebp - 0x338]
call fcn.0043e580
mov ecx, eax
call fcn.0043e610
lea ecx, [ebp - 0x588]
mov byte [ebp - 0x58b], al
call fcn.00495c20
lea ecx, [ebp - 0x1c]
call fcn.00401f50
cmp byte [ebp - 0x589], 0
jne 0x42a183
mov bl, byte [ebp - 0x589]
lea ecx, [ebp - 0x7c]
call fcn.00401f50
lea ecx, [ebp - 0x4c]
call fcn.00401f50
lea ecx, [ebp - 0x338]
call fcn.0043e500
jmp 0x42a2c4
lea ecx, [ebp - 0x1c]
xor bl, bl
call fcn.00401f50
jmp 0x42a299
xor bl, bl
lea ecx, [ebp - 0x94]
call fcn.00401f50
lea ecx, [ebp - 0x34]
call fcn.00401f50
pop edi
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049510d
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.0049510d
mov esp, ebp
pop ebp
ret