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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad984
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xdc]
call fcn.00425fd0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x64]
mov dword [ebp - 0xc4], ecx
mov ecx, dword [ebp - 0xc4]
call fcn.00401ff0
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], 0
push 0x5c
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0xcc]
push eax
lea ecx, [ebp - 0xdc]
call fcn.00401be0
push eax
call fcn.0042a690
add esp, 0x10
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
je 0x458794
lea ecx, [ebp - 0xdc]
mov dword [ebp - 0xfc], ecx
lea edx, [ebp - 0x1d]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x14]
push edx
lea eax, [ebp - 0xdc]
push eax
lea ecx, [ebp - 0x12c]
call fcn.004204f0
mov ecx, dword [ebp - 0x18]
or ecx, 1
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 2
lea edx, [ebp - 0x12c]
push edx
lea ecx, [ebp - 0x64]
call fcn.00458650
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x12c]
call fcn.00401880
jmp 0x4587fe
lea eax, [ebp - 0xdc]
mov dword [ebp - 0xf8], eax
lea ecx, [ebp - 0x1e]
mov dword [ebp - 0x6c], ecx
mov edx, dword [ebp - 0x6c]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0xdc]
push ecx
lea ecx, [ebp - 0x114]
call fcn.004204f0
mov edx, dword [ebp - 0x18]
or edx, 2
mov dword [ebp - 0x18], edx
mov byte [ebp - 4], 3
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x64]
call fcn.00458650
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x114]
call fcn.00401880
jmp 0x458814
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, 1
test edx, edx
jne 0x45870a
lea eax, [ebp - 0x64]
mov dword [ebp - 0x70], eax
xor ecx, ecx
imul edx, ecx, 0x18
mov eax, dword [ebp - 0x70]
add edx, dword [eax]
mov dword [ebp - 0x74], edx
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x14], 8
jb 0x458845
mov dword [ebp - 0x38], 1
jmp 0x45884c
mov dword [ebp - 0x38], 0
mov cl, byte [ebp - 0x38]
mov byte [ebp - 0xd], cl
movzx edx, byte [ebp - 0xd]
test edx, edx
je 0x458868
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
mov dword [ebp - 0x78], ecx
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0x80]
push edx
lea ecx, [ebp - 0xf4]
call fcn.00425fd0
mov byte [ebp - 4], 4
lea eax, [ebp - 0xf4]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x14], 8
jb 0x4588a8
mov dword [ebp - 0x40], 1
jmp 0x4588af
mov dword [ebp - 0x40], 0
mov al, byte [ebp - 0x40]
mov byte [ebp - 0xe], al
movzx ecx, byte [ebp - 0xe]
test ecx, ecx
je 0x4588d1
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x88], edx
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x8c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x458ab9
mov dword [ebp - 0x1c], 1
jmp 0x45890d
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
lea eax, [ebp - 0x64]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x48]
mov eax, dword [ecx + 4]
sub eax, dword [edx]
cdq
mov ecx, 0x18
idiv ecx
mov dword [ebp - 0x90], eax
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x90]
jge 0x458ab9
push 0x4b6efc
lea eax, [ebp - 0xf4]
push eax
lea ecx, [ebp - 0x15c]
push ecx
call fcn.00401e00
add esp, 0xc
mov dword [ebp - 0x94], eax
mov edx, dword [ebp - 0x94]
mov dword [ebp - 0xa0], edx
mov byte [ebp - 4], 5
lea eax, [ebp - 0x64]
mov dword [ebp - 0x98], eax
imul ecx, dword [ebp - 0x1c], 0x18
mov edx, dword [ebp - 0x98]
add ecx, dword [edx]
mov dword [ebp - 0x9c], ecx
mov eax, dword [ebp - 0x9c]
push eax
mov ecx, dword [ebp - 0xa0]
push ecx
lea edx, [ebp - 0x144]
push edx
call fcn.00420590
add esp, 0xc
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
push eax
lea ecx, [ebp - 0xf4]
call fcn.004202d0
lea ecx, [ebp - 0x144]
call fcn.00401880
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x15c]
call fcn.00401880
lea ecx, [ebp - 0xf4]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x14], 8
jb 0x4589f7
mov dword [ebp - 0x4c], 1
jmp 0x4589fe
mov dword [ebp - 0x4c], 0
mov cl, byte [ebp - 0x4c]
mov byte [ebp - 0xf], cl
movzx edx, byte [ebp - 0xf]
test edx, edx
je 0x458a20
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov dword [ebp - 0xa8], ecx
mov edx, dword [ebp - 0xa8]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xac]
mov dword [ebp - 0xb0], ecx
mov edx, dword [ebp - 0xb0]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x458ab4
lea eax, [ebp - 0xf4]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x34]
cmp dword [edx + 0x14], 8
jb 0x458a67
mov dword [ebp - 0x54], 1
jmp 0x458a6e
mov dword [ebp - 0x54], 0
mov al, byte [ebp - 0x54]
mov byte [ebp - 0x10], al
movzx ecx, byte [ebp - 0x10]
test ecx, ecx
je 0x458a90
mov edx, dword [ebp - 0x34]
mov eax, dword [edx]
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0xb8], edx
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xbc], eax
push 0
mov ecx, dword [ebp - 0xbc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x458904
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0xc0], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xf4]
call fcn.00401880
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.004017e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xdc]
call fcn.00401880
mov eax, dword [ebp - 0xc0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret