Function at 0x65997330
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
lea edi, [esp + 0x1c]
mov esi, dword [esp + 0x74]
mov dword [esp + 0x10], ecx
mov dword [esp], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x34], dbg.__gxx_personality_sj0
mov dword [esp + 0x38], 0x65a0fc68
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], 0x65997537
mov dword [esp + 0x44], esp
call dbg._Unwind_SjLj_Register
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x70]
mov byte [eax], 0
mov eax, dword [esp + 0x70]
mov eax, dword [eax]
add ecx, dword [eax - 0xc]
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x6599743e
mov eax, dword [ecx + 0x70]
test eax, eax
je 0x65997470
mov ecx, eax
mov dword [esp + 0x20], 1
call dbg.std::ostream::flush()
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x70]
mov eax, dword [eax]
add ecx, dword [eax - 0xc]
cmp byte [esp + 0x14], 0
jne 0x65997437
test byte [ecx + 0xd], 0x10
je 0x65997437
mov esi, dword [ecx + 0x78]
mov dword [esp + 0x14], esi
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0xc]
jae 0x659974f8
mov esi, dword [ecx + 0x7c]
movzx eax, byte [eax]
mov dword [esp + 0x18], esi
test esi, esi
je 0x6599752a
mov edi, dword [esp + 0x18]
movzx eax, al
mov edx, dword [edi + 0x18]
test byte [edx + eax*2], 0x20
je 0x6599742a
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
cmp eax, edx
jae 0x65997498
add eax, 1
mov dword [ebx + 8], eax
cmp eax, edx
jae 0x659974c0
mov edi, dword [esp + 0x18]
movzx eax, byte [eax]
mov edx, dword [edi + 0x18]
movzx eax, al
test byte [edx + eax*2], 0x20
jne 0x659973f7
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x70]
mov eax, dword [eax]
add ecx, dword [eax - 0xc]
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x65997488
or eax, 4
mov dword [esp + 0x20], 0xffffffff
mov dword [esp], eax
call dbg.std::basic_ios<char, std::char_traits<char> >::clear(std::_Ios_Iostate)
sub esp, 4
lea eax, [esp + 0x1c]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret 8
cmp byte [esp + 0x14], 0
jne 0x65997488
test byte [ecx + 0xd], 0x10
jne 0x659973c2
lea esi, [esi]
mov eax, dword [esp + 0x10]
mov byte [eax], 1
jmp 0x65997454
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x28]
mov dword [esp + 0x20], 1
call eax
cmp eax, 0xffffffff
je 0x659974dc
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 8]
mov edx, dword [edi + 0xc]
jmp 0x6599740f
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x20], 1
call eax
cmp eax, 0xffffffff
jne 0x659973e7
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x70]
mov eax, dword [eax]
add ecx, dword [eax - 0xc]
mov eax, dword [ecx + 0x14]
or eax, 2
jmp 0x6599743e
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x24]
mov dword [esp + 0x20], 1
call eax
mov esi, dword [esp + 0x70]
mov edx, dword [esi]
mov ecx, dword [edx - 0xc]
add ecx, esi
mov esi, dword [ecx + 0x7c]
mov dword [esp + 0x18], esi
test esi, esi
je 0x6599752a
cmp eax, 0xffffffff
jne 0x659973e7
jmp 0x659974e9
mov dword [esp + 0x20], 1
call dbg.std::__throw_bad_cast()
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x65997584
mov eax, dword [esp + 0x14]
sub edx, 1
mov dword [esp], eax
jne 0x659975a2
call dbg.__cxa_begin_catch
mov eax, dword [esp + 0x70]
mov esi, dword [esp + 0x70]
mov eax, dword [eax]
add esi, dword [eax - 0xc]
or dword [esi + 0x14], 1
test byte [esi + 0x10], 1
mov dword [esp + 0x20], 2
je 0x65997603
call dbg.__cxa_rethrow
sub eax, 1
jne 0x659975dd
call dbg.__cxa_end_catch
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
mov dword [esp], eax
call dbg._Unwind_SjLj_Resume
call dbg.__cxa_begin_catch
mov eax, dword [esp + 0x70]
mov esi, dword [esp + 0x70]
mov eax, dword [eax]
add esi, dword [eax - 0xc]
or dword [esi + 0x14], 1
test byte [esi + 0x10], 1
je 0x659975cb
mov dword [esp + 0x20], 3
call dbg.__cxa_rethrow
mov dword [esp + 0x20], 0xffffffff
call dbg.__cxa_end_catch
jmp 0x6599742a
sub eax, 1
jne 0x65997601
xor eax, eax
mov dword [esp + 0x20], eax
call dbg.__cxa_end_catch
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
mov dword [esp], eax
call dbg._Unwind_SjLj_Resume
ud2
call dbg.__cxa_rethrow
nop
nop
nop
nop
nop
nop
nop
nop
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
lea edi, [esp + 0x1c]
mov esi, dword [esp + 0x74]
mov dword [esp + 0x10], ecx
mov dword [esp], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x34], dbg.__gxx_personality_sj0
mov dword [esp + 0x38], 0x65a0fc50
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], 0x65997817
mov dword [esp + 0x44], esp
call dbg._Unwind_SjLj_Register
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x70]
mov byte [eax], 0
mov eax, dword [esp + 0x70]
mov eax, dword [eax]
add ecx, dword [eax - 0xc]
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x6599771e
mov eax, dword [ecx + 0x70]
test eax, eax
je 0x65997750
mov ecx, eax
mov dword [esp + 0x20], 1
call dbg.std::ostream::flush()
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x70]
mov eax, dword [eax]
add ecx, dword [eax - 0xc]
cmp byte [esp + 0x14], 0
jne 0x65997717
test byte [ecx + 0xd], 0x10
je 0x65997717
mov esi, dword [ecx + 0x78]
mov dword [esp + 0x14], esi
mov eax, dword [esi + 8]
cmp eax, dword [esi + 0xc]
jae 0x659977d8
mov esi, dword [ecx + 0x7c]
movzx eax, byte [eax]
mov dword [esp + 0x18], esi
test esi, esi
je 0x6599780a
mov edi, dword [esp + 0x18]
movzx eax, al
mov edx, dword [edi + 0x18]
test byte [edx + eax*2], 0x20
je 0x6599770a
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
cmp eax, edx
jae 0x65997778
add eax, 1
mov dword [ebx + 8], eax
cmp eax, edx
jae 0x659977a0
mov edi, dword [esp + 0x18]
movzx eax, byte [eax]
mov edx, dword [edi + 0x18]
movzx eax, al
test byte [edx + eax*2], 0x20
jne 0x659976d7
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x70]
mov eax, dword [eax]
add ecx, dword [eax - 0xc]
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x65997768
or eax, 4
mov dword [esp + 0x20], 0xffffffff
mov dword [esp], eax
call dbg.std::basic_ios<char, std::char_traits<char> >::clear(std::_Ios_Iostate)
sub esp, 4
lea eax, [esp + 0x1c]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret 8
cmp byte [esp + 0x14], 0
jne 0x65997768
test byte [ecx + 0xd], 0x10
jne 0x659976a2
lea esi, [esi]
mov eax, dword [esp + 0x10]
mov byte [eax], 1
jmp 0x65997734
mov eax, dword [ebx]
mov ecx, ebx
mov eax, dword [eax + 0x28]
mov dword [esp + 0x20], 1
call eax
cmp eax, 0xffffffff
je 0x659977bc
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 8]
mov edx, dword [edi + 0xc]
jmp 0x659976ef
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x20], 1
call eax
cmp eax, 0xffffffff
jne 0x659976c7
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x70]
mov eax, dword [eax]
add ecx, dword [eax - 0xc]
mov eax, dword [ecx + 0x14]
or eax, 2
jmp 0x6599771e
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x24]
mov dword [esp + 0x20], 1
call eax
mov esi, dword [esp + 0x70]
mov edx, dword [esi]
mov ecx, dword [edx - 0xc]
add ecx, esi
mov esi, dword [ecx + 0x7c]
mov dword [esp + 0x18], esi
test esi, esi
je 0x6599780a
cmp eax, 0xffffffff
jne 0x659976c7
jmp 0x659977c9
mov dword [esp + 0x20], 1
call dbg.std::__throw_bad_cast()
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x65997864
mov eax, dword [esp + 0x14]
sub edx, 1
mov dword [esp], eax
jne 0x65997882
call dbg.__cxa_begin_catch
mov eax, dword [esp + 0x70]
mov esi, dword [esp + 0x70]
mov eax, dword [eax]
add esi, dword [eax - 0xc]
or dword [esi + 0x14], 1
test byte [esi + 0x10], 1
mov dword [esp + 0x20], 2
je 0x659978e3
call dbg.__cxa_rethrow
sub eax, 1
jne 0x659978bd
call dbg.__cxa_end_catch
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
mov dword [esp], eax
call dbg._Unwind_SjLj_Resume
call dbg.__cxa_begin_catch
mov eax, dword [esp + 0x70]
mov esi, dword [esp + 0x70]
mov eax, dword [eax]
add esi, dword [eax - 0xc]
or dword [esi + 0x14], 1
test byte [esi + 0x10], 1
je 0x659978ab
mov dword [esp + 0x20], 3
call dbg.__cxa_rethrow
mov dword [esp + 0x20], 0xffffffff
call dbg.__cxa_end_catch
jmp 0x6599770a
sub eax, 1
jne 0x659978e1
xor eax, eax
mov dword [esp + 0x20], eax
call dbg.__cxa_end_catch
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
mov dword [esp], eax
call dbg._Unwind_SjLj_Resume
ud2
call dbg.__cxa_rethrow
nop
nop
nop
nop
nop
nop
nop
nop