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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459784
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xfc
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xa8]
call fcn.00406760
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x34]
call fcn.00402250
nop
lea edx, [ebp - 0x30]
mov dword [ebp - 0x90], edx
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0xa8]
call fcn.00401910
mov dword [ebp - 0x3c], eax
push 0x5c
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call fcn.0040cc80
add esp, 0x10
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0xffffffff
je 0x427b80
lea edx, [ebp - 0x19]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x10]
push edx
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0xd8]
call fcn.00406130
mov ecx, dword [ebp - 0x14]
or ecx, 1
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 2
lea edx, [ebp - 0xd8]
push edx
lea ecx, [ebp - 0x30]
call fcn.00401e70
nop
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xd8]
call fcn.00401940
nop
jmp 0x427be1
lea eax, [ebp - 0x1a]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 0x10]
push edx
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0xc0]
call fcn.00406130
mov ecx, dword [ebp - 0x14]
or ecx, 2
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 3
lea edx, [ebp - 0xc0]
push edx
lea ecx, [ebp - 0x30]
call fcn.00401e70
nop
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xc0]
call fcn.00401940
nop
jmp 0x427bf7
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, 1
test ecx, ecx
jne 0x427aee
lea edx, [ebp - 0x30]
mov dword [ebp - 0x4c], edx
xor eax, eax
imul ecx, eax, 0x18
mov edx, dword [ebp - 0x4c]
add ecx, dword [edx]
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp - 0x50]
call fcn.00401910
push eax
lea ecx, [ebp - 0x8c]
call fcn.00406760
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x8c]
call fcn.00401910
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x427d33
mov dword [ebp - 0x18], 1
jmp 0x427c4e
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
mov ecx, dword [edx + 4]
sub ecx, dword [eax]
mov eax, ecx
cdq
mov ecx, 0x18
idiv ecx
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x54]
cmp dword [ebp - 0x18], edx
jge 0x427d33
lea eax, [ebp - 0x30]
mov dword [ebp - 0x58], eax
imul ecx, dword [ebp - 0x18], 0x18
mov edx, dword [ebp - 0x58]
add ecx, dword [edx]
mov dword [ebp - 0x5c], ecx
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x68], eax
push 0x460808
lea ecx, [ebp - 0x8c]
push ecx
lea edx, [ebp - 0x108]
push edx
call fcn.00401da0
add esp, 0xc
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x6c], ecx
mov edx, dword [ebp - 0x68]
push edx
mov eax, dword [ebp - 0x6c]
push eax
lea ecx, [ebp - 0xf0]
push ecx
call fcn.00406190
add esp, 0xc
mov dword [ebp - 0x70], eax
mov edx, dword [ebp - 0x70]
push edx
lea ecx, [ebp - 0x8c]
call fcn.00405fa0
lea ecx, [ebp - 0xf0]
call fcn.00401940
nop
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x108]
call fcn.00401940
nop
lea ecx, [ebp - 0x8c]
call fcn.00401910
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x427d2e
push 0
lea ecx, [ebp - 0x8c]
call fcn.00401910
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
jmp 0x427c45
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x8c]
call fcn.00401940
nop
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00401890
nop
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call fcn.00401940
nop
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret