Function at 0x417080
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.msvcrt.dll__iob]
push ebx
mov ebx, dword [ebp + 8]
add esi, 0x40
mov eax, dword [0x5da360]
test eax, eax
je 0x4170d0
test ebx, ebx
je 0x417376
cmp dword [ebx + 0xc], 9
jbe 0x4170c3
push eax
push eax
push 0x5c7
push str._usr_local_google_buildbot_src_android_gcc_toolchain_build_.._binutils_binutils_2.27_ld_ldexp.c
call fcn.0041a8d0
add esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov eax, dword [ebx + 0xc]
jmp dword [eax*4 + 0x505074]
mov dword [0x5da360], esi
jmp 0x41709a
mov eax, dword [ebx + 0x10]
mov edx, dword [eax + 0xb4]
test edx, edx
je 0x4170f8
push esi
push esi
push edx
push 0x504fd5
call fcn.0041a7b0
add esp, 0x10
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x1c]
push ecx
mov edx, dword [ebx + 0x18]
push edx
mov eax, dword [eax]
push eax
push str._s0x_v
call fcn.0041a7b0
add esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov eax, dword [ebx]
lea edx, [eax - 0x117]
cmp edx, 0x2e
jbe switch.0x004172bf
push edx
push edx
mov eax, dword [0x5da360]
push eax
push 0x28
call sub.msvcrt.dll_fputc
pop eax
mov eax, dword [ebx + 0x10]
push eax
call fcn.00417080
mov edx, 1
mov eax, dword [ebx]
call fcn.00416fd0
add esp, 0x10
sub esp, 0xc
mov ebx, dword [ebx + 0x14]
push ebx
jmp 0x4171dd
sub esp, 0xc
mov ecx, dword [ebx + 0x10]
push ecx
call fcn.00417080
pop eax
mov eax, dword [0x5da360]
pop edx
push eax
push 0x3f
call sub.msvcrt.dll_fputc
mov ecx, dword [ebx + 0x14]
pop eax
push ecx
call fcn.00417080
pop eax
mov eax, dword [0x5da360]
pop edx
push eax
push 0x3a
call sub.msvcrt.dll_fputc
mov ebx, dword [ebx + 0x18]
add esp, 0x10
jmp 0x417091
push eax
push eax
mov eax, dword [0x5da360]
push eax
mov eax, dword [ebx + 0x10]
push eax
call sub.msvcrt.dll_fputs
mov eax, dword [ebx]
mov edx, 1
call fcn.00416fd0
mov ebx, dword [ebx + 0x14]
add esp, 0x10
jmp 0x417091
push ecx
mov edx, dword [ebx + 0x10]
push edx
push str.PROVIDE___s_
mov eax, dword [0x5da360]
push eax
call fcn.00416fb0
pop eax
mov eax, dword [ebx + 0x14]
push eax
call fcn.00417080
mov esi, dword [0x5da360]
pop eax
pop edx
push esi
push 0x29
call sub.msvcrt.dll_fputc
add esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
push eax
mov eax, dword [ebx + 0x14]
push eax
mov eax, dword [ebx + 0x10]
push eax
push str.0x_v
call fcn.0041a7b0
add esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
push edx
push edx
push str.ASSERT__
mov eax, dword [0x5da360]
push eax
call fcn.00416fb0
pop eax
mov eax, dword [ebx + 0x10]
push eax
call fcn.00417080
add esp, 0xc
mov eax, dword [ebx + 0x14]
push eax
push 0x505003
mov eax, dword [0x5da360]
push eax
call fcn.00416fb0
add esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
xor edx, edx
mov eax, dword [ebx]
call fcn.00416fd0
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x4170bc
push eax
push eax
push 0x504ff7
mov eax, dword [0x5da360]
push eax
call fcn.00416fb0
pop esi
mov ecx, dword [ebx + 0x10]
push ecx
jmp 0x4171dd
mov eax, dword [ebx]
cmp eax, 0x103
je 0x41735c
xor edx, edx
call fcn.00416fd0
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x4170bc
push edx
push eax
push 0x505009
mov eax, dword [0x5da360]
push eax
call fcn.00416fb0
add esp, 0x10
jmp 0x4170bc
jmp dword [edx*4 + 0x50509c]
xor edx, edx
mov eax, 0x130
call fcn.00416fd0
mov eax, dword [0x5da360]
push eax
push 3
push 1
push 0x504fef
call sub.msvcrt.dll_fwrite
pop eax
mov eax, dword [ebx + 0x14]
push eax
call fcn.00417080
mov esi, dword [0x5da360]
push esi
push 3
push 1
push 0x504ff3
call sub.msvcrt.dll_fwrite
add esp, 0x14
mov ecx, dword [ebx + 0x10]
push ecx
jmp 0x4171dd
xor edx, edx
call fcn.00416fd0
push esi
push esi
mov ecx, dword [0x5da360]
push ecx
push 0x20
call sub.msvcrt.dll_fputc
pop eax
mov eax, dword [0x5da360]
pop edx
push eax
push 0x28
call sub.msvcrt.dll_fputc
pop eax
mov eax, dword [ebx + 0x10]
push eax
call fcn.00417080
pop esi
pop eax
push 0x505070
mov ecx, dword [0x5da360]
push ecx
call fcn.00416fb0
add esp, 0x10
jmp 0x417150
push eax
push eax
mov esi, dword [0x5da360]
push esi
mov ecx, dword [ebx + 0x10]
push ecx
call sub.msvcrt.dll_fputs
add esp, 0x10
jmp 0x4170bc
mov dword [ebp + 8], str.NULL_TREE_n
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
jmp fcn.0041a7b0