Function at 0x438ab0
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4419fc
mov eax, dword fs:[0]
push eax
sub esp, 0x540
mov eax, dword [0x453080]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x54c], ecx
lea esi, [ebp - 0x318]
call fcn.00405be0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x54c]
mov ecx, dword [eax + 0xb08]
push ecx
push 0x448824
lea edi, [ebp - 0x318]
call fcn.004063f0
add esp, 8
lea eax, [ebp - 0x318]
call fcn.00405e60
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x438b42
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x318]
call fcn.00405cd0
jmp 0x438da8
push 0x2f8
push 0
lea edx, [ebp - 0x314]
push edx
call fcn.00416990
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x314]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [ebp + 8]
add edx, 0x410
push edx
lea eax, [ebp - 0x2b0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [ebp + 8]
add ecx, 0x6cc
push ecx
lea edx, [ebp - 0x1e8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x24c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0x54c]
add eax, 0xae4
call fcn.00405e60
push eax
lea edx, [ebp - 0x1ac]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x44884c
lea eax, [ebp - 0x318]
call fcn.00405e60
push eax
call fcn.004219de
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x438bff
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x318]
call fcn.00405cd0
jmp 0x438da8
mov eax, dword [ebp - 0x10]
push eax
push 1
push 0x2f8
lea ecx, [ebp - 0x314]
push ecx
call fcn.0042189b
add esp, 0x10
mov ecx, dword [ebp - 0x54c]
add ecx, 0xae4
call fcn.0040ec70
movzx edx, al
test edx, edx
je 0x438d00
mov dword [ebp - 0x52c], 1
lea eax, [ebp - 0x318]
call fcn.00405e60
push eax
lea eax, [ebp - 0x528]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 0x52c]
push ecx
mov ecx, dword [ebp - 0x54c]
add ecx, 0xae8
call fcn.0040f1e0
mov ecx, dword [ebp - 0x54c]
add ecx, 0xae8
call fcn.0040f1a0
mov dword [ebp - 0x31c], eax
mov edx, dword [ebp - 0x10]
push edx
push 1
push 4
lea eax, [ebp - 0x31c]
push eax
call fcn.0042189b
add esp, 0x10
mov dword [ebp - 0x530], 0
jmp 0x438cb9
mov ecx, dword [ebp - 0x530]
add ecx, 1
mov dword [ebp - 0x530], ecx
mov ecx, dword [ebp - 0x54c]
add ecx, 0xae8
call fcn.0040f1a0
cmp dword [ebp - 0x530], eax
jae 0x438d00
mov edx, dword [ebp - 0x10]
push edx
push 1
push 0x20c
mov eax, dword [ebp - 0x530]
push eax
mov ecx, dword [ebp - 0x54c]
add ecx, 0xae8
call fcn.0040f1c0
push eax
call fcn.0042189b
add esp, 0x10
jmp 0x438caa
mov ecx, dword [ebp - 0x54c]
add ecx, 0xaf8
call fcn.0040f1a0
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
push ecx
push 1
push 4
lea edx, [ebp - 0x14]
push edx
call fcn.0042189b
add esp, 0x10
mov dword [ebp - 0x534], 0
jmp 0x438d43
mov eax, dword [ebp - 0x534]
add eax, 1
mov dword [ebp - 0x534], eax
mov ecx, dword [ebp - 0x54c]
add ecx, 0xaf8
call fcn.0040f1a0
cmp dword [ebp - 0x534], eax
jae 0x438d8a
mov ecx, dword [ebp - 0x10]
push ecx
push 1
push 0x20c
mov edx, dword [ebp - 0x534]
push edx
mov ecx, dword [ebp - 0x54c]
add ecx, 0xaf8
call fcn.0040f1c0
push eax
call fcn.0042189b
add esp, 0x10
jmp 0x438d34
mov eax, dword [ebp - 0x10]
push eax
call fcn.0041f2cf
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x318]
call fcn.00405cd0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00415d4a
mov esp, ebp
pop ebp
ret 4