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

Disassembly:
sub esp, 0x424
mov eax, dword [0x46b3ac]
push ebp
push esi
mov esi, dword [esp + 0x430]
xor ebp, ebp
cmp esi, ebp
mov dword [esp + 0x428], eax
jne 0x40218a
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x420]
call fcn.00431018
add esp, 0x424
ret 4
push ebx
push edi
lea eax, [esp + 0x20]
push esi
push eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
call fcn.0043167b
lea ecx, [esp + 0x230]
push esi
push ecx
call fcn.0043167b
lea edx, [esp + 0x30]
push str.wnpy.usr.idx
push edx
call fcn.00431651
lea eax, [esp + 0x240]
push str.wnpy.usr.dat
push eax
call fcn.00431651
add esp, 0x20
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
jne 0x402348
push ebp
push 0x80
push 2
push ebp
push 3
push 0x10000000
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x402383
push ebp
lea eax, [esp + 0x18]
push eax
push 2
lea ecx, [esp + 0x28]
push ecx
push esi
mov dword [esp + 0x30], 0x2714
call ebx
push ebp
lea edx, [esp + 0x18]
push edx
push 2
lea eax, [esp + 0x28]
push eax
push esi
mov dword [esp + 0x30], 0x2711
call ebx
push ebp
lea ecx, [esp + 0x18]
push ecx
push 4
lea edx, [esp + 0x1c]
push edx
push esi
mov dword [esp + 0x24], ebp
call ebx
push ebp
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push esi
call ebx
mov edi, dword [esp + 0x10]
add edi, 0xc
push 0x68
mov dword [esp + 0x14], edi
call fcn.0044a9f4
mov edx, eax
add esp, 4
xor eax, eax
mov edi, edx
push ebp
mov ecx, 0x1a
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push eax
push 0x68
push edx
push esi
call ebx
mov eax, dword [esp + 0x10]
add eax, 0x68
push 0xa00000
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], 0xa00000
call fcn.0044a9f4
mov ecx, dword [esp + 0x1c]
mov edx, ecx
mov ebp, eax
shr ecx, 2
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
add esp, 4
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push eax
push esi
call edi
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x18]
push ecx
push edx
push ebp
push esi
call ebx
push 0
push 0
push 4
push esi
call edi
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
add ecx, eax
push 0
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x18]
push ecx
push 4
lea edx, [esp + 0x24]
push edx
push esi
call ebx
push 0
push 0
push 8
push esi
call edi
push 0
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call fcn.0044a9ef
add esp, 4
xor ebp, ebp
lea edx, [esp + 0x228]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4023fe
push ebp
push 0x80
push 2
push ebp
push 3
push 0x10000000
lea eax, [esp + 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402387
xor eax, eax
jmp 0x402403
push 0xa00000
mov dword [esp + 0x1c], 0xa00000
mov dword [esp + 0x14], 8
call fcn.0044a9f4
mov ecx, dword [esp + 0x1c]
mov edx, ecx
mov ebp, eax
shr ecx, 2
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
add esp, 4
mov ecx, edx
and ecx, 3
push 0
rep stosb byte es:[edi], al
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [esp + 0x24]
push ecx
push esi
call ebx
push 0
lea edx, [esp + 0x18]
push edx
push 4
lea eax, [esp + 0x1c]
push eax
push esi
call ebx
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x18]
push ecx
push edx
push ebp
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call fcn.0044a9ef
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x430]
pop edi
pop ebx
pop esi
pop ebp
call fcn.00431018
add esp, 0x424
ret 4