Function at 0x40bb50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
lea eax, [ebp - 8]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x34], sym.___gxx_personality_sj0
mov dword [ebp - 0x30], 0x412de4
mov dword [ebp - 0x28], 0x40bcc0
mov dword [ebp - 0x24], esp
mov dword [esp], eax
call sym.__Unwind_SjLj_Register
cmp byte [0x417a90], 0
jne 0x40bc7f
mov byte [0x417a90], 1
call sym.___cxa_current_exception_type
test eax, eax
je 0x40bcda
mov eax, dword [eax + 4]
cmp byte [eax], 0x2a
mov dword [ebp - 0x50], eax
mov dword [ebp - 0xc], 0xffffffff
sete al
movzx eax, al
add dword [ebp - 0x50], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x50]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [ebp - 0x48], 0xffffffff
mov dword [esp], eax
call sym.___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 [ebp - 0x54], 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 [ebp - 0xc], 0
mov dword [esp + 4], eax
je 0x40bc72
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x48], 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], 0x418ef9
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [ebp - 0x48], 0xffffffff
call sym._fwrite
cmp dword [ebp - 0xc], 0
je 0x40bcb3
mov dword [ebp - 0x48], 1
call sym.___cxa_rethrow
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call sym._fputs
jmp 0x40bc31
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1d
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_recursively_n
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [ebp - 0x48], 0xffffffff
call sym._fwrite
call sym._abort
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call sym._free
jmp 0x40bc66
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 [ebp - 0x48], 0xffffffff
call sym._fwrite
mov dword [ebp - 0x48], 0xffffffff
call sym._abort
call sym.___cxa_end_catch
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x48], 0xffffffff
mov dword [esp], eax
call sym.__Unwind_SjLj_Resume
mov eax, dword [ebp - 0x58]
sub edx, 1
mov dword [esp], eax
je 0x40bd4a
call sym.___cxa_begin_catch
mov dword [ebp - 0x48], 0xffffffff
call sym.___cxa_end_catch
jmp 0x40bd09
call sym.___cxa_begin_catch
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
mov dword [esp + 8], 0xb
mov dword [esp + 4], 1
mov dword [esp], str.__what__:
mov dword [ebp - 0x48], 2
mov dword [ebp - 0x5c], 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
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x5c]
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 sym.___cxa_end_catch
jmp 0x40bd09