Function at 0x416de0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [esp + 0x20]
mov edx, dword [0x514770]
test edx, edx
je 0x416f11
test ebx, ebx
je 0x417147
cmp dword [ebx + 0xc], 9
ja case.default.0x416e0b
mov eax, dword [ebx + 0xc]
jmp dword [eax*4 + 0x4d3324]
mov eax, dword [0x514770]
mov dword [esp + 8], 8
mov dword [esp + 4], 1
mov dword [esp], str.ASSERT__
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call fcn.00416de0
mov eax, dword [ebx + 0x14]
mov dword [esp + 4], 0x4d3312
mov dword [esp + 8], eax
mov eax, dword [0x514770]
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
add esp, 0x18
pop ebx
ret
mov eax, dword [ebx + 0x10]
mov edx, dword [eax + 0x94]
test edx, edx
je 0x416e83
mov dword [esp + 4], edx
mov dword [esp], 0x4d32e4
call fcn.004184d0
mov eax, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
mov eax, dword [eax]
mov dword [esp], str._s0x_v
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call fcn.004184d0
add esp, 0x18
pop ebx
ret
mov eax, dword [ebx]
lea edx, [eax - 0x117]
cmp edx, 0x2e
ja case.0x416eb2.280
jmp dword [edx*4 + 0x4d334c]
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call fcn.00416de0
mov eax, dword [0x514770]
mov dword [esp], 0x3f
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputc
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call fcn.00416de0
mov eax, dword [0x514770]
mov dword [esp], 0x3a
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputc
mov edx, dword [0x514770]
mov ebx, dword [ebx + 0x18]
test edx, edx
jne 0x416df6
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [0x514770], eax
jmp 0x416df6
mov eax, dword [ebx]
cmp eax, 0x103
je 0x417158
xor edx, edx
call fcn.00414d40
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x416e5e
mov dword [esp + 8], eax
mov eax, dword [0x514770]
mov dword [esp + 4], 0x4d3318
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x416e5e
mov eax, dword [ebx + 0x10]
mov edx, dword [0x514770]
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_fputs
mov eax, dword [ebx]
mov edx, 1
call fcn.00414d40
mov ebx, dword [ebx + 0x14]
jmp 0x416de8
mov eax, dword [ebx + 0x10]
mov dword [esp + 4], str.PROVIDE___s_
mov dword [esp + 8], eax
mov eax, dword [0x514770]
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call fcn.00416de0
mov eax, dword [0x514770]
mov dword [esp], 0x29
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputc
add esp, 0x18
pop ebx
ret
mov eax, dword [ebx + 0x10]
mov dword [esp], str.0x_v
mov dword [esp + 4], eax
call fcn.004184d0
add esp, 0x18
pop ebx
ret
mov eax, dword [ebx]
xor edx, edx
call fcn.00414d40
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x416e5e
mov eax, dword [0x514770]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x4d3306
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [ebx + 0x10]
jmp 0x416faf
mov eax, dword [0x514770]
mov dword [esp], 0x28
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputc
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call fcn.00416de0
mov eax, dword [ebx]
mov edx, 1
call fcn.00414d40
mov eax, dword [ebx + 0x14]
jmp 0x416faf
mov dword [esp + 4], 0x5dd
mov dword [esp], str..._.._binutils_ld_ldexp.c
call fcn.004184a0
add esp, 0x18
pop ebx
ret
xor edx, edx
mov eax, 0x130
call fcn.00414d40
mov eax, dword [0x514770]
mov dword [esp + 8], 3
mov dword [esp + 4], 1
mov dword [esp], 0x4d32fe
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call fcn.00416de0
mov eax, dword [0x514770]
mov dword [esp + 8], 3
mov dword [esp + 4], 1
mov dword [esp], 0x4d3302
mov dword [esp + 0xc], eax
jmp 0x417024
xor edx, edx
call fcn.00414d40
mov eax, dword [0x514770]
mov dword [esp], 0x20
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputc
mov eax, dword [0x514770]
mov dword [esp], 0x28
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputc
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call fcn.00416de0
mov eax, dword [0x514770]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x4d331e
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
jmp 0x41705c
mov dword [esp + 0x20], str.NULL_TREE_n
add esp, 0x18
pop ebx
jmp fcn.004184d0
mov eax, dword [ebx + 0x10]
mov edx, dword [0x514770]
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_fputs
jmp 0x416e5e