Function at 0x430090
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c29e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0x24], 0
call fcn.004b5d44
push eax
lea ecx, [ebp - 0x14]
call fcn.00431020
mov dword [ebp - 4], 0
push 0x104
lea ecx, [ebp - 0x14]
call fcn.0041bc50
push eax
push 0
push 0
push 0x801a
push 0
call dword [0x4c84e8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x2c], 0xffffffff
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x430123
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x430114
mov dword [ebp - 0x2c], 0
jmp 0x430123
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0049873d
add esp, 4
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x14]
call fcn.0041bca0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x30], ecx
cmp dword [ebp - 0x30], 0
jne 0x430174
push 0x4c89d4
mov ecx, dword [ebp + 8]
call fcn.00401e40
mov edx, dword [ebp - 0x24]
or edx, 1
mov dword [ebp - 0x24], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
sub eax, 0x10
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
call fcn.0042a490
mov eax, dword [ebp + 8]
jmp 0x430348
push 1
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00430710
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x40]
mov eax, dword [edx]
mov dword [ebp - 0x3c], eax
push 0x4cd7a8
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.0049981b
add esp, 8
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0x15], al
lea ecx, [ebp - 0x1c]
call fcn.0044e670
movzx edx, byte [ebp - 0x15]
test edx, edx
je 0x4301fd
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
sub edx, 1
push edx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x14]
call fcn.00419330
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x4c], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x14]
call fcn.00402240
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0044e670
mov eax, dword [ebp - 0x14]
push eax
call dword [0x4c8504]
test eax, eax
jne 0x430217
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, 0x4cdfa4
test edx, edx
jne 0x430229
mov dword [ebp - 0x54], 0
jmp 0x430239
push 0x4cdfa4
call fcn.0049873d
add esp, 4
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
push eax
push 0x4cdfa4
lea ecx, [ebp - 0x14]
call fcn.00401ba0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [0x4c8504]
test eax, eax
jne 0x430264
push 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, 0x4cdf90
test eax, eax
jne 0x430276
mov dword [ebp - 0x58], 0
jmp 0x430286
push 0x4cdf90
call fcn.0049873d
add esp, 4
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
push ecx
push 0x4cdf90
lea ecx, [ebp - 0x14]
call fcn.00401ba0
mov edx, dword [ebp - 0x14]
push edx
call dword [0x4c8504]
test eax, eax
jne 0x4302b1
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, 0x4cdf78
test ecx, ecx
jne 0x4302c3
mov dword [ebp - 0x70], 0
jmp 0x4302d3
push 0x4cdf78
call fcn.0049873d
add esp, 4
mov dword [ebp - 0x70], eax
mov edx, dword [ebp - 0x70]
push edx
push 0x4cdf78
lea ecx, [ebp - 0x14]
call fcn.00401ba0
mov eax, dword [ebp - 0x14]
push eax
call dword [0x4c8504]
test eax, eax
jne 0x4302fe
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [ebp - 0x14]
sub edx, 0x10
mov dword [ebp - 0x88], edx
mov eax, dword [ebp - 0x88]
push eax
call fcn.00402570
add esp, 4
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x8c]
add ecx, 0x10
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [ebp - 0x24]
or eax, 1
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0044e670
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4