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

Disassembly:
push 0xffffffffffffffff
push 0x452f2e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x42c
mov eax, dword [0x46b3ac]
push esi
mov esi, dword [esp + 0x440]
push edi
xor edi, edi
cmp esi, edi
mov dword [esp + 0x430], eax
jne 0x402d8d
xor eax, eax
jmp 0x4030e1
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.004318eb
lea ecx, [esp + 0x238]
push esi
push ecx
call fcn.004318eb
lea edx, [esp + 0x38]
push str.wnwb.usr.idx
push edx
call fcn.004318c1
lea eax, [esp + 0x248]
push str.wnwb.usr.dat
push eax
call fcn.004318c1
add esp, 0x20
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40301e
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 0x40305f
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.0044ac64
add esp, 4
mov dword [esp + 0x20], eax
cmp eax, edi
mov dword [esp + 0x444], edi
je 0x402eb6
push fcn.004202d0
push 0x4020c0
push 0x1a
lea esi, [eax + 4]
push 0x20
push esi
mov dword [eax], 0x1a
call fcn.00431907
mov dword [esp + 0x24], esi
jmp 0x402eba
mov dword [esp + 0x24], edi
mov dword [esp + 0x444], 0xffffffff
mov dword [esp + 0x20], 0x46a0b8
lea ecx, [ecx]
mov esi, dword [esp + 0x24]
mov edi, 0x46a0b8
add esi, 0x14
lea esp, [esp]
mov edx, dword [esp + 0x20]
push edx
lea ebx, [esi - 0x14]
push ebx
call fcn.004318eb
push edi
push ebx
call fcn.004318c1
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, 0x46a120
jl 0x402ee0
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, 0x46a120
mov dword [esp + 0x20], eax
jl 0x402ed0
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 0x402f73
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.004202d0
push ecx
push 0x20
push eax
call fcn.00431861
push esi
call fcn.0044ac5f
add esp, 4
push 0x200000
mov dword [esp + 0x1c], 0x200000
call fcn.0044ac64
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.0044ac5f
add esp, 4
xor edi, edi
jmp 0x403024
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 0x4030da
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 0x403063
xor eax, eax
jmp 0x4030df
push 0x200000
mov dword [esp + 0x1c], 0x200000
mov dword [esp + 0x14], 8
call fcn.0044ac64
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.0044ac5f
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.00431288
add esp, 0x438
ret 4