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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8d5b
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
push esi
push edi
mov eax, dword [0x4fe37c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xbc], ecx
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x483bbf
mov al, 1
jmp 0x48409c
push 1
mov ecx, dword [ebp - 0xbc]
add ecx, 0xf8
push ecx
mov ecx, dword [ebp - 0xbc]
call fcn.004817f0
mov byte [ebp - 0xd], al
movzx edx, byte [ebp + 8]
test edx, edx
je 0x483cf8
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x483cf8
mov ecx, dword [ebp - 0xbc]
add ecx, 0xf8
call fcn.00407070
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x483cf8
push 0
mov ecx, dword [ebp - 0xbc]
add ecx, 0xf8
call fcn.00407070
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0xd], al
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
jne 0x483cf8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0xbc]
add esi, 0xf8
sub esp, 0x1c
mov ecx, 7
mov edi, esp
rep movsd dword es:[edi], dword [esi]
push 0x4d7260
push 3
mov edx, dword [0x50393c]
push edx
call fcn.00498ba0
add esp, 0x28
push 1
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0xbc]
add ecx, 0xf8
sub esp, 0x1c
mov edx, esp
mov dword [ebp - 0x50], esp
push ecx
mov ecx, edx
call fcn.00406f90
mov dword [ebp - 0xc0], eax
lea ecx, [ebp - 0x4c]
call fcn.00491670
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xc8], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xc8]
push ecx
push 3
mov edx, dword [ebp - 0xbc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xbc]
mov edx, dword [eax + 0x2ec]
call edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.004911e0
xor al, al
jmp 0x48409c
mov ecx, dword [ebp - 0xbc]
call fcn.0047fca0
movzx eax, al
test eax, eax
jne 0x483e47
push 1
mov ecx, dword [ebp - 0xbc]
add ecx, 0xdc
push ecx
mov ecx, dword [ebp - 0xbc]
call fcn.004817f0
mov byte [ebp - 0xd], al
movzx edx, byte [ebp + 8]
test edx, edx
je 0x483e47
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x483e47
mov ecx, dword [ebp - 0xbc]
add ecx, 0xdc
call fcn.00407070
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x483e47
push 0
mov ecx, dword [ebp - 0xbc]
add ecx, 0xdc
call fcn.00407070
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0xd], al
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
jne 0x483e47
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
mov esi, dword [ebp - 0xbc]
add esi, 0xdc
sub esp, 0x1c
mov ecx, 7
mov edi, esp
rep movsd dword es:[edi], dword [esi]
push 0x4d7280
push 3
mov edx, dword [0x50393c]
push edx
call fcn.00498ba0
add esp, 0x28
push 1
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xbc]
add ecx, 0xdc
sub esp, 0x1c
mov edx, esp
mov dword [ebp - 0x7c], esp
push ecx
mov ecx, edx
call fcn.00406f90
mov dword [ebp - 0xcc], eax
lea ecx, [ebp - 0x78]
call fcn.00491670
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xd4], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0xd4]
push ecx
push 3
mov edx, dword [ebp - 0xbc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xbc]
mov edx, dword [eax + 0x2ec]
call edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.004911e0
xor al, al
jmp 0x48409c
movzx eax, byte [ebp + 8]
test eax, eax
je 0x483ec7
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
je 0x483ec7
movzx edx, byte [ebp + 0x10]
test edx, edx
je 0x483ec7
push 0x20
call fcn.0044527f
add esp, 4
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0
je 0x483e8b
mov ecx, dword [ebp - 0x84]
call fcn.004700d0
mov dword [ebp - 0xd8], eax
jmp 0x483e95
mov dword [ebp - 0xd8], 0
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0xbc]
movzx eax, byte [edx + 0x468]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0xbc]
add ecx, 0x46c
call fcn.004b96f0
push 1
mov edx, dword [ebp - 0xbc]
add edx, 0x14c
push edx
mov ecx, dword [ebp - 0xbc]
call fcn.004817f0
mov byte [ebp - 0xd], al
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x484006
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
je 0x484006
mov ecx, dword [ebp - 0xbc]
add ecx, 0x14c
call fcn.00407070
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x484006
push 0
mov ecx, dword [ebp - 0xbc]
add ecx, 0x14c
call fcn.00407070
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0xd], al
movzx edx, byte [ebp - 0xd]
test edx, edx
jne 0x484006
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
mov esi, dword [ebp - 0xbc]
add esi, 0x14c
sub esp, 0x1c
mov ecx, 7
mov edi, esp
rep movsd dword es:[edi], dword [esi]
push str.Failed_to_CreateDirectory__s_
push 3
mov eax, dword [0x50393c]
push eax
call fcn.00498ba0
add esp, 0x28
push 2
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0xbc]
add edx, 0x14c
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xb0], esp
push edx
call fcn.00406f90
mov dword [ebp - 0xdc], eax
lea ecx, [ebp - 0xac]
call fcn.00491670
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0xe4], eax
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0xe4]
push ecx
push 3
mov edx, dword [ebp - 0xbc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xbc]
mov edx, dword [eax + 0x2ec]
call edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.004911e0
xor al, al
jmp 0x48409c
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x484099
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
je 0x484099
movzx edx, byte [ebp + 0x14]
test edx, edx
je 0x484099
push 0x24
call fcn.0044527f
add esp, 4
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0xb8], 0
je 0x48404e
mov ecx, dword [ebp - 0xb8]
call fcn.0046ffd0
mov dword [ebp - 0xe8], eax
jmp 0x484058
mov dword [ebp - 0xe8], 0
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0x24], ecx
push 0
mov edx, dword [ebp - 0xbc]
add edx, 0x168
push edx
mov ecx, dword [ebp - 0x24]
call fcn.00470240
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0xbc]
add ecx, 0x46c
call fcn.004b96d0
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14