Function at 0x412cb0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [esp + 0x50]
mov eax, dword [ebx]
mov edx, dword [eax + 0x8c]
mov edi, dword [eax + 4]
mov ecx, dword [edx]
mov dword [esp + 0x28], ecx
test edi, edi
je 0x412cdc
mov ecx, dword [eax]
test byte [ecx + 4], 1
jne 0x412fb0
mov ecx, dword [edx + 0xec]
test ecx, ecx
je 0x412d00
add edx, 0xec
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.0041d440
mov eax, dword [ebx]
mov edx, dword [eax + 0x8c]
mov ecx, dword [edx + 0x1c]
test ecx, ecx
je 0x412d1e
add edx, 0x1c
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.0041d440
mov eax, dword [ebx]
mov edx, dword [eax + 0x8c]
mov ecx, dword [edx + 0x18]
test ecx, ecx
je 0x412d36
add edx, 0x18
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.0041d440
mov eax, dword [ebx]
mov esi, dword [eax + 4]
test esi, esi
jne 0x412e10
mov edx, dword [eax + 0x84]
test edx, edx
je 0x412d6c
lea eax, [esp + 0x2c]
add edx, 8
mov dword [esp], eax
mov dword [esp + 0x2c], edx
call fcn.0044a720
mov esi, eax
mov eax, edx
or eax, esi
jne 0x412f30
mov eax, dword [ebx]
mov edx, dword [eax + 0x88]
test edx, edx
je 0x412d99
mov dword [esp], edx
call fcn.0042b340
mov esi, eax
test eax, eax
jne 0x412e20
mov eax, dword [ebx]
add eax, 0x88
mov dword [esp], eax
call fcn.0042b350
mov eax, dword [ebx]
mov edx, dword [eax + 0x10]
test edx, edx
je 0x412db1
add eax, 0x10
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.0041d440
mov eax, dword [ebx]
mov ecx, dword [eax + 0x80]
test ecx, ecx
je 0x412dc8
sub eax, 0xffffff80
mov dword [esp], eax
call fcn.00409f40
mov eax, dword [ebx]
add eax, 0x7c
mov dword [esp], eax
call fcn.0042f200
mov eax, dword [ebx]
mov edx, dword [eax + 0x54]
test edx, edx
je 0x412de7
add eax, 0x54
mov dword [esp], eax
call fcn.004473a0
lea eax, [esp + 0x28]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.0041d440
mov dword [ebx], 0
xor eax, eax
xor edx, edx
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], eax
call fcn.004152d0
mov eax, dword [ebx]
jmp 0x412d41
mov edi, dword [fcn.004a1b90]
mov dword [esp + 0x2c], 0
mov dword [esp], 2
call edi
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x4a9540
mov dword [esp + 4], 0x4aa378
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call edi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x4a95ae
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call edi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
lea eax, [esp + 0x2c]
mov dword [esp + 8], 0x410240
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov eax, dword [eax + 0x88]
mov dword [esp], eax
call fcn.0042bb40
mov esi, eax
mov eax, edx
or eax, esi
je 0x412d88
mov dword [esp + 4], edx
mov dword [esp], esi
call fcn.0041d490
mov dword [esp], 2
mov ebp, eax
call edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x4a9606
mov dword [esp + 4], 0x4aa3a4
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call edi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x4a95ae
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call edi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
jmp 0x412d88
mov dword [esp + 4], edx
mov dword [esp], esi
call fcn.0041d490
mov edi, dword [fcn.004a1b90]
mov dword [esp], 2
mov ebp, eax
call edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x4a9540
mov dword [esp + 4], 0x4aa0b0
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], 2
call edi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x4a95ae
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call edi
mov dword [esp], eax
call sub.msvcrt.dll_fflush
jmp 0x412d6a
mov ebx, dword [fcn.004a1b90]
mov dword [esp], 2
call ebx
mov dword [esp + 8], 0x4a9540
mov dword [esp + 4], 0x4aa340
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], 0x4a95ae
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call ebx
mov dword [esp], eax
call sub.msvcrt.dll_fflush
mov eax, 0x10
xor edx, edx
jmp 0x412e05