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

Disassembly:
push 0xffffffffffffffff
push 0x453a0e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x42c
mov eax, dword [0x46c3ac]
push esi
mov esi, dword [esp + 0x440]
push edi
xor edi, edi
cmp esi, edi
mov dword [esp + 0x430], eax
jne 0x402ddd
xor eax, eax
jmp 0x403131
push ebx
push ebp
lea eax, [esp + 0x28]
push esi
push eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call fcn.004323fb
lea ecx, [esp + 0x238]
push esi
push ecx
call fcn.004323fb
lea edx, [esp + 0x38]
push str.wnwb.usr.idx
push edx
call fcn.004323d1
lea eax, [esp + 0x248]
push str.wnwb.usr.dat
push eax
call fcn.004323d1
add esp, 0x20
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40306e
push edi
push 0x80
push 2
push edi
push 3
push 0x10000000
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4030af
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
lea eax, [esp + 0x18]
push eax
push 2
lea ecx, [esp + 0x28]
push ecx
push ebp
mov dword [esp + 0x30], 0x2714
call esi
push edi
lea edx, [esp + 0x18]
push edx
push 2
lea eax, [esp + 0x28]
push eax
push ebp
mov dword [esp + 0x30], 0x2711
call esi
push edi
lea ecx, [esp + 0x18]
push ecx
push 4
lea edx, [esp + 0x1c]
push edx
push ebp
mov dword [esp + 0x24], edi
call esi
push edi
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push ebp
call esi
push 0x344
mov dword [esp + 0x14], 0x340
call fcn.0044b77a
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, edi
mov dword [esp + 0x444], edi
je 0x402f06
push fcn.00403f30
push 0x402110
push 0x1a
lea esi, [eax + 4]
push 0x20
push esi
mov dword [eax], 0x1a
call fcn.00432417
mov dword [esp + 0x24], esi
jmp 0x402f0a
mov dword [esp + 0x24], edi
mov dword [esp + 0x444], 0xffffffff
mov dword [esp + 0x20], 0x46b0b8
lea ecx, [ecx]
mov esi, dword [esp + 0x24]
mov edi, 0x46b0b8
add esi, 0x14
lea esp, [esp]
mov edx, dword [esp + 0x20]
push edx
lea ebx, [esi - 0x14]
push ebx
call fcn.004323fb
push edi
push ebx
call fcn.004323d1
xor eax, eax
mov dword [esi - 8], eax
mov dword [esi], eax
mov dword [esi + 4], 1
mov dword [esi + 8], eax
add edi, 4
add esp, 0x10
add esi, 0x20
cmp edi, 0x46b120
jl 0x402f30
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
push eax
lea eax, [esp + 0x18]
push eax
push ecx
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x20]
add eax, 4
cmp eax, 0x46b120
mov dword [esp + 0x20], eax
jl 0x402f20
mov eax, dword [esp + 0x10]
imul eax, eax, 0x1a
add eax, 0xc
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x402fc3
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.00403f30
push ecx
push 0x20
push eax
call fcn.00432371
push esi
call fcn.0044b775
add esp, 4
push 0x200000
mov dword [esp + 0x1c], 0x200000
call fcn.0044b77a
mov ecx, dword [esp + 0x1c]
mov edx, ecx
mov ebx, eax
shr ecx, 2
xor eax, eax
mov edi, ebx
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 ebp
call edi
mov edx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [esp + 0x18]
push ecx
push edx
push ebx
push ebp
call esi
push 0
push 0
push 4
push ebp
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 ebp
call esi
push 0
push 0
push 8
push ebp
call edi
push 0
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [esp + 0x1c]
push ecx
push ebp
call esi
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.0044b775
add esp, 4
xor edi, edi
jmp 0x403074
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [esp + 0x230]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40312a
push edi
push 0x80
push 2
push edi
push 3
push 0x10000000
lea eax, [esp + 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4030b3
xor eax, eax
jmp 0x40312f
push 0x200000
mov dword [esp + 0x1c], 0x200000
mov dword [esp + 0x14], 8
call fcn.0044b77a
mov ecx, dword [esp + 0x1c]
mov edx, ecx
mov ebx, eax
shr ecx, 2
xor eax, eax
mov edi, ebx
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 ebp
call esi
push 0
lea edx, [esp + 0x18]
push edx
push 4
lea eax, [esp + 0x1c]
push eax
push ebp
call esi
mov edx, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x18]
push ecx
push edx
push ebx
push ebp
call esi
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.0044b775
add esp, 4
mov eax, 1
pop ebp
pop ebx
mov ecx, dword [esp + 0x434]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x42c]
pop esi
call fcn.00431d98
add esp, 0x438
ret 4