Function at 0x496ae0
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 [0x4bf460]
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 0x496be8
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 0x496c10
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 0x496d40
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
js 0x496ec6
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 0x496bed
mov eax, 3
mov edx, dword [esp + 0x7c]
sub edx, dword [0x4bf460]
jne 0x497124
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 0x496ebc
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 0x496d12
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 0x496cf0
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x58]
cmp edi, eax
jae 0x496d50
mov eax, dword [esp + 0xa4]
and eax, 1
jne 0x496d70
test byte [esp + 0xa4], 8
je 0x496d2d
call method.std.terminate__
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov edx, 1
cmp edx, edi
sbb eax, ebp
jb 0x496d28
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 0x496da8
mov eax, dword [esp + 0x1c]
cmp ebx, eax
jb 0x496c90
jmp 0x496d12
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 0x496efc
mov eax, 6
jmp 0x496bed
mov eax, dword [esp + 0x60]
test eax, eax
je 0x496ebc
add eax, dword [esp + 0x68]
mov ebx, eax
test ebp, ebp
je 0x49709f
mov eax, dword [esp + 0x1c]
lea eax, [eax + ebp - 1]
mov dword [esp + 0x18], eax
test ebx, ebx
je 0x496ebc
mov esi, dword [esp + 0xa4]
mov dword [esp + 0x48], 0x4ac7cc
and esi, 8
mov dword [esp + 0x44], esi
jne 0x496e0d
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov eax, 1
mov dword [esp + 0x48], 0x4ac7e0
cmp eax, edi
sbb esi, ebp
jae 0x497100
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 0x496e20
cmp ecx, 0x1f
ja 0x496e4b
and edx, 0x40
je 0x496e4b
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 0x496e60
mov eax, edi
mov edi, ebx
mov ebx, eax
cmp ecx, 0x1f
ja 0x496f28
and edi, 0x40
je 0x496f28
mov eax, 1
shl eax, cl
neg eax
or esi, eax
test ebp, ebp
jne 0x496f60
mov byte [esp + 0x36], 1
lea esi, cs:[esi]
nop
lea eax, [ebx + esi]
mov dword [esp + 0x18], eax
jmp 0x496e18
mov eax, 8
jmp 0x496bed
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 0x496ba0
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 0x496d9e
test ebp, ebp
jne 0x496f60
mov byte [esp + 0x36], 1
test esi, esi
jne 0x496eb0
cmp byte [esp + 0x36], 0
mov ebx, dword [esp + 0x4c]
je 0x496ebc
test byte [esp + 0xa4], 1
jne 0x496ebc
xor ebp, ebp
jmp 0x496ba0
test ebp, ebp
jg 0x497010
mov eax, dword [esp + 0x44]
test eax, eax
sete al
test byte [esp + 0x35], al
je 0x496f83
mov edi, dword [esp + 0x48]
test edi, edi
jne 0x4970d8
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 0x496f98
mov ebx, esi
mov esi, dword [esp + 0x40]
test edi, edi
jne 0x496f31
mov eax, dword [esp + 0xa4]
mov ebx, dword [esp + 0x4c]
and eax, 1
jne 0x496d82
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov edx, 1
cmp edx, esi
sbb eax, edi
jb 0x496fef
mov eax, dword [esp + 0x44]
test eax, eax
je 0x496b94
test ebp, ebp
jns 0x496ba0
mov eax, dword [esp + 0x7c]
sub eax, dword [0x4bf460]
jne 0x497129
call method.std.unexpected__
lea esi, [esi]
movzx eax, byte [esp + 0x37]
cmp al, 0xff
je 0x49709b
and eax, 7
cmp al, 2
je 0x497088
jbe 0x4970c8
cmp al, 3
je 0x497090
cmp al, 4
jne 0x49711f
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 0x496fbc
mov edx, dword [esp + 0x48]
test edx, edx
je 0x496f31
lea ecx, [esp + 0x50]
call sym.get_adjusted_ptr_std::type_info_const__std::type_info_const__void_
test al, al
je 0x496f31
jmp 0x496fbc
lea ecx, [ebp + ebp]
neg ecx
jmp 0x49703f
lea ecx, [ebp*4]
neg ecx
jmp 0x49703f
xor ecx, ecx
jmp 0x49703f
test eax, eax
je 0x496ebc
test byte [esp + 0xa4], 1
jne 0x496ebc
mov eax, dword [esp + 0xa4]
and eax, 8
mov dword [esp + 0x44], eax
jmp 0x496f56
test al, al
je 0x497090
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 0x496f31
jmp 0x496fbc
mov edi, dword [esp + 0x24]
lea eax, [edi + 0x20]
test byte [edi], 1
je 0x49710f
mov eax, dword [edi - 0x30]
mov dword [esp + 0x50], eax
mov eax, dword [eax - 0x50]
mov dword [esp + 0x48], eax
jmp 0x496e0d
jmp sym.___gxx_personality_v0.cold
call dbg.__stack_chk_fail
call dbg.__stack_chk_fail
jmp 0x497852
mov dword [esp], eax
call sym.___cxa_begin_catch
call method.std.terminate__
nop