Function at 0x420400
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 0x420510
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 0x420520
mov eax, dword [esp + 0xc0]
mov ebx, dword [eax - 0xc]
test ebx, ebx
je 0x4206ef
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 0x42090a
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 0x420706
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 0x420686
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 0x420660
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x6c]
cmp edi, eax
jae 0x420710
test byte [esp + 0xb4], 1
je 0x4206c8
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 0x4208d8
mov eax, 6
jmp 0x420515
mov eax, dword [esp + 0xb4]
and eax, 8
jne 0x420b9d
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
mov edx, 1
cmp edx, edi
sbb eax, ebp
jb 0x420b9d
mov eax, dword [esp + 0xc0]
mov dword [esp], eax
call sym.___cxa_call_terminate
mov eax, dword [esp + 0x74]
test eax, eax
jne 0x420730
mov eax, 8
jmp 0x420515
add eax, dword [esp + 0x70]
cmp edi, eax
jb 0x4206fe
mov eax, dword [esp + 0x18]
cmp ebx, eax
jb 0x4205f0
jmp 0x420686
add eax, dword [esp + 0x7c]
mov ebx, eax
test ebp, ebp
je 0x420a6a
test eax, eax
je 0x420706
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 0x420a73
mov edi, dword [esp + 0x20]
mov eax, 1
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x40], 0x42550c
mov edx, 1
cmp eax, edi
mov eax, esi
sbb eax, ebp
jae 0x420b08
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 0x4207e0
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 0x4207e0
cmp ecx, 0x1f
ja 0x42080b
and edx, 0x40
je 0x42080b
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 0x420820
mov eax, edi
mov edi, ebx
mov ebx, eax
cmp ecx, 0x1f
ja 0x420960
and edi, 0x40
je 0x420960
mov eax, 1
shl eax, cl
neg eax
or esi, eax
test ebp, ebp
je 0x420a18
cmp dword [esp + 0xb4], 2
je 0x4208cc
test ebp, ebp
jg 0x42098a
cmp byte [esp + 0x47], 0
jne 0x420a90
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 0x4208a0
mov ebx, esi
mov esi, dword [esp + 0x1c]
test edi, edi
je 0x420b36
test esi, esi
je 0x420a46
lea eax, [ebx + esi]
mov dword [esp + 0x14], eax
jmp 0x4207c0
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 0x4206be
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 0x4204a8
test ebp, ebp
je 0x420980
cmp dword [esp + 0xb4], 2
jne 0x42086b
jmp 0x4208c4
mov byte [esp + 0x45], 1
jmp 0x4208c4
movzx eax, byte [esp + 0x46]
cmp al, 0xff
je 0x420a3d
and eax, 7
cmp al, 2
je 0x420a31
jbe 0x420a85
cmp al, 3
je 0x420a22
cmp al, 4
jne 0x420b52
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 0x4209fa
mov edx, dword [esp + 0x40]
test edx, edx
je 0x4208c4
lea ecx, [esp + 0x64]
call sym.get_adjusted_ptr_std::type_info_const__std::type_info_const__void_
test al, al
je 0x4208c4
mov ebx, dword [esp + 0x48]
test byte [esp + 0xb4], 1
jne 0x4206a2
jmp 0x4204a8
mov byte [esp + 0x45], 1
jmp 0x4208cc
mov ecx, dword [esp + 0x3c]
lea eax, [ebp*4]
sub ecx, eax
jmp 0x4209c1
mov ecx, dword [esp + 0x3c]
lea eax, [ebp + ebp]
sub ecx, eax
jmp 0x4209c1
mov ecx, dword [esp + 0x3c]
jmp 0x4209c1
cmp byte [esp + 0x45], 0
mov ebx, dword [esp + 0x48]
je 0x420706
test byte [esp + 0xb4], 1
jne 0x420706
xor ebp, ebp
jmp 0x4204a8
test eax, eax
jne 0x420a55
jmp 0x420706
mov dword [esp + 0x40], 0x4254f8
mov edx, 1
jmp 0x420798
test al, al
je 0x420a22
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 0x4208c4
mov ebx, dword [esp + 0x48]
test byte [esp + 0xb4], 1
jne 0x4208d8
mov esi, dword [esp + 0x20]
mov eax, 1
mov edi, dword [esp + 0x24]
cmp eax, esi
mov eax, 0
sbb eax, edi
jae 0x42049c
test ebp, ebp
je 0x4204a8
jmp 0x420ba2
mov eax, dword [esp + 0xc0]
mov edi, dword [esp + 0xc0]
add eax, 0x20
test byte [edi], 1
je 0x420b21
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 0x420798
mov esi, dword [esp + 0x4c]
mov ebx, dword [esp + 0x48]
test byte [esp + 0xb4], 1
jne 0x4206a2
test esi, esi
jne 0x420af5
jmp 0x420ad9
jmp sym.___gxx_personality_v0.cold