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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x9c
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov eax, dword [esp + 0xb8]
mov edx, dword [esp + 0xbc]
cmp ecx, 1
jne 0x4cb050
add eax, 0xbcd4d500
adc edx, 0xb8b1aabc
mov dword [esp + 0x20], eax
cmp ecx, eax
mov eax, 0
sbb eax, edx
mov dword [esp + 0x24], edx
setae byte [esp + 0x1c]
cmp dword [esp + 0xb4], 6
movzx ecx, byte [esp + 0x1c]
sete al
and al, cl
mov byte [esp + 0x45], al
je 0x4cb060
mov eax, dword [esp + 0xc0]
mov ebx, dword [eax - 0xc]
test ebx, ebx
je 0x4cb22f
mov eax, dword [esp + 0xc0]
mov ebp, dword [eax - 0x18]
mov eax, dword [eax - 0x10]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
test eax, eax
js 0x4cb44a
mov eax, dword [esp + 0xc0]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [esp + 0xc4]
mov dword [esp], eax
call sym.__Unwind_SetGR
mov eax, dword [esp + 0xc4]
mov dword [esp + 8], ebp
mov dword [esp + 4], 2
mov dword [esp], eax
call sym.__Unwind_SetGR
mov eax, dword [esp + 0xc4]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dbg._Unwind_SetIP
add esp, 0x9c
mov eax, 7
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 3
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0xc4]
mov dword [esp], eax
call dbg._Unwind_GetLanguageSpecificData
mov dword [esp + 0x30], eax
mov edx, eax
test eax, eax
je 0x4cb246
mov eax, dword [esp + 0xc4]
lea ecx, [esp + 0x78]
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov byte [esp + 0x8c], 0
call sym.parse_lsda_header__Unwind_Context__unsigned_char_const__lsda_header_info_
mov edx, dword [esp + 0xc4]
movq xmm0, qword [esp + 0x84]
mov ebx, eax
movzx eax, byte [esp + 0x8c]
movq qword [esp + 0x58], xmm0
mov esi, dword [esp + 0x5c]
movq qword [esp + 0x28], xmm0
mov dword [esp + 0x18], esi
mov byte [esp + 0x46], al
mov dword [esp + 0x34], eax
call sym.base_of_encoded_value_unsigned_char___Unwind_Context_
mov dword [esp + 0x38], eax
mov dword [esp + 0x80], eax
lea eax, [esp + 0x68]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc4]
mov dword [esp], eax
call dbg._Unwind_GetIPInfo
cmp dword [esp + 0x68], 1
sbb eax, 0
cmp ebx, esi
jae 0x4cb1c6
mov edi, dword [esp + 0x78]
movzx esi, byte [esp + 0x8d]
mov dword [esp + 0x14], edi
mov edi, eax
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 + 0x6c]
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 + 0x70]
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 + 0x74]
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]
lea esi, cs:[esi]
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 0x4cb1a0
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x6c]
cmp edi, eax
jae 0x4cb250
test byte [esp + 0xb4], 1
je 0x4cb208
mov dword [esp + 0x14], 0
xor ebx, ebx
mov dword [esp + 0x18], 0
mov edi, dword [esp + 0x20]
mov eax, 1
mov ebp, dword [esp + 0x24]
cmp eax, edi
mov eax, 0
sbb eax, ebp
jae 0x4cb418
mov eax, 6
jmp 0x4cb055
mov eax, dword [esp + 0xb4]
and eax, 8
jne 0x4cb7e5
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
mov edx, 1
cmp edx, edi
sbb eax, ebp
jb 0x4cb7e5
mov eax, dword [esp + 0xc0]
mov dword [esp], eax
call sym.___cxa_call_terminate
mov eax, dword [esp + 0x74]
test eax, eax
jne 0x4cb270
mov eax, 8
jmp 0x4cb055
add eax, dword [esp + 0x70]
cmp edi, eax
jb 0x4cb23e
mov eax, dword [esp + 0x18]
cmp ebx, eax
jb 0x4cb130
jmp 0x4cb1c6
add eax, dword [esp + 0x7c]
mov ebx, eax
test ebp, ebp
je 0x4cb5aa
test eax, eax
je 0x4cb246
mov eax, dword [esp + 0x28]
movq xmm2, qword [esp + 0x28]
mov esi, dword [esp + 0xb4]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x18]
movq qword [esp + 0x50], xmm2
lea eax, [eax + ebp - 1]
mov dword [esp + 0x14], eax
and esi, 8
jne 0x4cb5b3
mov edi, dword [esp + 0x20]
mov eax, 1
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x40], 0x530c20
mov edx, 1
cmp eax, edi
mov eax, esi
sbb eax, ebp
jae 0x4cb648
mov eax, esi
mov dword [esp + 0x4c], esi
shr eax, 3
mov dword [esp + 0x48], ebx
xor eax, 1
and al, byte [esp + 0x1c]
and eax, edx
mov byte [esp + 0x47], al
lea esi, cs:[esi]
lea esi, [esi]
mov ebx, dword [esp + 0x14]
xor ebp, ebp
xor ecx, ecx
jmp 0x4cb320
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 0x4cb320
cmp ecx, 0x1f
ja 0x4cb34b
and edx, 0x40
je 0x4cb34b
mov eax, 1
shl eax, cl
neg eax
or ebp, eax
mov dword [esp + 0x18], 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 0x4cb360
mov eax, edi
mov edi, ebx
mov ebx, eax
cmp ecx, 0x1f
ja 0x4cb4a0
and edi, 0x40
je 0x4cb4a0
mov eax, 1
shl eax, cl
neg eax
or esi, eax
test ebp, ebp
je 0x4cb558
cmp dword [esp + 0xb4], 2
je 0x4cb40c
test ebp, ebp
jg 0x4cb4ca
cmp byte [esp + 0x47], 0
jne 0x4cb5d0
mov eax, dword [esp + 0x3c]
mov edx, ebp
mov dword [esp + 0x1c], esi
xor edi, edi
not edx
xor ecx, ecx
mov esi, ebx
add edx, eax
lea esi, cs:[esi]
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 0x4cb3e0
mov ebx, esi
mov esi, dword [esp + 0x1c]
test edi, edi
je 0x4cb676
test esi, esi
je 0x4cb586
lea eax, [ebx + esi]
mov dword [esp + 0x14], eax
jmp 0x4cb300
mov eax, dword [esp + 0xc0]
mov edi, dword [esp + 0x18]
mov dword [eax - 0x18], edi
mov edi, dword [esp + 0x14]
mov dword [eax - 0x14], edi
mov edi, dword [esp + 0x30]
mov dword [eax - 0x10], edi
mov edi, dword [esp + 0xc0]
mov eax, dword [esp + 0x64]
mov dword [edi - 0xc], ebx
mov dword [edi - 8], eax
jmp 0x4cb1fe
movzx eax, byte [esp + 0x46]
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x78]
mov byte [esp + 0x8c], al
mov eax, dword [esp + 0xc4]
call sym.parse_lsda_header__Unwind_Context__unsigned_char_const__lsda_header_info_
movzx esi, byte [esp + 0x8c]
mov edx, dword [esp + 0xc4]
mov eax, esi
call sym.base_of_encoded_value_unsigned_char___Unwind_Context_
mov edx, dword [esp + 0xc4]
mov eax, esi
call sym.base_of_encoded_value_unsigned_char___Unwind_Context_
mov edi, dword [esp + 0xc0]
mov dword [edi - 0xc], eax
jmp 0x4cafe8
test ebp, ebp
je 0x4cb4c0
cmp dword [esp + 0xb4], 2
jne 0x4cb3ab
jmp 0x4cb404
mov byte [esp + 0x45], 1
jmp 0x4cb404
movzx eax, byte [esp + 0x46]
cmp al, 0xff
je 0x4cb57d
and eax, 7
cmp al, 2
je 0x4cb571
jbe 0x4cb5c5
cmp al, 3
je 0x4cb562
cmp al, 4
jne 0x4cb692
mov ecx, dword [esp + 0x3c]
lea eax, [ebp*8]
sub ecx, eax
lea eax, [esp + 0x74]
mov edx, dword [esp + 0x38]
mov dword [esp], eax
mov eax, dword [esp + 0x34]
call sym.read_encoded_value_with_base_unsigned_char__unsigned_int__unsigned_char_const__unsigned_int_
mov eax, dword [esp + 0x74]
test eax, eax
je 0x4cb53a
mov edx, dword [esp + 0x40]
test edx, edx
je 0x4cb404
lea ecx, [esp + 0x64]
call sym.get_adjusted_ptr_std::type_info_const__std::type_info_const__void_
test al, al
je 0x4cb404
mov ebx, dword [esp + 0x48]
test byte [esp + 0xb4], 1
jne 0x4cb1e2
jmp 0x4cafe8
mov byte [esp + 0x45], 1
jmp 0x4cb40c
mov ecx, dword [esp + 0x3c]
lea eax, [ebp*4]
sub ecx, eax
jmp 0x4cb501
mov ecx, dword [esp + 0x3c]
lea eax, [ebp + ebp]
sub ecx, eax
jmp 0x4cb501
mov ecx, dword [esp + 0x3c]
jmp 0x4cb501
cmp byte [esp + 0x45], 0
mov ebx, dword [esp + 0x48]
je 0x4cb246
test byte [esp + 0xb4], 1
jne 0x4cb246
xor ebp, ebp
jmp 0x4cafe8
test eax, eax
jne 0x4cb595
jmp 0x4cb246
mov dword [esp + 0x40], 0x530c0c
mov edx, 1
jmp 0x4cb2d8
test al, al
je 0x4cb562
jmp sym.___gxx_personality_v0.cold
movzx eax, byte [esp + 0x46]
movq xmm3, qword [esp + 0x28]
mov dword [esp], ebp
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x40]
mov byte [esp + 0x8c], al
lea eax, [esp + 0x78]
movq qword [esp + 0x84], xmm3
call sym.check_exception_spec_lsda_header_info__std::type_info_const__void__long_
test al, al
jne 0x4cb404
mov ebx, dword [esp + 0x48]
test byte [esp + 0xb4], 1
jne 0x4cb418
mov esi, dword [esp + 0x20]
mov eax, 1
mov edi, dword [esp + 0x24]
cmp eax, esi
mov eax, 0
sbb eax, edi
jae 0x4cafdc
test ebp, ebp
je 0x4cafe8
jmp 0x4cb7ea
mov eax, dword [esp + 0xc0]
mov edi, dword [esp + 0xc0]
add eax, 0x20
test byte [edi], 1
je 0x4cb661
mov eax, dword [edi - 0x30]
mov dword [esp + 0x64], eax
mov eax, dword [eax - 0x50]
test eax, eax
mov dword [esp + 0x40], eax
setne dl
jmp 0x4cb2d8
mov esi, dword [esp + 0x4c]
mov ebx, dword [esp + 0x48]
test byte [esp + 0xb4], 1
jne 0x4cb1e2
test esi, esi
jne 0x4cb635
jmp 0x4cb619
jmp sym.___gxx_personality_v0.cold