Function at 0x4fa580
Capabilities:
Write file on windows

Disassembly:
push ebp
sub esp, 0x68
lea eax, [esp + 0x60]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x1c]
mov dword [esp], eax
mov dword [esp + 0x34], dbg.__gxx_personality_sj0
mov dword [esp + 0x38], 0x55e71c
mov dword [esp + 0x40], 0x4fa700
mov dword [esp + 0x44], esp
call dbg._Unwind_SjLj_Register
cmp byte [0x566998], 0
jne 0x4fa6bd
mov byte [0x566998], 1
call dbg.__cxa_current_exception_type
test eax, eax
je 0x4fa71b
mov eax, dword [eax + 4]
xor edx, edx
cmp byte [eax], 0x2a
mov dword [esp + 8], 0
mov dword [esp + 4], 0
sete dl
add eax, edx
mov ecx, eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x5c]
mov dword [esp], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x5c], 0xffffffff
mov dword [esp + 0x20], 0xffffffff
call dbg.__cxa_demangle
mov dword [esp + 8], 0x30
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
mov dword [esp + 0x14], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
cmp dword [esp + 0x5c], 0
mov dword [esp + 4], eax
je 0x4fa6af
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], 0xffffffff
mov dword [esp], eax
call sym._fputs
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x599e95
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 0x20], 0xffffffff
call sym._fwrite
cmp dword [esp + 0x5c], 0
je 0x4fa6f2
mov dword [esp + 0x20], 1
call dbg.__cxa_rethrow
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._fputs
jmp 0x4fa66b
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1d
mov dword [esp + 4], 1
mov dword [esp], 0x599e44
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 0x20], 0xffffffff
call sym._fwrite
call sym._abort
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._free
jmp 0x4fa6a2
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x2d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 0x20], 0xffffffff
call sym._fwrite
mov dword [esp + 0x20], 0xffffffff
call sym._abort
call dbg.__cxa_end_catch
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
mov dword [esp], eax
call dbg._Unwind_SjLj_Resume
mov eax, dword [esp + 0x14]
sub edx, 1
mov dword [esp], eax
jne 0x4fa7f9
call dbg.__cxa_begin_catch
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
mov edx, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0xb
mov dword [esp + 4], 1
mov dword [esp], str.__what__:
mov dword [esp + 0x20], 2
mov dword [esp + 0x14], eax
lea eax, [edx + 0x40]
mov dword [esp + 0xc], eax
call sym._fwrite
mov edx, dword [sym.imp.msvcrt.dll__iob]
lea eax, [edx + 0x40]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._fputs
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp], 0xa
add eax, 0x40
mov dword [esp + 4], eax
call sym._fputc
call dbg.__cxa_end_catch
jmp 0x4fa74b
lea esi, [esi]
call dbg.__cxa_begin_catch
mov dword [esp + 0x20], 0xffffffff
call dbg.__cxa_end_catch
jmp 0x4fa74b