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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x475069
mov eax, dword fs:[0]
push eax
sub esp, 0x524
mov eax, dword [0x49c00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x518], ecx
lea ecx, [ebp - 0x520]
call fcn.004096c0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x518]
mov ecx, dword [eax + 0xbe4]
push ecx
push 0x48a784
lea edx, [ebp - 0x520]
push edx
call fcn.00409d20
add esp, 0xc
lea ecx, [ebp - 0x520]
call fcn.00409710
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4618b1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x520]
call fcn.004095a0
jmp 0x461b35
push 0x2f8
push 0
lea eax, [ebp - 0x308]
push eax
call fcn.0042b9d0
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x308]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp + 8]
add eax, 0x410
push eax
lea ecx, [ebp - 0x2a4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [ebp + 8]
add edx, 0x6cc
push edx
lea eax, [ebp - 0x1dc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x240]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [ebp - 0x518]
add ecx, 0xb24
call fcn.00409710
push eax
lea eax, [ebp - 0x1a0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x48a7ac
lea ecx, [ebp - 0x520]
call fcn.00409710
push eax
call fcn.004346e6
add esp, 8
mov dword [ebp - 0x51c], eax
cmp dword [ebp - 0x51c], 0
jne 0x461974
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x520]
call fcn.004095a0
jmp 0x461b35
mov ecx, dword [ebp - 0x51c]
push ecx
push 1
push 0x2f8
lea edx, [ebp - 0x308]
push edx
call fcn.004345cd
add esp, 0x10
mov ecx, dword [ebp - 0x518]
add ecx, 0xb24
call fcn.00412710
movzx eax, al
test eax, eax
je 0x461a7e
mov dword [ebp - 0x514], 1
lea ecx, [ebp - 0x520]
call fcn.00409710
push eax
lea ecx, [ebp - 0x510]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [ebp - 0x514]
push edx
mov ecx, dword [ebp - 0x518]
add ecx, 0xb28
call fcn.0041dad0
mov ecx, dword [ebp - 0x518]
add ecx, 0xb28
call fcn.0041da40
mov dword [ebp - 0x52c], eax
mov eax, dword [ebp - 0x51c]
push eax
push 1
push 4
lea ecx, [ebp - 0x52c]
push ecx
call fcn.004345cd
add esp, 0x10
mov dword [ebp - 0x524], 0
jmp 0x461a34
mov edx, dword [ebp - 0x524]
add edx, 1
mov dword [ebp - 0x524], edx
mov ecx, dword [ebp - 0x518]
add ecx, 0xb28
call fcn.0041da40
cmp dword [ebp - 0x524], eax
jae 0x461a7e
mov eax, dword [ebp - 0x51c]
push eax
push 1
push 0x20c
mov ecx, dword [ebp - 0x524]
push ecx
mov ecx, dword [ebp - 0x518]
add ecx, 0xb28
call fcn.0041da20
push eax
call fcn.004345cd
add esp, 0x10
jmp 0x461a25
mov ecx, dword [ebp - 0x518]
add ecx, 0xb34
call fcn.0041da40
mov dword [ebp - 0x530], eax
mov edx, dword [ebp - 0x51c]
push edx
push 1
push 4
lea eax, [ebp - 0x530]
push eax
call fcn.004345cd
add esp, 0x10
mov dword [ebp - 0x528], 0
jmp 0x461aca
mov ecx, dword [ebp - 0x528]
add ecx, 1
mov dword [ebp - 0x528], ecx
mov ecx, dword [ebp - 0x518]
add ecx, 0xb34
call fcn.0041da40
cmp dword [ebp - 0x528], eax
jae 0x461b14
mov edx, dword [ebp - 0x51c]
push edx
push 1
push 0x20c
mov eax, dword [ebp - 0x528]
push eax
mov ecx, dword [ebp - 0x518]
add ecx, 0xb34
call fcn.0041da20
push eax
call fcn.004345cd
add esp, 0x10
jmp 0x461abb
mov ecx, dword [ebp - 0x51c]
push ecx
call fcn.004347ba
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x520]
call fcn.004095a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00429d20
mov esp, ebp
pop ebp
ret 4