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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x84
mov eax, dword [0x69b710]
mov ebx, dword [esp + 0x9c]
mov eax, dword [eax]
test eax, eax
je 0x50eac8
mov edi, dword [ebx + 4]
mov ebp, dword [ebx + 8]
mov esi, dword [ebx]
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], ebp
mov ecx, dword [esi + 0x38]
cmp ecx, edi
jbe 0x50ef3a
mov eax, dword [esi + 0x30]
test eax, eax
je 0x50ef3a
imul ebx, edi, 0xf0
mov edx, dword [eax + ebx]
xor edx, 3
or edx, dword [eax + ebx + 4]
je 0x50ef3a
lea edx, [eax + ebx]
cmp dword [edx + 0xcc], ebp
jne 0x50ef3a
cmp byte [edx + 0x20], 6
jae 0x50ed64
cmp dword [edx + 0x64], 0
jne 0x50ed64
cmp dword [edx + 0xd8], 0
jne 0x50ed64
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], ebp
mov eax, dword [edx]
xor eax, 3
or eax, dword [edx + 4]
je 0x50ef3a
cmp dword [edx + 0xcc], ebp
jne 0x50ef3a
cmp dword [edx + 0x18], 0x3b9aca00
jne 0x50e9ca
mov dword [esp], ebp
movzx eax, byte [esp + 0xa0]
cmp dword [esi + 0x1c], 0
je 0x50e9b0
mov ecx, dword [esi]
mov edx, dword [esi + 4]
lea eax, [esi + 0x10]
mov dword [esp + 0x74], eax
push ebp
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.00523dd0
add esp, 0xc
mov ecx, esp
lea edx, [esp + 0x28]
push ecx
push eax
push dword [esp + 0x7c]
push edx
call fcn.005305d0
movzx eax, byte [esp + 0xb0]
add esp, 0x10
test al, al
je 0x50e9ca
mov ecx, dword [esp + 0x98]
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x50f045
dec eax
mov dword [ecx + 0x14], eax
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], ebp
mov ecx, dword [esi + 0x38]
cmp ecx, edi
jbe 0x50ef3a
mov eax, dword [esi + 0x30]
test eax, eax
je 0x50ef3a
mov edx, dword [eax + ebx]
xor edx, 3
or edx, dword [eax + ebx + 4]
je 0x50ef3a
lea edx, [eax + ebx]
cmp dword [edx + 0xcc], ebp
jne 0x50ef3a
cmp byte [edx + 0xe0], 0
je 0x50ed64
mov eax, dword [0x69b710]
mov eax, dword [eax]
test eax, eax
je 0x50ee08
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], ebp
cmp dword [esi + 0x38], edi
jbe 0x50ef3a
mov eax, dword [esi + 0x30]
test eax, eax
je 0x50ef3a
mov ecx, dword [eax + ebx]
xor ecx, 3
or ecx, dword [eax + ebx + 4]
je 0x50ef3a
add eax, ebx
cmp dword [eax + 0xcc], ebp
jne 0x50ef3a
cmp byte [eax + 0xe0], 0
mov edx, dword [esp + 0x98]
je 0x50efed
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], ebp
mov ecx, dword [eax]
xor ecx, 3
or ecx, dword [eax + 4]
je 0x50ef3a
cmp dword [eax + 0xcc], ebp
jne 0x50ef3a
mov eax, dword [eax + 0xcc]
test eax, eax
je 0x50f003
test al, 1
sete al
cmp byte [edx + 0x20], 0
sete cl
xor cl, al
je 0x50ed0c
mov eax, dword [edx + 4]
test eax, eax
je 0x50f019
add edx, 4
jmp 0x50ed1a
movzx eax, byte [0x69aefc]
test al, al
je 0x50e8d0
movzx ecx, al
cmp ecx, 1
je 0x50eaea
cmp ecx, 2
jne 0x50ef06
mov al, 2
movzx eax, al
push eax
push dword [0x69aef4]
call fcn.005313d0
add esp, 8
test al, al
je 0x50e8d0
mov eax, dword [0x69aef4]
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x50efd7
mov edx, dword [eax + 0x1c]
movsd xmm0, qword [eax + 0x24]
mov edi, dword [ebx + 4]
mov esi, dword [ebx + 8]
lea ebp, [esp + 0x20]
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], ecx
mov ecx, dword [ebx]
movlps qword [esp + 0x68], xmm0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x70], 0
mov dword [esp + 0x20], esi
cmp dword [ecx + 0x38], edi
jbe 0x50ef89
mov ecx, dword [ecx + 0x30]
test ecx, ecx
je 0x50ef89
imul edx, edi, 0xf0
mov ebx, dword [ecx + edx]
xor ebx, 3
or ebx, dword [ecx + edx + 4]
je 0x50ef89
add ecx, edx
cmp dword [ecx + 0xcc], esi
jne 0x50ef89
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], esi
mov edx, dword [ecx]
xor edx, 3
or edx, dword [ecx + 4]
je 0x50ef89
lea ebx, [ecx + 0xcc]
cmp dword [ebx], esi
jne 0x50ef89
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], esi
mov edx, dword [ecx]
xor edx, 3
or edx, dword [ecx + 4]
je 0x50ef83
cmp dword [ebx], esi
jne 0x50ef83
lea ebp, [ecx + 0x20]
cmp byte [ebp], 5
ja 0x50ebd2
cmp dword [ecx + 0x64], 0
je 0x50ecfd
xor edx, edx
mov dword [esp + 0x1c], edi
mov byte [esp + 0x1a], dl
mov dword [esp + 0x20], esi
mov edx, dword [ecx]
xor edx, 3
or edx, dword [ecx + 4]
je 0x50ef83
cmp dword [ebx], esi
jne 0x50ef83
cmp dword [ecx + 0x64], 0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], esi
sete byte [esp + 0x1b]
mov edx, dword [ecx]
xor edx, 3
or edx, dword [ecx + 4]
je 0x50ef83
cmp dword [ebx], esi
jne 0x50ef83
mov esi, dword [esp + 0x98]
lea edx, [esp + 0x1a]
lea edi, [esp + 0x1b]
add ecx, 0xd8
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 0x510830
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], 0x510710
mov dword [esp], 0x6222a0
mov dword [esp + 4], 7
mov dword [esp + 0x10], 0
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], 0x409040
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], 0x409040
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], fcn.00598a80
lea ecx, [esi + 0xc]
mov dword [esp + 0x50], ecx
lea ecx, [esi + 4]
mov dword [esp + 0x54], fcn.00598a80
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x5c], fcn.00598a80
mov dword [esp + 8], ecx
lea ecx, [esp + 0x60]
mov dword [esp + 0xc], 7
mov dword [esp + 0x78], ecx
mov ecx, esp
mov dword [esp + 0x7c], ecx
lea ecx, [esp + 0x78]
mov dword [esp + 0x80], 0x6222d8
mov dword [esp + 0x1c], ecx
lea ecx, [eax + 0x1c]
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x1c]
push ecx
push eax
call fcn.00531b00
add esp, 8
mov ebx, dword [esp + 0x9c]
jmp 0x50e8d0
cmp dword [ecx + 0xd8], 0
sete dl
jmp 0x50ebd4
mov eax, dword [edx + 0xc]
test eax, eax
je 0x50f02f
add edx, 0xc
dec eax
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], ebp
mov dword [edx], eax
cmp dword [esi + 0x38], edi
jbe 0x50ef8e
mov eax, dword [esi + 0x30]
test eax, eax
je 0x50ef8e
mov ecx, dword [eax + ebx]
xor ecx, 3
or ecx, dword [eax + ebx + 4]
je 0x50ef8e
add eax, ebx
cmp dword [eax + 0xcc], ebp
jne 0x50ef8e
mov byte [eax + 0xe0], 0
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x38]
cmp ecx, edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], ebp
jbe 0x50ef3a
test eax, eax
je 0x50ef3a
mov ecx, dword [eax + ebx]
xor ecx, 3
or ecx, dword [eax + ebx + 4]
je 0x50ef3a
add eax, ebx
cmp dword [eax + 0xcc], ebp
jne 0x50ef3a
cmp byte [eax + 0x20], 5
ja 0x50edfd
cmp dword [eax + 0x64], 0
jne 0x50edfd
cmp dword [eax + 0xd8], 0
jne 0x50edfd
cmp dword [eax + 0xd0], 0
jne 0x50edfd
cmp byte [eax + 0xe1], 0
jne 0x50edfd
cmp byte [eax + 0xe2], 0
jne 0x50edfd
cmp byte [eax + 0xe6], 0
jne 0x50edfd
cmp byte [eax + 0xe7], 0
jne 0x50edfd
cmp byte [eax + 0xe4], 0
jne 0x50edfd
cmp dword [eax + 0x18], 0x3b9aca00
jne 0x50edfd
push dword [esp + 0x9c]
call fcn.0051b450
add esp, 4
add esp, 0x84
pop esi
pop edi
pop ebx
pop ebp
ret
movzx eax, byte [0x69af08]
test al, al
je 0x50ea23
movzx ecx, al
cmp ecx, 1
je 0x50ee2a
cmp ecx, 2
jne 0x50ef20
mov al, 2
movzx eax, al
push eax
push dword [0x69af00]
call fcn.005313d0
add esp, 8
test al, al
je 0x50ea23
mov ecx, dword [0x69af00]
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x50f05b
lea edx, [ecx + 0x1c]
movsd xmm0, qword [ecx + 0x24]
mov dword [esp + 0x74], edx
mov edx, dword [ecx + 0x1c]
mov dword [esp], edx
mov dword [esp + 4], eax
movlps qword [esp + 8], xmm0
mov dword [esp + 0x10], 0
push dword [esp + 0x9c]
call fcn.0051b630
add esp, 4
add eax, 0xcc
mov dword [esp + 0x28], 0x622310
mov dword [esp + 0x2c], 1
mov dword [esp + 0x38], 0
mov dword [esp + 0x78], eax
lea eax, [esp + 0x78]
mov dword [esp + 0x7c], 0x510830
mov dword [esp + 0x30], eax
mov eax, esp
mov dword [esp + 0x34], 1
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x24], 0x6222d8
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x64], 1
mov dword [esp + 0x68], eax
lea eax, [esp + 0x60]
push eax
push dword [0x69af00]
call fcn.00531b00
add esp, 8
jmp 0x50ea23
push 0x69aef4
call fcn.0059e2f0
add esp, 4
test al, al
jne 0x50eaea
jmp 0x50e8d0
push 0x69af00
call fcn.0059e2f0
add esp, 4
test al, al
jne 0x50ee2a
jmp 0x50ea23
lea eax, [esp + 0x64]
mov dword [esp], eax
mov eax, esp
mov dword [esp + 0x28], 0x627788
mov dword [esp + 0x2c], 1
mov dword [esp + 0x38], 0
mov dword [esp + 4], 0x51bc80
mov dword [esp + 0x30], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x34], 1
push 0x627790
push eax
call fcn.005a0aa0
add esp, 8
ud2
lea eax, [esp + 0x20]
jmp 0x50ef3e
mov dword [esp], ebp
jmp 0x50ef41
lea eax, [esp + 0x64]
mov dword [esp + 0x28], 0x627788
mov dword [esp + 0x2c], 1
mov dword [esp + 0x38], 0
mov dword [esp], eax
mov eax, esp
mov dword [esp + 4], 0x51bc80
mov dword [esp + 0x30], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x34], 1
push 0x6277a0
push eax
call fcn.005a0aa0
add esp, 8
ud2
push 0x622220
push 0x22
push 0x6221fc
call fcn.005a0a40
add esp, 0xc
ud2
push 0x62233c
push 0x23
push str.assertion_failed:_stream.is_counted
call fcn.005a0b60
add esp, 0xc
ud2
push 0x625f60
push 0x1f
push 0x625edc
call fcn.005a0b60
add esp, 0xc
ud2
push 0x6223b4
push 0x2b
push 0x622388
call fcn.005a0b60
add esp, 0xc
ud2
push 0x622378
push 0x2b
push 0x62234c
call fcn.005a0b60
add esp, 0xc
ud2
push 0x6223f8
push 0x32
push 0x6223c4
call fcn.005a0b60
add esp, 0xc
ud2
push 0x6222e8
jmp 0x50efdc