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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x488d64
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.0040efd0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x64]
mov dword [ebp - 0xc4], ecx
mov ecx, dword [ebp - 0xc4]
call fcn.004353d0
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.00424120
push eax
call fcn.00435350
add esp, 0x10
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
je 0x4355a4
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.00435400
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.0041f5b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x12c]
call fcn.004244d0
jmp 0x43560e
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.00435400
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.0041f5b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x114]
call fcn.004244d0
jmp 0x435624
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, 1
test edx, edx
jne 0x43551a
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 0x435655
mov dword [ebp - 0x38], 1
jmp 0x43565c
mov dword [ebp - 0x38], 0
mov cl, byte [ebp - 0x38]
mov byte [ebp - 0xd], cl
movzx edx, byte [ebp - 0xd]
test edx, edx
je 0x435678
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.0040efd0
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 0x4356b8
mov dword [ebp - 0x40], 1
jmp 0x4356bf
mov dword [ebp - 0x40], 0
mov al, byte [ebp - 0x40]
mov byte [ebp - 0xe], al
movzx ecx, byte [ebp - 0xe]
test ecx, ecx
je 0x4356e1
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 0x4358c9
mov dword [ebp - 0x1c], 1
jmp 0x43571d
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 0x4358c9
push 0x497c14
lea eax, [ebp - 0xf4]
push eax
lea ecx, [ebp - 0x15c]
push ecx
call fcn.0040d250
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.004038c0
add esp, 0xc
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xa4]
push eax
lea ecx, [ebp - 0xf4]
call fcn.004041c0
lea ecx, [ebp - 0x144]
call fcn.004244d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x15c]
call fcn.004244d0
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 0x435807
mov dword [ebp - 0x4c], 1
jmp 0x43580e
mov dword [ebp - 0x4c], 0
mov cl, byte [ebp - 0x4c]
mov byte [ebp - 0xf], cl
movzx edx, byte [ebp - 0xf]
test edx, edx
je 0x435830
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 0x4358c4
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 0x435877
mov dword [ebp - 0x54], 1
jmp 0x43587e
mov dword [ebp - 0x54], 0
mov al, byte [ebp - 0x54]
mov byte [ebp - 0x10], al
movzx ecx, byte [ebp - 0x10]
test ecx, ecx
je 0x4358a0
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 0x435714
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.004244d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
call fcn.00436340
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xdc]
call fcn.004244d0
mov eax, dword [ebp - 0xc0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret