Function at 0x40a2c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, eax
push edi
mov edi, ecx
push esi
mov esi, edx
push ebx
sub esp, 0x4c
mov eax, dword [esp + 0x60]
mov eax, dword [eax]
test eax, eax
je 0x40a480
mov dword [esp + 0x3c], eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x64]
lea edx, [esp + 0x38]
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], eax
mov dword [esp + 4], esi
mov dword [esp + 8], edi
mov dword [esp], ebp
call fcn.00415cf0
mov ecx, eax
mov eax, edx
or eax, ecx
jne 0x40a3f0
mov ebp, dword [esp + 0x38]
cmp ebp, dword [esp + 0x64]
jne 0x40a330
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x60]
mov dword [edi], eax
add esp, 0x4c
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [fcn.004a1b90]
mov dword [esp], 2
call ebx
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x64]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x4a7960
mov dword [esp + 4], 0x4a79a8
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call ebx
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x4a79a4
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov ecx, 5
xor edx, edx
mov edi, dword [esp + 0x60]
mov eax, dword [esp + 0x3c]
cmp dword [edi], eax
je 0x40a323
lea ebx, [esp + 0x3c]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ecx
call fcn.0041d440
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
add esp, 0x4c
pop ebx
pop esi
mov eax, ecx
pop edi
pop ebp
ret
mov dword [esp + 4], edx
mov dword [esp], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ecx
call fcn.0041d490
mov ebx, dword [fcn.004a1b90]
mov dword [esp], 2
mov esi, eax
call ebx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], esi
mov dword [esp + 8], 0x4a7960
mov dword [esp + 0xc], ecx
mov dword [esp + 4], 0x4a79fc
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call ebx
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x4a79a4
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
jmp 0x40a3ac
lea eax, [esp + 0x3c]
mov dword [esp], 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 4], eax
call fcn.00427280
mov ecx, eax
mov eax, edx
or eax, ecx
jne 0x40a4b0
mov eax, dword [esp + 0x3c]
jmp 0x40a2df
mov dword [esp + 4], edx
mov dword [esp], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ecx
call fcn.0041d490
mov ebx, dword [fcn.004a1b90]
mov dword [esp], 2
mov esi, eax
call ebx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], esi
mov dword [esp + 8], 0x4a7960
mov dword [esp + 0xc], ecx
mov dword [esp + 4], 0x4a7968
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call ebx
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x4a79a4
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
jmp 0x40a323