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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov esi, dword [esp + 0xb0]
mov edi, dword [esp + 0xb4]
mov dword [esp + 0x50], 0
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0x54], 0
mov ebx, dword [0x4be460]
mov dword [esp + 0x7c], ebx
xor ebx, ebx
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x20], edi
mov edx, dword [esp + 0xac]
cmp ecx, 1
jne 0x496b68
add eax, 0xbcd4d500
adc edx, 0xb8b1aabc
mov dword [esp + 0x28], eax
cmp ecx, eax
mov eax, 0
sbb eax, edx
mov dword [esp + 0x2c], edx
setae byte [esp + 0x35]
cmp dword [esp + 0xa4], 6
movzx ecx, byte [esp + 0x35]
sete al
and al, cl
mov byte [esp + 0x36], al
je 0x496b90
mov eax, dword [esi - 0x18]
mov ebx, dword [esi - 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [esi - 0x10]
mov dword [esp + 0x30], eax
test ebx, ebx
je 0x496cc0
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
js 0x496e46
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], edi
call sym.__Unwind_SetGR
mov dword [esp + 8], ebp
mov dword [esp + 4], 2
mov dword [esp], edi
call sym.__Unwind_SetGR
mov dword [esp + 4], ebx
mov dword [esp], edi
call sym.__Unwind_SetIP
mov eax, 7
jmp 0x496b6d
mov eax, 3
mov edx, dword [esp + 0x7c]
sub edx, dword [0x4be460]
jne 0x4970a4
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [esp + 0x20]
mov dword [esp], edi
call sym.__Unwind_GetLanguageSpecificData
mov dword [esp + 0x30], eax
mov edx, eax
test eax, eax
je 0x496e3c
lea ecx, [esp + 0x64]
mov eax, edi
call sym.parse_lsda_header__Unwind_Context__unsigned_char_const__lsda_header_info_
mov edx, edi
mov ebx, eax
movzx eax, byte [esp + 0x78]
mov byte [esp + 0x37], al
mov dword [esp + 0x38], eax
call sym.base_of_encoded_value_unsigned_char___Unwind_Context_
mov dword [esp], edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x54]
mov dword [esp + 4], eax
call sym.__Unwind_GetIPInfo
cmp dword [esp + 0x54], 1
sbb eax, 0
mov ecx, eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x1c], eax
cmp ebx, eax
jae 0x496c92
mov edi, dword [esp + 0x64]
movzx esi, byte [esp + 0x79]
mov dword [esp + 0x18], edi
mov edi, ecx
lea esi, [esi]
xor edx, edx
mov eax, esi
xor ebp, ebp
call sym.base_of_encoded_value_unsigned_char___Unwind_Context_
mov ecx, ebx
mov edx, eax
lea eax, [esp + 0x58]
mov dword [esp], eax
mov eax, esi
call sym.read_encoded_value_with_base_unsigned_char__unsigned_int__unsigned_char_const__unsigned_int_
xor edx, edx
mov ebx, eax
mov eax, esi
call sym.base_of_encoded_value_unsigned_char___Unwind_Context_
mov ecx, ebx
mov edx, eax
lea eax, [esp + 0x5c]
mov dword [esp], eax
mov eax, esi
call sym.read_encoded_value_with_base_unsigned_char__unsigned_int__unsigned_char_const__unsigned_int_
xor edx, edx
mov ebx, eax
mov eax, esi
call sym.base_of_encoded_value_unsigned_char___Unwind_Context_
mov ecx, ebx
mov edx, eax
lea eax, [esp + 0x60]
mov dword [esp], eax
mov eax, esi
call sym.read_encoded_value_with_base_unsigned_char__unsigned_int__unsigned_char_const__unsigned_int_
xor ecx, ecx
mov ebx, eax
lea esi, cs:[esi]
movzx edx, byte [ebx]
add ebx, 1
mov eax, edx
and eax, 0x7f
shl eax, cl
add ecx, 7
or ebp, eax
test dl, dl
js 0x496c70
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x58]
cmp edi, eax
jae 0x496cd0
mov eax, dword [esp + 0xa4]
and eax, 1
jne 0x496cf0
test byte [esp + 0xa4], 8
je 0x496cad
call method.std.terminate__
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov edx, 1
cmp edx, edi
sbb eax, ebp
jb 0x496ca8
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym.___cxa_call_terminate
lea esi, [esi]
add eax, dword [esp + 0x5c]
cmp edi, eax
jb 0x496d28
mov eax, dword [esp + 0x1c]
cmp ebx, eax
jb 0x496c10
jmp 0x496c92
mov dword [esp + 0x1c], 0
xor ebx, ebx
mov dword [esp + 0x18], 0
mov edi, dword [esp + 0x28]
mov eax, 1
mov ebp, dword [esp + 0x2c]
cmp eax, edi
mov eax, 0
sbb eax, ebp
jae 0x496e7c
mov eax, 6
jmp 0x496b6d
mov eax, dword [esp + 0x60]
test eax, eax
je 0x496e3c
add eax, dword [esp + 0x68]
mov ebx, eax
test ebp, ebp
je 0x49701f
mov eax, dword [esp + 0x1c]
lea eax, [eax + ebp - 1]
mov dword [esp + 0x18], eax
test ebx, ebx
je 0x496e3c
mov esi, dword [esp + 0xa4]
mov dword [esp + 0x48], 0x4ab7cc
and esi, 8
mov dword [esp + 0x44], esi
jne 0x496d8d
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov eax, 1
mov dword [esp + 0x48], 0x4ab7e0
cmp eax, edi
sbb esi, ebp
jae 0x497080
mov dword [esp + 0x4c], ebx
lea esi, [esi]
mov ebx, dword [esp + 0x18]
xor ebp, ebp
xor ecx, ecx
movzx edx, byte [ebx]
add ebx, 1
mov eax, edx
and eax, 0x7f
shl eax, cl
add ecx, 7
or ebp, eax
test dl, dl
js 0x496da0
cmp ecx, 0x1f
ja 0x496dcb
and edx, 0x40
je 0x496dcb
mov eax, 1
shl eax, cl
neg eax
or ebp, eax
mov dword [esp + 0x1c], ebp
mov edx, ebx
xor esi, esi
xor ecx, ecx
mov edi, ebx
lea esi, cs:[esi]
nop
movzx ebx, byte [edx]
add edx, 1
mov eax, ebx
and eax, 0x7f
shl eax, cl
add ecx, 7
or esi, eax
test bl, bl
js 0x496de0
mov eax, edi
mov edi, ebx
mov ebx, eax
cmp ecx, 0x1f
ja 0x496ea8
and edi, 0x40
je 0x496ea8
mov eax, 1
shl eax, cl
neg eax
or esi, eax
test ebp, ebp
jne 0x496ee0
mov byte [esp + 0x36], 1
lea esi, cs:[esi]
nop
lea eax, [ebx + esi]
mov dword [esp + 0x18], eax
jmp 0x496d98
mov eax, 8
jmp 0x496b6d
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x64]
mov eax, edi
call sym.parse_lsda_header__Unwind_Context__unsigned_char_const__lsda_header_info_
movzx esi, byte [esp + 0x78]
mov edx, edi
mov eax, esi
call sym.base_of_encoded_value_unsigned_char___Unwind_Context_
mov edx, edi
mov eax, esi
call sym.base_of_encoded_value_unsigned_char___Unwind_Context_
mov edi, dword [esp + 0x24]
mov dword [edi - 0xc], eax
jmp 0x496b20
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov dword [edi - 0x18], eax
mov eax, dword [esp + 0x18]
mov dword [edi - 0xc], ebx
mov dword [edi - 0x14], eax
mov eax, dword [esp + 0x30]
mov dword [edi - 0x10], eax
mov eax, dword [esp + 0x50]
mov dword [edi - 8], eax
jmp 0x496d1e
test ebp, ebp
jne 0x496ee0
mov byte [esp + 0x36], 1
test esi, esi
jne 0x496e30
cmp byte [esp + 0x36], 0
mov ebx, dword [esp + 0x4c]
je 0x496e3c
test byte [esp + 0xa4], 1
jne 0x496e3c
xor ebp, ebp
jmp 0x496b20
test ebp, ebp
jg 0x496f90
mov eax, dword [esp + 0x44]
test eax, eax
sete al
test byte [esp + 0x35], al
je 0x496f03
mov edi, dword [esp + 0x48]
test edi, edi
jne 0x497058
mov edx, ebp
mov dword [esp + 0x40], esi
xor edi, edi
xor ecx, ecx
not edx
mov esi, ebx
add edx, dword [esp + 0x70]
lea esi, [esi]
movzx ebx, byte [edx]
add edx, 1
mov eax, ebx
and eax, 0x7f
shl eax, cl
add ecx, 7
or edi, eax
test bl, bl
js 0x496f18
mov ebx, esi
mov esi, dword [esp + 0x40]
test edi, edi
jne 0x496eb1
mov eax, dword [esp + 0xa4]
mov ebx, dword [esp + 0x4c]
and eax, 1
jne 0x496d02
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov edx, 1
cmp edx, esi
sbb eax, edi
jb 0x496f6f
mov eax, dword [esp + 0x44]
test eax, eax
je 0x496b14
test ebp, ebp
jns 0x496b20
mov eax, dword [esp + 0x7c]
sub eax, dword [0x4be460]
jne 0x4970a9
call method.std.unexpected__
lea esi, [esi]
movzx eax, byte [esp + 0x37]
cmp al, 0xff
je 0x49701b
and eax, 7
cmp al, 2
je 0x497008
jbe 0x497048
cmp al, 3
je 0x497010
cmp al, 4
jne 0x49709f
lea ecx, [ebp*8]
neg ecx
lea eax, [esp + 0x60]
mov edx, dword [esp + 0x3c]
add ecx, dword [esp + 0x70]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
call sym.read_encoded_value_with_base_unsigned_char__unsigned_int__unsigned_char_const__unsigned_int_
mov eax, dword [esp + 0x60]
test eax, eax
je 0x496f3c
mov edx, dword [esp + 0x48]
test edx, edx
je 0x496eb1
lea ecx, [esp + 0x50]
call sym.get_adjusted_ptr_std::type_info_const__std::type_info_const__void_
test al, al
je 0x496eb1
jmp 0x496f3c
lea ecx, [ebp + ebp]
neg ecx
jmp 0x496fbf
lea ecx, [ebp*4]
neg ecx
jmp 0x496fbf
xor ecx, ecx
jmp 0x496fbf
test eax, eax
je 0x496e3c
test byte [esp + 0xa4], 1
jne 0x496e3c
mov eax, dword [esp + 0xa4]
and eax, 8
mov dword [esp + 0x44], eax
jmp 0x496ed6
test al, al
je 0x497010
jmp sym.___gxx_personality_v0.cold
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x48]
mov dword [esp], ebp
lea eax, [esp + 0x64]
call sym.check_exception_spec_lsda_header_info__std::type_info_const__void__long_
test al, al
jne 0x496eb1
jmp 0x496f3c
mov edi, dword [esp + 0x24]
lea eax, [edi + 0x20]
test byte [edi], 1
je 0x49708f
mov eax, dword [edi - 0x30]
mov dword [esp + 0x50], eax
mov eax, dword [eax - 0x50]
mov dword [esp + 0x48], eax
jmp 0x496d8d
jmp sym.___gxx_personality_v0.cold
call dbg.__stack_chk_fail
call dbg.__stack_chk_fail
jmp 0x4977d2
mov dword [esp], eax
call sym.___cxa_begin_catch
call method.std.terminate__
nop