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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8d18
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x4fe37c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x88], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00406f20
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00406f20
mov byte [ebp - 4], 2
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004bc5b0
add esp, 0xc
mov byte [ebp - 0x2d], al
movzx eax, byte [ebp - 0x2d]
test eax, eax
je 0x483a69
mov byte [ebp - 0x2d], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x24]
and edx, 2
je 0x4839f4
push 0x4d7440
lea ecx, [ebp - 0x4c]
call fcn.00407050
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00407030
push 1
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, dword [ebp - 0x88]
call fcn.004817f0
mov byte [ebp - 0x2d], al
movzx edx, byte [ebp - 0x2d]
test edx, edx
je 0x4839f4
lea ecx, [ebp - 0x4c]
call fcn.00407070
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4839f4
push 0
lea ecx, [ebp - 0x4c]
call fcn.00407070
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x2d], al
movzx eax, byte [ebp - 0x2d]
test eax, eax
jne 0x483a69
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x24]
and edx, 1
je 0x483a69
push 0x4d7444
lea ecx, [ebp - 0x2c]
call fcn.00407050
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00407030
push 1
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x88]
call fcn.004817f0
mov byte [ebp - 0x2d], al
movzx edx, byte [ebp - 0x2d]
test edx, edx
je 0x483a69
lea ecx, [ebp - 0x2c]
call fcn.00407070
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x483a69
push 0
lea ecx, [ebp - 0x2c]
call fcn.00407070
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x2d], al
movzx eax, byte [ebp - 0x2d]
test eax, eax
je 0x483b28
movzx ecx, byte [ebp + 0x28]
test ecx, ecx
je 0x483b28
push 0x2c
call fcn.0044527f
add esp, 4
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
je 0x483aa4
mov ecx, dword [ebp - 0x80]
call fcn.00470210
mov dword [ebp - 0x8c], eax
jmp 0x483aae
mov dword [ebp - 0x8c], 0
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0x7c], edx
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x74]
call fcn.00439f70
mov byte [ebp - 4], 3
mov byte [ebp - 0x54], 1
lea ecx, [ebp - 0x70]
call fcn.004183b0
movzx edx, al
test edx, edx
jne 0x483aed
push 0x4d7448
lea ecx, [ebp - 0x70]
call fcn.00407050
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x70]
call fcn.00407030
lea ecx, [ebp - 0x74]
push ecx
mov ecx, dword [ebp - 0x78]
call fcn.004701c0
push 0
mov edx, dword [ebp - 0x78]
push edx
mov ecx, dword [ebp - 0x88]
add ecx, 0x46c
call fcn.004b96f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x74]
call fcn.00439030
mov al, byte [ebp - 0x2d]
mov byte [ebp - 0x81], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00406fd0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00406fd0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00406fd0
mov al, byte [ebp - 0x81]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004443e3
mov esp, ebp
pop ebp
ret 0x24