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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xbc
lea eax, [esp + 0x5c]
mov ebp, dword [esp + 0xdc]
mov edi, dword [esp + 0xd8]
mov dword [esp + 0x74], dbg.__gxx_personality_sj0
mov dword [esp], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x78], 0x50fdf4
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x80], 0x50ec7e
mov dword [esp + 0x84], esp
call dbg._Unwind_SjLj_Register
cmp dword [esp + 0xd0], 1
mov dword [esp + 0x90], 0
jne 0x50e4c8
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov eax, 0
add edi, 0xbcd4d500
adc ebp, 0xb8b1aabc
cmp dword [esp + 0xd0], edi
mov dword [esp + 0x38], edi
sbb eax, ebp
mov dword [esp + 0x3c], ebp
setae byte [esp + 0x18]
cmp dword [esp + 0xd4], 6
movzx ecx, byte [esp + 0x18]
sete al
and al, cl
mov byte [esp + 0x4d], al
je 0x50e4f0
mov eax, dword [esp + 0xe0]
mov eax, dword [eax - 0x18]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xe0]
mov eax, dword [eax - 0x10]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xe0]
mov eax, dword [eax - 0xc]
mov dword [esp + 0x34], eax
test eax, eax
jne 0x50e588
mov eax, dword [esp + 0xe0]
mov dword [esp], eax
call dbg.__cxa_call_terminate
lea esi, [esi]
nop
mov dword [esp + 0x18], 3
lea eax, [esp + 0x5c]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
mov eax, dword [esp + 0x18]
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x60], 0xffffffff
mov dword [esp], eax
call dbg._Unwind_GetLanguageSpecificData
mov dword [esp + 0x30], eax
test eax, eax
je 0x50e650
mov edx, eax
mov eax, dword [esp + 0xe4]
lea ecx, [esp + 0x98]
mov dword [esp + 0x60], 0xffffffff
call dbg.parse_lsda_header
mov dword [esp + 0x20], eax
movzx eax, byte [esp + 0xac]
mov byte [esp + 0x4e], al
cmp al, 0xff
je 0x50e663
and eax, 0x70
cmp al, 0x30
je 0x50eb90
ja 0x50eb2e
cmp al, 0x20
jne 0x50e65d
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x60], 0xffffffff
mov dword [esp], eax
call sym.__Unwind_GetTextRelBase
mov dword [esp + 0x40], eax
jmp 0x50e66b
mov edx, dword [esp + 0x2c]
test edx, edx
js 0x50e910
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xe0]
mov dword [esp + 4], 0
mov dword [esp + 0x60], 0xffffffff
mov dword [esp + 8], eax
mov eax, dword [esp + 0xe4]
mov dword [esp], eax
call dbg._Unwind_SetGR
mov eax, dword [esp + 0x18]
mov dword [esp + 4], 1
mov dword [esp + 8], eax
mov eax, dword [esp + 0xe4]
mov dword [esp], eax
call dbg._Unwind_SetGR
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xe4]
mov dword [esp], eax
call dbg._Unwind_SetIP
mov dword [esp + 0x18], 7
jmp 0x50e4d0
mov ebp, dword [esp + 0x18]
test ebp, ebp
jne 0x50e990
mov byte [esp + 0x4d], 1
mov ebx, dword [esp + 0x20]
test ebx, ebx
jne 0x50e880
cmp byte [esp + 0x4d], 0
je 0x50e650
mov eax, dword [esp + 0xd4]
and eax, 1
mov dword [esp + 0x2c], eax
je 0x50e8bd
lea esi, [esi]
nop
mov dword [esp + 0x18], 8
jmp 0x50e4d0
ja 0x50ebff
mov dword [esp + 0x40], 0
mov eax, dword [esp + 0x40]
mov dword [esp + 0x60], 0xffffffff
mov dword [esp + 0xa0], eax
lea eax, [esp + 0x90]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xe4]
mov dword [esp], eax
call dbg._Unwind_GetIPInfo
cmp dword [esp + 0x90], 1
sbb eax, 0
mov esi, eax
test eax, eax
js 0x50e650
jne 0x50e710
mov eax, dword [esp + 0xd4]
and eax, 1
je 0x50e8f8
mov dword [esp + 0x2c], 0
xor edx, edx
xor ebp, ebp
mov ecx, dword [esp + 0x38]
mov eax, 1
mov ebx, dword [esp + 0x3c]
cmp eax, ecx
mov eax, 0
sbb eax, ebx
jb 0x50e6fd
mov eax, dword [esp + 0xe0]
mov edi, dword [esp + 0x2c]
mov dword [eax - 0x18], edi
mov edi, dword [esp + 0x30]
mov dword [eax - 0x14], ebp
mov dword [eax - 0x10], edi
mov dword [eax - 8], edx
mov dword [eax - 0xc], esi
mov dword [esp + 0x18], 6
jmp 0x50e4d0
mov eax, dword [esp + 0x20]
lea esi, [esi]
xor ebp, ebp
xor ecx, ecx
lea esi, [esi]
movzx ebx, byte [eax]
add eax, 1
mov edx, ebx
and edx, 0x7f
shl edx, cl
add ecx, 7
or ebp, edx
test bl, bl
js 0x50e720
xor edi, edi
xor ecx, ecx
lea esi, [esi]
movzx ebx, byte [eax]
add eax, 1
mov edx, ebx
and edx, 0x7f
shl edx, cl
add ecx, 7
or edi, edx
test bl, bl
js 0x50e740
sub esi, 1
jne 0x50e718
lea eax, [ebp + 1]
mov dword [esp + 0x34], eax
test edi, edi
je 0x50e893
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0xa8]
test edx, edx
je 0x50e650
lea ebp, [eax + edi - 1]
test ebp, ebp
je 0x50e89b
mov eax, dword [esp + 0xe0]
lea edx, [eax + 0x20]
test byte [eax], 1
je 0x50e79b
mov edx, dword [eax - 0x30]
mov eax, dword [edx - 0x50]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x50], edx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xd4]
and eax, 8
mov dword [esp + 0x58], eax
sete al
and al, byte [esp + 0x18]
mov byte [esp + 0x4f], al
movzx eax, byte [esp + 0x4e]
mov dword [esp + 0x54], eax
mov eax, ebp
nop
xor esi, esi
xor ecx, ecx
mov ebx, eax
lea esi, [esi]
lea esi, [esi]
movzx edx, byte [ebx]
add ebx, 1
mov eax, edx
and eax, 0x7f
shl eax, cl
add ecx, 7
or esi, eax
test dl, dl
js 0x50e7e0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], esi
cmp ecx, 0x1f
ja 0x50e817
and edx, 0x40
je 0x50e817
mov eax, 1
shl eax, cl
neg eax
or esi, eax
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
xor esi, esi
xor ecx, ecx
mov dword [esp + 0x2c], eax
lea esi, [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 0x50e830
mov dword [esp + 0x20], esi
cmp ecx, 0x1f
ja 0x50e610
and ebx, 0x40
je 0x50e610
mov eax, 1
shl eax, cl
neg eax
or esi, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], esi
test eax, eax
jne 0x50e990
mov byte [esp + 0x4d], 1
lea esi, [esi]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
add eax, edi
mov dword [esp + 0x28], eax
jmp 0x50e7d0
test eax, eax
je 0x50e650
mov eax, dword [esp + 0xd4]
and eax, 1
mov dword [esp + 0x2c], eax
jne 0x50e650
mov eax, dword [esp + 0xd4]
and eax, 8
mov dword [esp + 0x58], eax
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x58]
test eax, eax
jne 0x50e59c
mov edi, dword [esp + 0x38]
mov eax, 1
mov ebp, dword [esp + 0x3c]
cmp eax, edi
mov eax, 0
sbb eax, ebp
jb 0x50e59c
jmp 0x50e594
test byte [esp + 0xd4], 8
je 0x50ebdb
call dbg.std::terminate()
lea esi, [esi]
nop
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0xe4]
lea ecx, [esp + 0x98]
mov dword [esp + 0x60], 0xffffffff
call dbg.parse_lsda_header
movzx eax, byte [esp + 0xac]
cmp al, 0xff
je 0x50ec12
and eax, 0x70
cmp al, 0x30
je 0x50ec48
ja 0x50ec19
cmp al, 0x20
jne 0x50ec10
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x60], 0xffffffff
mov dword [esp], eax
call sym.__Unwind_GetTextRelBase
mov eax, dword [esp + 0xe4]
mov dword [esp], eax
call sym.__Unwind_GetTextRelBase
mov edi, dword [esp + 0xe0]
mov dword [edi - 0xc], eax
jmp 0x50e594
mov edi, dword [esp + 0x18]
test edi, edi
jg 0x50ea30
mov esi, dword [esp + 0x44]
test esi, esi
je 0x50e9af
cmp byte [esp + 0x4f], 0
jne 0x50eb56
mov edx, dword [esp + 0x18]
xor esi, esi
xor ecx, ecx
not edx
add edx, dword [esp + 0xa4]
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 0x50e9c0
test esi, esi
jne 0x50e621
mov eax, dword [esp + 0xd4]
mov ebp, dword [esp + 0x28]
mov edx, dword [esp + 0x50]
and eax, 1
jne 0x50eb25
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x3c]
mov edx, 1
cmp edx, edi
sbb eax, ebp
jb 0x50ea14
cmp dword [esp + 0x58], 0
je 0x50e588
mov ecx, dword [esp + 0x18]
test ecx, ecx
jns 0x50e59c
mov dword [esp + 0x60], 1
call dbg.std::unexpected()
lea esi, [esi]
movzx eax, byte [esp + 0x4e]
cmp al, 0xff
je 0x50ebd4
and eax, 7
cmp al, 2
je 0x50ebb0
jbe 0x50ebbe
cmp al, 3
je 0x50ebc2
cmp al, 4
jne 0x50ebff
mov eax, dword [esp + 0x18]
lea ecx, [eax*8]
neg ecx
lea eax, [esp + 0x94]
mov edx, dword [esp + 0x40]
add ecx, dword [esp + 0xa4]
mov dword [esp + 0x60], 0xffffffff
mov dword [esp], eax
mov eax, dword [esp + 0x54]
call dbg.read_encoded_value_with_base
mov eax, dword [esp + 0x94]
mov dword [esp + 0x48], eax
test eax, eax
je 0x50e9de
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x50e621
mov eax, dword [esp + 0x50]
mov dword [esp + 0x94], eax
mov eax, dword [ecx]
call dword [eax + 8]
test al, al
je 0x50ead4
mov eax, dword [esp + 0x94]
mov eax, dword [eax]
mov dword [esp + 0x94], eax
mov ecx, dword [esp + 0x48]
lea edi, [esp + 0x94]
mov eax, dword [ecx]
mov dword [esp + 4], edi
mov edi, dword [esp + 0x44]
mov dword [esp + 8], 1
mov dword [esp], edi
mov eax, dword [eax + 0x10]
mov dword [esp + 0x60], 0xffffffff
call eax
sub esp, 0xc
test al, al
je 0x50e621
mov ebp, dword [esp + 0x28]
mov edx, dword [esp + 0x94]
test byte [esp + 0xd4], 1
je 0x50e8c5
mov esi, dword [esp + 0x34]
jmp 0x50e6c7
cmp al, 0x40
jne 0x50ebf7
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x60], 0xffffffff
mov dword [esp], eax
call sym.__Unwind_GetRegionStart
mov dword [esp + 0x40], eax
jmp 0x50e66b
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x60], 0xffffffff
mov edx, dword [esp + 0x44]
mov dword [esp], eax
lea eax, [esp + 0x98]
call dbg.check_exception_spec
test al, al
jne 0x50e621
jmp 0x50e9de
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x60], 0xffffffff
mov dword [esp], eax
call sym.__Unwind_GetDataRelBase
mov dword [esp + 0x40], eax
jmp 0x50e66b
mov eax, dword [esp + 0x18]
lea ecx, [eax + eax]
neg ecx
jmp 0x50ea6b
test al, al
jne 0x50ebff
mov eax, dword [esp + 0x18]
lea ecx, [eax*4]
neg ecx
jmp 0x50ea6b
xor ecx, ecx
jmp 0x50ea6b
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x3c]
mov edx, 1
cmp edx, edi
sbb eax, ebp
jb 0x50e906
jmp 0x50e4b4
cmp al, 0x50
je 0x50e663
mov dword [esp + 0x60], 0xffffffff
call sym._abort
lea esi, [esi]
ja 0x50ebff
xor eax, eax
jmp 0x50e97e
cmp al, 0x40
jne 0x50ec73
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x60], 0xffffffff
mov dword [esp], eax
call sym.__Unwind_GetRegionStart
mov eax, dword [esp + 0xe4]
mov dword [esp], eax
call sym.__Unwind_GetRegionStart
jmp 0x50e97e
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x60], 0xffffffff
mov dword [esp], eax
call sym.__Unwind_GetDataRelBase
mov eax, dword [esp + 0xe4]
mov dword [esp], eax
call sym.__Unwind_GetDataRelBase
jmp 0x50e97e
cmp al, 0x50
jne 0x50ebff
xor eax, eax
jmp 0x50e97e