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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xac
mov eax, dword [esp + 0xc8]
mov edx, dword [esp + 0xcc]
mov dword [esp + 0x54], dbg.__gxx_personality_sj0
mov dword [esp + 0x58], 0x412b44
mov dword [esp + 0x60], 0x412a0d
mov dword [esp + 0x64], esp
mov dword [esp + 0x18], eax
lea eax, [esp + 0xa0]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x3c]
mov dword [esp], eax
call dbg._Unwind_SjLj_Register
cmp dword [esp + 0xc0], 1
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x20], 3
je 0x412510
lea eax, [esp + 0x3c]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
mov eax, dword [esp + 0x20]
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov byte [esp + 0x18], 1
add eax, 0xbcd4d500
adc edx, 0xb8b1aabc
cmp edx, 0
jbe 0x412600
cmp dword [esp + 0xc4], 6
sete al
cmp byte [esp + 0x18], al
jae 0x412641
mov eax, dword [esp + 0xd0]
mov eax, dword [eax - 0x18]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xd0]
mov eax, dword [eax - 0x10]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xd0]
mov eax, dword [eax - 0xc]
test eax, eax
mov dword [esp + 0x2c], eax
je 0x412610
test byte [esp + 0xc4], 8
jne 0x412628
mov edx, dword [esp + 0x24]
test edx, edx
js 0x4129b0
mov eax, dword [esp + 0xd0]
mov dword [esp + 4], 0
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 8], eax
mov eax, dword [esp + 0xd4]
mov dword [esp], eax
call dbg._Unwind_SetGR
mov eax, dword [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov eax, dword [esp + 0xd4]
mov dword [esp], eax
call dbg._Unwind_SetGR
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xd4]
mov dword [esp], eax
call dbg._Unwind_SetIP
mov dword [esp + 0x20], 7
jmp 0x4124f5
cmp eax, 1
seta byte [esp + 0x18]
jmp 0x412531
test byte [esp + 0xc4], 8
je 0x412772
call dbg.std::terminate()
cmp eax, 1
je 0x41261e
mov ecx, dword [esp + 0x24]
test ecx, ecx
jns 0x412592
mov dword [esp + 0x40], 1
call dbg.std::unexpected()
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x40], 0xffffffff
mov dword [esp], eax
call dbg._Unwind_GetLanguageSpecificData
test eax, eax
mov dword [esp + 0x30], eax
je 0x412781
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0xd4]
lea ecx, [esp + 0x88]
mov dword [esp + 0x40], 0xffffffff
call dbg.parse_lsda_header
mov dword [esp + 0x20], eax
movzx eax, byte [esp + 0x9c]
mov edx, dword [esp + 0xd4]
call dbg.base_of_encoded_value
mov dword [esp + 0x90], eax
lea eax, [esp + 0x7c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xd4]
mov dword [esp], eax
call dbg._Unwind_GetIPInfo
cmp dword [esp + 0x7c], 1
mov esi, eax
sbb esi, 0
test esi, esi
js 0x412781
jne 0x41278e
mov dword [esp + 0x2c], 0
mov eax, 1
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
test byte [esp + 0xc4], 1
je 0x412750
cmp eax, 2
je 0x412781
cmp byte [esp + 0x18], 0
mov dword [esp + 0x20], 6
jne 0x4124f5
mov eax, dword [esp + 0xd0]
mov esi, dword [esp + 0x24]
mov dword [eax - 0x18], esi
mov esi, dword [esp + 0x28]
mov dword [eax - 0x14], esi
mov esi, dword [esp + 0x30]
mov dword [eax - 0x10], esi
mov esi, dword [esp + 0xd0]
mov eax, dword [esp + 0x78]
mov dword [esi - 8], eax
mov eax, esi
mov esi, dword [esp + 0x2c]
mov dword [eax - 0xc], esi
jmp 0x4124f5
cmp byte [esp + 0x18], 0
jne 0x412623
test byte [esp + 0xc4], 8
jne 0x412623
cmp eax, 1
jne 0x412586
mov eax, dword [esp + 0xd0]
mov dword [esp], eax
call dbg.__cxa_call_terminate
mov dword [esp + 0x20], 8
jmp 0x4124f5
mov eax, dword [esp + 0x20]
xor ebp, ebp
xor ecx, ecx
lea esi, [esi]
lea edi, [edi]
add eax, 1
movzx ebx, byte [eax - 1]
mov edx, ebx
and edx, 0x7f
shl edx, cl
add ecx, 7
or ebp, edx
test bl, bl
js 0x4127a0
xor edi, edi
xor ecx, ecx
nop
lea esi, [esi]
add eax, 1
movzx ebx, byte [eax - 1]
mov edx, ebx
and edx, 0x7f
shl edx, cl
add ecx, 7
or edi, edx
test bl, bl
js 0x4127c0
sub esi, 1
jne 0x412792
lea eax, [ebp + 1]
test edi, edi
mov dword [esp + 0x2c], eax
je 0x412956
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0x2c]
lea eax, [eax + edi - 1]
test edx, edx
mov dword [esp + 0x28], eax
je 0x412781
test eax, eax
je 0x412962
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x34], 0x459fdc
and eax, 8
mov dword [esp + 0x38], eax
jne 0x412859
cmp byte [esp + 0x18], 0
mov dword [esp + 0x34], 0x459ff0
jne 0x412859
mov eax, dword [esp + 0xd0]
mov esi, dword [esp + 0xd0]
add eax, 0x20
test byte [esi], 1
je 0x41284e
mov eax, dword [esi - 0x30]
mov dword [esp + 0x78], eax
mov eax, dword [eax - 0x50]
mov dword [esp + 0x34], eax
mov byte [esp + 0x24], 0
nop
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x80]
call dbg.read_sleb128
lea edx, [esp + 0x84]
mov dword [esp + 0x20], eax
call dbg.read_sleb128
mov edx, dword [esp + 0x80]
cmp edx, 0
je 0x412900
jg 0x412910
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
test ebx, ebx
setne cl
test esi, esi
sete al
and eax, ecx
cmp al, byte [esp + 0x18]
ja 0x41296c
mov eax, dword [esp + 0x94]
not edx
xor esi, esi
xor ecx, ecx
add eax, edx
nop
add eax, 1
movzx ebx, byte [eax - 1]
mov edx, ebx
and edx, 0x7f
shl edx, cl
add ecx, 7
or esi, edx
test bl, bl
js 0x4128c0
test esi, esi
sete al
test al, al
jne 0x412941
mov eax, dword [esp + 0x84]
test eax, eax
je 0x412993
add eax, dword [esp + 0x20]
mov dword [esp + 0x28], eax
jmp 0x412860
mov byte [esp + 0x24], 1
jmp 0x4128e0
lea eax, [esp + 0x88]
mov dword [esp + 0x40], 0xffffffff
call dbg.get_ttype_entry
test eax, eax
je 0x412941
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4128e0
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x78]
call dbg.get_adjusted_ptr
test al, al
je 0x4128e0
mov eax, dword [esp + 0x80]
mov dword [esp + 0x24], eax
mov eax, 3
jmp 0x4126ee
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x412781
mov eax, 2
jmp 0x4126de
mov dword [esp], edx
mov ecx, dword [esp + 0x78]
lea eax, [esp + 0x88]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x40], 0xffffffff
call dbg.check_exception_spec
xor eax, 1
jmp 0x4128dc
cmp byte [esp + 0x24], 0
je 0x412781
mov dword [esp + 0x24], 0
mov eax, 2
jmp 0x4126ee
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0xd4]
lea ecx, [esp + 0x88]
mov dword [esp + 0x40], 0xffffffff
call dbg.parse_lsda_header
movzx eax, byte [esp + 0x9c]
mov edx, dword [esp + 0xd4]
call dbg.base_of_encoded_value
mov dword [esp + 0x90], eax
movzx eax, byte [esp + 0x9c]
mov edx, dword [esp + 0xd4]
call dbg.base_of_encoded_value
mov esi, dword [esp + 0xd0]
mov dword [esi - 0xc], eax
jmp 0x412592