Function at 0x47c760
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
mov eax, dword [esi]
mov dword [esp + 4], 0xd
cmp eax, 0xd
ja case.default.0x47c77c
push ebx
push ebp
push edi
jmp dword [eax*4 + 0x47c9f0]
cmp dword [esi + 8], 0
mov eax, str.true
jne 0x47c793
mov eax, str.false
push eax
jmp 0x47c97b
mov ecx, dword [esi + 8]
mov edx, dword [esp + 0x24]
push ecx
push 0x57db14
push edx
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret 4
fld qword [esi + 8]
mov eax, dword [esp + 0x24]
sub esp, 8
fstp qword [esp]
push 0x57db10
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0x10
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret 4
mov edi, dword [esp + 0x24]
mov ebx, dword [sym.imp.MSVCR90.dll_fprintf]
push 0x583c44
push edi
call ebx
mov esi, dword [esi + 8]
mov ecx, dword [esi]
mov edx, dword [esi + 4]
push edi
push ecx
push 1
push edx
call dword [sym.imp.MSVCR90.dll_fwrite]
push 0x582520
push edi
call ebx
add esp, 0x20
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret 4
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x24]
push eax
push 0x5c2af8
push ecx
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret 4
mov edx, dword [esp + 0x24]
push str.null
push edx
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 8
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret 4
mov ebx, dword [esp + 0x24]
mov ebp, dword [sym.imp.MSVCR90.dll_fprintf]
push 0x5c2af4
push ebx
call ebp
mov eax, dword [esi + 8]
xor edi, edi
add esp, 8
cmp dword [eax + 0xc], edi
jle 0x47c8b0
test edi, edi
jle 0x47c886
push 0x582500
push ebx
call ebp
add esp, 8
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esi + 8]
push edi
call fcn.0047c040
push ebx
lea ecx, [esp + 0x14]
call fcn.0047c760
lea ecx, [esp + 0x10]
call fcn.0047c660
mov edx, dword [esi + 8]
inc edi
cmp edi, dword [edx + 0xc]
jl 0x47c877
push 0x57d2f0
push ebx
call ebp
add esp, 8
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret 4
mov ebx, dword [esp + 0x24]
mov ebp, dword [sym.imp.MSVCR90.dll_fprintf]
push 0x5c2af0
push ebx
call ebp
mov ecx, dword [esi + 8]
xor edi, edi
add esp, 8
cmp dword [ecx + 0x10], edi
jle 0x47c920
push edi
call fcn.0047c160
push eax
push 0x5c2ae8
push ebx
call ebp
mov ecx, dword [esi + 8]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push edi
call fcn.0047c190
push ebx
lea ecx, [esp + 0x14]
call fcn.0047c760
lea ecx, [esp + 0x10]
call fcn.0047c660
mov ecx, dword [esi + 8]
inc edi
cmp edi, dword [ecx + 0x10]
jl 0x47c8e4
push 0x5c2ae4
push ebx
call ebp
add esp, 8
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret 4
mov ecx, dword [esp + 0x24]
push str._stream_
push ecx
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 8
pop edi
pop ebp
pop ebx
pop esi
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.MSVCR90.dll_fprintf]
add esp, 0x10
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret 4
mov edx, dword [esi + 8]
push edx
mov eax, dword [esp + 0x28]
push 0x579d58
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret 4
mov ecx, dword [esp + 0x24]
push str._error_
push ecx
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 8
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret 4
mov edx, dword [esp + 0x24]
push str._EOF_
push edx
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 8
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret 4
mov eax, dword [esp + 0x24]
push str._none_
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 8
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret 4