Function at 0x42a6e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], 0xd
mov eax, dword [esi]
cmp eax, 0xd
ja case.default.0x42a6fc
jmp dword [eax*4 + 0x42a97c]
mov eax, dword [esi + 8]
test eax, eax
mov eax, str.true
jne 0x42a714
mov eax, str.false
push eax
jmp 0x42a907
mov ecx, dword [esi + 8]
mov edx, dword [esp + 0x24]
push ecx
push 0x4676cc
push edx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov edx, dword [esp + 0x24]
push eax
push ecx
push 0x4683f4
push edx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
mov edi, dword [esp + 0x24]
mov ebx, dword [sym.imp.MSVCRT.dll_fprintf]
push 0x4683f0
push edi
call ebx
mov esi, dword [esi + 8]
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x20
mov ecx, dword [esi]
mov edx, dword [esi + 4]
push eax
push ecx
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
push 0x4683ec
push edi
call ebx
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x24]
push eax
push 0x4683e8
push ecx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
mov edx, dword [esp + 0x24]
push str.null
push edx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
mov ebx, dword [esp + 0x24]
mov ebp, dword [sym.imp.MSVCRT.dll_fprintf]
push 0x4683e4
push ebx
call ebp
mov eax, dword [esi + 8]
add esp, 8
xor edi, edi
mov ecx, dword [eax + 0xc]
test ecx, ecx
jle 0x42a83a
test edi, edi
jle 0x42a810
push 0x45f804
push ebx
call ebp
add esp, 8
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esi + 8]
push edi
call fcn.00401440
push ebx
lea ecx, [esp + 0x14]
call fcn.0042a6e0
lea ecx, [esp + 0x10]
call fcn.0042a5e0
mov edx, dword [esi + 8]
inc edi
cmp edi, dword [edx + 0xc]
jl 0x42a801
push 0x4683e0
push ebx
call ebp
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
mov ebx, dword [esp + 0x24]
mov ebp, dword [sym.imp.MSVCRT.dll_fprintf]
push 0x4683dc
push ebx
call ebp
mov ecx, dword [esi + 8]
add esp, 8
xor edi, edi
mov eax, dword [ecx + 0xc]
test eax, eax
jle 0x42a8ac
push edi
call fcn.00409bf0
push eax
push str.___s
push ebx
call ebp
mov ecx, dword [esi + 8]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push edi
call fcn.00409c00
push ebx
lea ecx, [esp + 0x14]
call fcn.0042a6e0
lea ecx, [esp + 0x10]
call fcn.0042a5e0
mov ecx, dword [esi + 8]
inc edi
cmp edi, dword [ecx + 0xc]
jl 0x42a870
push 0x4683d0
push ebx
call ebp
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
mov ecx, dword [esp + 0x24]
push str._stream_
push ecx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x24]
push edx
push eax
push str._d__d_R
push ecx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
mov edx, dword [esi + 8]
push edx
mov eax, dword [esp + 0x28]
push 0x451030
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
mov ecx, dword [esp + 0x24]
push str._error_
push ecx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
mov edx, dword [esp + 0x24]
push str._EOF_
push edx
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
mov eax, dword [esp + 0x24]
push str._none_
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4