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

Disassembly:
sub esp, 0x90
push ebx
mov ebx, dword [esp + 0xa4]
cmp ebx, 0xa
jae 0x509f2c
push 0xffffffffffffffec
pop eax
jmp 0x50b23e
mov eax, dword [esp + 0x9c]
push ebp
push esi
mov esi, dword [esp + 0xa8]
push edi
mov edi, dword [esp + 0xa4]
add eax, edi
mov dword [esp + 0x84], eax
add eax, 0xfffffffd
push esi
mov dword [esp + 0x98], eax
call fcn.0050bfdb
movzx ebp, ax
lea eax, [esi + 2]
push eax
mov dword [esp + 0xa4], ebp
call fcn.0050bfdb
movzx eax, ax
mov dword [esp + 0x18], eax
lea eax, [esi + 4]
push eax
call fcn.0050bfdb
movzx ecx, ax
lea eax, [esi + 6]
push dword [esp + 0xc0]
mov dword [esp + 0x90], eax
sub ebx, ecx
sub ebx, dword [esp + 0x20]
add eax, ebp
mov dword [esp + 0x24], eax
sub ebx, ebp
add eax, dword [esp + 0x20]
sub ebx, 6
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0xb8]
add eax, 3
mov dword [esp + 0xa8], ecx
shr eax, 2
mov dword [esp + 0x28], ebx
lea ecx, [eax + edi]
lea edx, [ecx + eax]
mov dword [esp + 0x9c], ecx
add eax, edx
mov dword [esp + 0xa0], edx
mov ebp, ecx
mov dword [esp + 0x38], eax
mov esi, edx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], eax
call fcn.00504f4e
shr eax, 0x10
add esp, 0x10
movzx ebx, al
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x88], ebx
cmp dword [esp + 0x18], eax
ja 0x50a35b
mov ecx, dword [esp + 0x28]
cmp ecx, dword [esp + 0x84]
ja 0x50a35b
cmp dword [esp + 0xa8], 6
jb 0x50a35b
push dword [esp + 0x9c]
lea eax, [esp + 0x6c]
push dword [esp + 0x84]
push eax
call fcn.005085d9
add esp, 0xc
cmp eax, 0xffffff88
ja 0x50b23b
push dword [esp + 0x10]
lea eax, [esp + 0x58]
push dword [esp + 0x18]
push eax
call fcn.005085d9
add esp, 0xc
cmp eax, 0xffffff88
ja 0x50b23b
push dword [esp + 0x98]
lea eax, [esp + 0x44]
push dword [esp + 0x80]
push eax
call fcn.005085d9
add esp, 0xc
cmp eax, 0xffffff88
ja 0x50b23b
push dword [esp + 0x18]
mov eax, dword [esp + 0x9c]
add eax, dword [esp + 0x80]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.005085d9
add esp, 0xc
cmp eax, 0xffffff88
ja 0x50b23b
mov eax, dword [esp + 0x84]
mov edx, dword [esp + 0x28]
sub eax, edx
cmp eax, 4
jb 0x50a343
cmp edx, dword [esp + 0x94]
jae 0x50a343
mov edx, ebx
mov ebx, edi
neg edx
and edx, 0x1f
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
and ecx, 0x1f
mov edi, dword [esp + 0xb4]
shl eax, cl
mov ecx, edx
shr eax, cl
inc eax
push 2
lea esi, [edi + eax*4]
push esi
push ebx
call sub.VCRUNTIME140.dll_memcpy
movzx eax, byte [esi + 2]
add dword [esp + 0x78], eax
movzx eax, byte [esi + 3]
mov ecx, dword [esp + 0x64]
add ebx, eax
mov eax, dword [esp + 0x60]
and ecx, 0x1f
shl eax, cl
mov ecx, dword [esp + 0x28]
shr eax, cl
inc eax
push 2
lea esi, [edi + eax*4]
push esi
push ebp
call sub.VCRUNTIME140.dll_memcpy
movzx eax, byte [esi + 2]
add edi, 4
add dword [esp + 0x70], eax
movzx eax, byte [esi + 3]
mov ecx, dword [esp + 0x5c]
add ebp, eax
mov eax, dword [esp + 0x58]
and ecx, 0x1f
shl eax, cl
mov ecx, dword [esp + 0x34]
shr eax, cl
push 2
lea esi, [edi + eax*4]
mov edi, dword [esp + 0x40]
push esi
push edi
call sub.VCRUNTIME140.dll_memcpy
movzx eax, byte [esi + 2]
add dword [esp + 0x68], eax
movzx eax, byte [esi + 3]
mov ecx, dword [esp + 0x54]
add edi, eax
mov eax, dword [esp + 0x50]
and ecx, 0x1f
shl eax, cl
mov ecx, dword [esp + 0x40]
shr eax, cl
mov ecx, dword [esp + 0xd8]
add ecx, 4
push 2
lea esi, [ecx + eax*4]
push esi
push dword [esp + 0x4c]
call sub.VCRUNTIME140.dll_memcpy
movzx eax, byte [esi + 2]
add dword [esp + 0x60], eax
movzx eax, byte [esi + 3]
add dword [esp + 0x50], eax
mov ecx, dword [esp + 0x9c]
mov eax, dword [esp + 0x98]
and ecx, 0x1f
shl eax, cl
mov ecx, dword [esp + 0x4c]
shr eax, cl
mov ecx, dword [esp + 0xe4]
add ecx, 4
push 2
lea esi, [ecx + eax*4]
push esi
push ebx
call sub.VCRUNTIME140.dll_memcpy
movzx eax, byte [esi + 2]
add dword [esp + 0xa8], eax
movzx eax, byte [esi + 3]
mov ecx, dword [esp + 0x94]
add ebx, eax
mov eax, dword [esp + 0x90]
and ecx, 0x1f
shl eax, cl
mov ecx, dword [esp + 0x58]
shr eax, cl
mov ecx, dword [esp + 0xf0]
add ecx, 4
push 2
lea esi, [ecx + eax*4]
push esi
push ebp
call sub.VCRUNTIME140.dll_memcpy
movzx eax, byte [esi + 2]
add esp, 0x48
add dword [esp + 0x58], eax
movzx eax, byte [esi + 3]
mov ecx, dword [esp + 0x44]
add ebp, eax
mov eax, dword [esp + 0x40]
and ecx, 0x1f
shl eax, cl
mov ecx, dword [esp + 0x1c]
shr eax, cl
mov ecx, dword [esp + 0xb4]
add ecx, 4
push 2
lea esi, [ecx + eax*4]
push esi
push edi
call sub.VCRUNTIME140.dll_memcpy
movzx eax, byte [esi + 2]
add dword [esp + 0x50], eax
movzx eax, byte [esi + 3]
mov ecx, dword [esp + 0x3c]
add edi, eax
mov eax, dword [esp + 0x38]
and ecx, 0x1f
shl eax, cl
mov ecx, dword [esp + 0x28]
shr eax, cl
mov ecx, dword [esp + 0xc0]
add ecx, 4
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x2c]
push 2
lea esi, [ecx + eax*4]
push esi
push edi
call sub.VCRUNTIME140.dll_memcpy
movzx eax, byte [esi + 2]
add dword [esp + 0x48], eax
movzx eax, byte [esi + 3]
add edi, eax
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x3c], edi
call fcn.005086fc
neg eax
sbb edi, edi
lea eax, [esp + 0x5c]
push eax
inc edi
call fcn.005086fc
neg eax
sbb esi, esi
lea eax, [esp + 0x74]
inc esi
push eax
and esi, edi
call fcn.005086fc
xor edi, edi
test eax, eax
lea eax, [esp + 0x8c]
push eax
cmove edi, esi
call fcn.005086fc
add esp, 0x28
mov edx, dword [esp + 0x1c]
neg eax
sbb ecx, ecx
mov eax, dword [esp + 0x94]
inc ecx
and ecx, edi
cmp dword [esp + 0x20], eax
sbb eax, eax
test ecx, eax
jne 0x50a0f6
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esp + 0xa4], ebx
mov ebx, dword [esp + 0x88]
mov edi, dword [esp + 0xa4]
mov dword [esp + 0x1c], ebp
mov ecx, dword [esp + 0x8c]
cmp edi, ecx
ja 0x50a35b
cmp ebp, dword [esp + 0x90]
ja 0x50a35b
cmp esi, edx
jbe 0x50a363
push 0xffffffffffffffec
pop eax
jmp 0x50b23b
mov eax, ecx
sub eax, edi
push 0x20
pop ebp
cmp eax, 4
jb 0x50a4cd
lea edx, [ecx - 3]
mov dword [esp + 0x80], edx
mov edx, dword [esp + 0x6c]
mov esi, dword [esp + 0x70]
cmp edx, ebp
jbe 0x50a396
mov dword [esp + 0x18], 3
jmp 0x50a41b
cmp esi, dword [esp + 0x78]
jb 0x50a3ad
lea eax, [esp + 0x68]
push eax
call fcn.005086fc
pop ecx
mov dword [esp + 0x18], eax
jmp 0x50a413
mov ecx, dword [esp + 0x74]
cmp esi, ecx
jne 0x50a3c2
cmp edx, ebp
sbb eax, eax
add eax, 2
mov dword [esp + 0x18], eax
jmp 0x50a41b
and dword [esp + 0x18], 0
mov eax, edx
shr eax, 3
mov dword [esp + 0x7c], eax
mov eax, esi
sub eax, dword [esp + 0x7c]
cmp eax, ecx
jae 0x50a3e8
mov eax, esi
mov dword [esp + 0x18], 1
sub eax, ecx
jmp 0x50a3ec
mov eax, dword [esp + 0x7c]
sub esi, eax
imul eax, eax, 0xfffffff8
push 4
push esi
mov dword [esp + 0x78], esi
add edx, eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x78], edx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x68], eax
mov edx, dword [esp + 0x6c]
mov esi, dword [esp + 0x70]
cmp edi, dword [esp + 0x80]
sbb ecx, ecx
xor eax, eax
neg ecx
cmp dword [esp + 0x18], eax
sete al
test eax, ecx
je 0x50a540
mov eax, dword [esp + 0x68]
mov edi, ebx
and edx, 0x1f
neg edi
mov ecx, edx
and edi, 0x1f
shl eax, cl
mov ecx, edi
shr eax, cl
mov ecx, dword [esp + 0xb4]
add ecx, 4
push 2
lea esi, [ecx + eax*4]
push esi
push dword [esp + 0xac]
call sub.VCRUNTIME140.dll_memcpy
movzx ecx, byte [esi + 2]
add ecx, dword [esp + 0x78]
movzx eax, byte [esi + 3]
add dword [esp + 0xb0], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x78], ecx
and ecx, 0x1f
shl eax, cl
mov ecx, edi
mov edi, dword [esp + 0xb0]
shr eax, cl
mov ecx, dword [esp + 0xc0]
add ecx, 4
push 2
lea esi, [ecx + eax*4]
push esi
push edi
call sub.VCRUNTIME140.dll_memcpy
movzx eax, byte [esi + 2]
add esp, 0x18
mov edx, dword [esp + 0x6c]
add edx, eax
movzx eax, byte [esi + 3]
add edi, eax
mov dword [esp + 0x6c], edx
mov dword [esp + 0xa4], edi
jmp 0x50a381
mov edx, dword [esp + 0x6c]
mov esi, dword [esp + 0x70]
cmp edx, ebp
ja 0x50a540
cmp esi, dword [esp + 0x78]
jb 0x50a4ec
lea eax, [esp + 0x68]
push eax
call fcn.005086fc
pop ecx
jmp 0x50a538
mov ecx, dword [esp + 0x74]
cmp esi, ecx
je 0x50a544
mov eax, edx
shr eax, 3
mov dword [esp + 0x7c], eax
mov eax, esi
sub eax, dword [esp + 0x7c]
cmp eax, ecx
jae 0x50a50d
mov eax, esi
sub eax, ecx
jmp 0x50a511
mov eax, dword [esp + 0x7c]
sub esi, eax
imul eax, eax, 0xfffffff8
push 4
push esi
mov dword [esp + 0x78], esi
add edx, eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x78], edx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x68], eax
mov edx, dword [esp + 0x6c]
mov esi, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x8c]
sub eax, edi
cmp eax, 2
jb 0x50a6c8
mov eax, dword [esp + 0x8c]
add eax, 0xfffffffe
mov dword [esp + 0x10], eax
cmp edx, ebp
jbe 0x50a575
mov dword [esp + 0x18], 3
jmp 0x50a603
cmp esi, dword [esp + 0x78]
jb 0x50a58c
lea eax, [esp + 0x68]
push eax
call fcn.005086fc
pop ecx
mov dword [esp + 0x18], eax
jmp 0x50a5fb
cmp esi, ecx
jne 0x50a5aa
mov esi, ebx
cmp edx, ebp
jae 0x50a5a0
mov dword [esp + 0x18], 1
jmp 0x50a605
mov dword [esp + 0x18], 2
jmp 0x50a605
and dword [esp + 0x18], 0
mov eax, edx
shr eax, 3
mov dword [esp + 0x7c], eax
mov eax, esi
sub eax, dword [esp + 0x7c]
cmp eax, ecx
jae 0x50a5d0
mov eax, esi
mov dword [esp + 0x18], 1
sub eax, ecx
jmp 0x50a5d4
mov eax, dword [esp + 0x7c]
sub esi, eax
imul eax, eax, 0xfffffff8
push 4
push esi
mov dword [esp + 0x78], esi
add edx, eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x78], edx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x6c]
mov esi, ebx
neg esi
cmp eax, edi
sbb ecx, ecx
xor eax, eax
inc ecx
cmp dword [esp + 0x18], eax
sete al
test eax, ecx
je 0x50a66b
mov eax, dword [esp + 0x68]
and edx, 0x1f
mov ecx, edx
shl eax, cl
mov ecx, ebx
neg ecx
and ecx, 0x1f
shr eax, cl
mov ecx, dword [esp + 0xb4]
add ecx, 4
push 2
lea esi, [ecx + eax*4]
push esi
push edi
call sub.VCRUNTIME140.dll_memcpy
movzx eax, byte [esi + 2]
add esp, 0xc
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x74]
add edx, eax
movzx eax, byte [esi + 3]
mov esi, dword [esp + 0x70]
add edi, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x6c], edx
jmp 0x50a564
cmp edi, dword [esp + 0x10]
ja 0x50a6c8
mov ebx, dword [esp + 0xb4]
and esi, 0x1f
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x68]
and edx, 0x1f
mov ecx, edx
shl eax, cl
mov ecx, esi
shr eax, cl
inc eax
push 2
lea esi, [ebx + eax*4]
push esi
push edi
call sub.VCRUNTIME140.dll_memcpy
movzx eax, byte [esi + 2]
add esp, 0xc
mov edx, dword [esp + 0x6c]
add edx, eax
movzx eax, byte [esi + 3]
mov esi, dword [esp + 0x14]
add edi, eax
mov dword [esp + 0x6c], edx
cmp edi, ebp
jbe 0x50a683
mov ebx, dword [esp + 0x88]
push 0x20
pop ebp
cmp edi, dword [esp + 0x8c]
jae 0x50a725
mov eax, dword [esp + 0x68]
and edx, 0x1f
mov ecx, edx
shl eax, cl
mov ecx, ebx
neg ecx
and ecx, 0x1f
shr eax, cl
mov ecx, dword [esp + 0xb4]
add ecx, 4
push 1
lea esi, [ecx + eax*4]
push esi
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp byte [esi + 3], 1
jne 0x50a70e
movzx eax, byte [esi + 2]
add dword [esp + 0x6c], eax
jmp 0x50a725
mov ecx, dword [esp + 0x6c]
cmp ecx, ebp
jae 0x50a725
movzx eax, byte [esi + 2]
add ecx, eax
cmp ecx, ebp
cmova ecx, ebp
mov dword [esp + 0x6c], ecx
mov edx, dword [esp + 0x90]
mov eax, edx
sub eax, dword [esp + 0x1c]
cmp eax, 4
jb 0x50a882
add edx, 0xfffffffd
mov dword [esp + 0x80], edx
mov edx, dword [esp + 0x58]
mov esi, dword [esp + 0x5c]
cmp edx, ebp
jbe 0x50a75b
mov dword [esp + 0x10], 3
jmp 0x50a7d4
cmp esi, dword [esp + 0x64]
jb 0x50a772
lea eax, [esp + 0x54]
push eax
call fcn.005086fc
pop ecx
mov dword [esp + 0x10], eax
jmp 0x50a7cc
mov edi, dword [esp + 0x60]
cmp esi, edi
jne 0x50a787
cmp edx, ebp
sbb eax, eax
add eax, 2
mov dword [esp + 0x10], eax
jmp 0x50a7d8
and dword [esp + 0x10], 0
mov ecx, edx
shr ecx, 3
mov eax, esi
sub eax, ecx
cmp eax, edi
jae 0x50a7a5
mov ecx, esi
mov dword [esp + 0x10], 1
sub ecx, edi
imul eax, ecx, 0xfffffff8
sub esi, ecx
push 4
push esi
mov dword [esp + 0x64], esi
add edx, eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x64], edx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x54], eax
mov edx, dword [esp + 0x58]
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x60]
mov eax, dword [esp + 0x80]
cmp dword [esp + 0x1c], eax
sbb ecx, ecx
xor eax, eax
neg ecx
cmp dword [esp + 0x10], eax
sete al
test eax, ecx
je 0x50a8ed
mov eax, dword [esp + 0x54]
mov edi, ebx
and edx, 0x1f
neg edi
mov ecx, edx
and edi, 0x1f
shl eax, cl
mov ecx, edi
shr eax, cl
mov ecx, dword [esp + 0xb4]
add ecx, 4
push 2
lea esi, [ecx + eax*4]
push esi
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
movzx ecx, byte [esi + 2]
add ecx, dword [esp + 0x64]
movzx eax, byte [esi + 3]
mov edx, dword [esp + 0x28]
add edx, eax
mov dword [esp + 0x64], ecx
mov eax, dword [esp + 0x60]
and ecx, 0x1f
shl eax, cl
mov ecx, edi
shr eax, cl
mov ecx, dword [esp + 0xc0]
add ecx, 4
mov dword [esp + 0x28], edx
push 2
lea esi, [ecx + eax*4]
push esi
push edx
call sub.VCRUNTIME140.dll_memcpy
movzx eax, byte [esi + 2]
add esp, 0x18
mov edx, dword [esp + 0x58]
add edx, eax
movzx eax, byte [esi + 3]
add dword [esp + 0x1c], eax
mov dword [esp + 0x58], edx
jmp 0x50a749
mov edx, dword [esp + 0x58]
mov esi, dword [esp + 0x5c]
cmp edx, ebp
ja 0x50a8e9
cmp esi, dword [esp + 0x64]
jb 0x50a8a1
lea eax, [esp + 0x54]
push eax
call fcn.005086fc
pop ecx
jmp 0x50a8e1
mov edi, dword [esp + 0x60]
cmp esi, edi
je 0x50a8ed
mov ecx, edx
mov eax, esi
shr ecx, 3
sub eax, ecx
cmp eax, edi
jae 0x50a8ba
mov ecx, esi
sub ecx, edi
imul eax, ecx, 0xfffffff8
sub esi, ecx
push 4
push esi
mov dword [esp + 0x64], esi
add edx, eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x64], edx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x54], eax
mov edx, dword [esp + 0x58]
mov esi, dword [esp + 0x5c]
mov edi, dword [esp + 0x60]
mov ecx, dword [esp + 0x90]
mov eax, ecx
sub eax, dword [esp + 0x1c]
cmp eax, 2
jb 0x50aa6c
lea eax, [ecx - 2]
mov dword [esp + 0x10], eax
cmp edx, ebp
jbe 0x50a91b
mov dword [esp + 0x18], 3
jmp 0x50a99d
cmp esi, dword [esp + 0x64]
jb 0x50a932
lea eax, [esp + 0x54]
push eax
call fcn.005086fc
pop ecx
mov dword [esp + 0x18], eax
jmp 0x50a995
cmp esi, edi
jne 0x50a950
mov esi, ebx
cmp edx, ebp
jae 0x50a946
mov dword [esp + 0x18], 1
jmp 0x50a99f
mov dword [esp + 0x18], 2
jmp 0x50a99f
and dword [esp + 0x18], 0
mov ecx, edx
shr ecx, 3
mov eax, esi
sub eax, ecx
cmp eax, edi
jae 0x50a96e
mov ecx, esi
mov dword [esp + 0x18], 1
sub ecx, edi
imul eax, ecx, 0xfffffff8
sub esi, ecx
push 4
push esi
mov dword [esp + 0x64], esi
add edx, eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x64], edx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x58]
mov esi, ebx
mov edi, dword [esp + 0x1c]
neg esi
cmp eax, edi
sbb ecx, ecx
xor eax, eax
inc ecx
cmp dword [esp + 0x18], eax
sete al
test eax, ecx
je 0x50aa0d
mov eax, dword [esp + 0x54]
and edx, 0x1f
mov ecx, edx
shl eax, cl
mov ecx, ebx
neg ecx
and ecx, 0x1f
shr eax, cl
mov ecx, dword [esp + 0xb4]
add ecx, 4
push 2
lea esi, [ecx + eax*4]
push esi
push edi
call sub.VCRUNTIME140.dll_memcpy
movzx eax, byte [esi + 2]
add esp, 0xc
mov edx, dword [esp + 0x58]
add edx, eax
movzx eax, byte [esi + 3]
mov esi, dword [esp + 0x5c]
add edi, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x60]
mov dword [esp + 0x58], edx
jmp 0x50a90a
cmp edi, dword [esp + 0x10]
ja 0x50aa70
mov ebx, dword [esp + 0xb4]
and esi, 0x1f
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x54]
and edx, 0x1f
mov ecx, edx
shl eax, cl
mov ecx, esi
shr eax, cl
inc eax
push 2
lea esi, [ebx + eax*4]
push esi
push edi
call sub.VCRUNTIME140.dll_memcpy
movzx eax, byte [esi + 2]
add esp, 0xc
mov edx, dword [esp + 0x58]
add edx, eax
movzx eax, byte [esi + 3]
mov esi, dword [esp + 0x14]
add edi, eax
mov dword [esp + 0x58], edx
cmp edi, ebp
jbe 0x50aa25
mov ebx, dword [esp + 0x88]
push 0x20
pop ebp
jmp 0x50aa70
mov edi, dword [esp + 0x1c]
cmp edi, dword [esp + 0x90]
jae 0x50aacd
mov eax, dword [esp + 0x54]
and edx, 0x1f
mov ecx, edx
shl eax, cl
mov ecx, ebx
neg ecx
and ecx, 0x1f
shr eax, cl
mov ecx, dword [esp + 0xb4]
add ecx, 4
push 1
lea esi, [ecx + eax*4]
push esi
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp byte [esi + 3], 1
jne 0x50aab6
movzx eax, byte [esi + 2]
add dword [esp + 0x58], eax
jmp 0x50aacd
mov ecx, dword [esp + 0x58]
cmp ecx, ebp
jae 0x50aacd
movzx eax, byte [esi + 2]
add ecx, eax
cmp ecx, ebp
cmova ecx, ebp
mov dword [esp + 0x58], ecx
mov edx, dword [esp + 0x28]
mov eax, edx
sub eax, dword [esp + 0x24]
cmp eax, 4
jb 0x50ac27
add edx, 0xfffffffd
mov dword [esp + 0x80], edx
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x48]
cmp edx, ebp
jbe 0x50ab00
mov dword [esp + 0x10], 3
jmp 0x50ab79
cmp esi, dword [esp + 0x50]
jb 0x50ab17
lea eax, [esp + 0x40]
push eax
call fcn.005086fc
pop ecx
mov dword [esp + 0x10], eax
jmp 0x50ab71
mov edi, dword [esp + 0x4c]
cmp esi, edi
jne 0x50ab2c
cmp edx, ebp
sbb eax, eax
add eax, 2
mov dword [esp + 0x10], eax
jmp 0x50ab7d
and dword [esp + 0x10], 0
mov ecx, edx
shr ecx, 3
mov eax, esi
sub eax, ecx
cmp eax, edi
jae 0x50ab4a
mov ecx, esi
mov dword [esp + 0x10], 1
sub ecx, edi
imul eax, ecx, 0xfffffff8
sub esi, ecx
push 4
push esi
mov dword [esp + 0x50], esi
add edx, eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x50], edx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x4c]
mov eax, dword [esp + 0x80]
cmp dword [esp + 0x24], eax
sbb ecx, ecx
xor eax, eax
neg ecx
cmp dword [esp + 0x10], eax
sete al
test eax, ecx
je 0x50ac92
mov eax, dword [esp + 0x40]
mov edi, ebx
and edx, 0x1f
neg edi
mov ecx, edx
and edi, 0x1f
shl eax, cl
mov ecx, edi
shr eax, cl
mov ecx, dword [esp + 0xb4]
add ecx, 4
push 2
lea esi, [ecx + eax*4]
push esi
push dword [esp + 0x2c]
call sub.VCRUNTIME140.dll_memcpy
movzx ecx, byte [esi + 2]
add ecx, dword [esp + 0x50]
movzx eax, byte [esi + 3]
mov edx, dword [esp + 0x30]
add edx, eax
mov dword [esp + 0x50], ecx
mov eax, dword [esp + 0x4c]
and ecx, 0x1f
shl eax, cl
mov ecx, edi
shr eax, cl
mov ecx, dword [esp + 0xc0]
add ecx, 4
mov dword [esp + 0x30], edx
push 2
lea esi, [ecx + eax*4]
push esi
push edx
call sub.VCRUNTIME140.dll_memcpy
movzx eax, byte [esi + 2]
add esp, 0x18
mov edx, dword [esp + 0x44]
add edx, eax
movzx eax, byte [esi + 3]
add dword [esp + 0x24], eax
mov dword [esp + 0x44], edx
jmp 0x50aaee
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x48]
cmp edx, ebp
ja 0x50ac8e
cmp esi, dword [esp + 0x50]
jb 0x50ac46
lea eax, [esp + 0x40]
push eax
call fcn.005086fc
pop ecx
jmp 0x50ac86
mov edi, dword [esp + 0x4c]
cmp esi, edi
je 0x50ac92
mov ecx, edx
mov eax, esi
shr ecx, 3
sub eax, ecx
cmp eax, edi
jae 0x50ac5f
mov ecx, esi
sub ecx, edi
imul eax, ecx, 0xfffffff8
sub esi, ecx
push 4
push esi
mov dword [esp + 0x50], esi
add edx, eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x50], edx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x28]
mov eax, ecx
sub eax, dword [esp + 0x24]
cmp eax, 2
jb 0x50ae0e
lea eax, [ecx - 2]
mov dword [esp + 0x10], eax
cmp edx, ebp
jbe 0x50acbd
mov dword [esp + 0x18], 3
jmp 0x50ad3f
cmp esi, dword [esp + 0x50]
jb 0x50acd4
lea eax, [esp + 0x40]
push eax
call fcn.005086fc
pop ecx
mov dword [esp + 0x18], eax
jmp 0x50ad37
cmp esi, edi
jne 0x50acf2
mov esi, ebx
cmp edx, ebp
jae 0x50ace8
mov dword [esp + 0x18], 1
jmp 0x50ad41
mov dword [esp + 0x18], 2
jmp 0x50ad41
and dword [esp + 0x18], 0
mov ecx, edx
shr ecx, 3
mov eax, esi
sub eax, ecx
cmp eax, edi
jae 0x50ad10
mov ecx, esi
mov dword [esp + 0x18], 1
sub ecx, edi
imul eax, ecx, 0xfffffff8
sub esi, ecx
push 4
push esi
mov dword [esp + 0x50], esi
add edx, eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x50], edx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x44]
mov esi, ebx
mov edi, dword [esp + 0x24]
neg esi
cmp eax, edi
sbb ecx, ecx
xor eax, eax
inc ecx
cmp dword [esp + 0x18], eax
sete al
test eax, ecx
je 0x50adaf
mov eax, dword [esp + 0x40]
and edx, 0x1f
mov ecx, edx
shl eax, cl
mov ecx, ebx
neg ecx
and ecx, 0x1f
shr eax, cl
mov ecx, dword [esp + 0xb4]
add ecx, 4
push 2
lea esi, [ecx + eax*4]
push esi
push edi
call sub.VCRUNTIME140.dll_memcpy
movzx eax, byte [esi + 2]
add esp, 0xc
mov edx, dword [esp + 0x44]
add edx, eax
movzx eax, byte [esi + 3]
mov esi, dword [esp + 0x48]
add edi, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x44], edx
jmp 0x50acac
cmp edi, dword [esp + 0x10]
ja 0x50ae12
mov ebx, dword [esp + 0xb4]
and esi, 0x1f
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x40]
and edx, 0x1f
mov ecx, edx
shl eax, cl
mov ecx, esi
shr eax, cl
inc eax
push 2
lea esi, [ebx + eax*4]
push esi
push edi
call sub.VCRUNTIME140.dll_memcpy
movzx eax, byte [esi + 2]
add esp, 0xc
mov edx, dword [esp + 0x44]
add edx, eax
movzx eax, byte [esi + 3]
mov esi, dword [esp + 0x14]
add edi, eax
mov dword [esp + 0x44], edx
cmp edi, ebp
jbe 0x50adc7
mov ebx, dword [esp + 0x88]
push 0x20
pop ebp
jmp 0x50ae12
mov edi, dword [esp + 0x24]
cmp edi, dword [esp + 0x28]
jae 0x50ae6c
mov eax, dword [esp + 0x40]
and edx, 0x1f
mov ecx, edx
shl eax, cl
mov ecx, ebx
neg ecx
and ecx, 0x1f
shr eax, cl
mov ecx, dword [esp + 0xb4]
add ecx, 4
push 1
lea esi, [ecx + eax*4]
push esi
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp byte [esi + 3], 1
jne 0x50ae55
movzx eax, byte [esi + 2]
add dword [esp + 0x44], eax
jmp 0x50ae6c
mov ecx, dword [esp + 0x44]
cmp ecx, ebp
jae 0x50ae6c
movzx eax, byte [esi + 2]
add ecx, eax
cmp ecx, ebp
cmova ecx, ebp
mov dword [esp + 0x44], ecx
mov eax, dword [esp + 0x84]
sub eax, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
cmp eax, 4
jb 0x50afbd
mov esi, dword [esp + 0x34]
cmp edx, ebp
jbe 0x50ae96
mov dword [esp + 0x10], 3
jmp 0x50af0f
cmp esi, dword [esp + 0x3c]
jb 0x50aead
lea eax, [esp + 0x2c]
push eax
call fcn.005086fc
pop ecx
mov dword [esp + 0x10], eax
jmp 0x50af07
mov edi, dword [esp + 0x38]
cmp esi, edi
jne 0x50aec2
cmp edx, ebp
sbb eax, eax
add eax, 2
mov dword [esp + 0x10], eax
jmp 0x50af13
and dword [esp + 0x10], 0
mov ecx, edx
shr ecx, 3
mov eax, esi
sub eax, ecx
cmp eax, edi
jae 0x50aee0
mov ecx, esi
mov dword [esp + 0x10], 1
sub ecx, edi
imul eax, ecx, 0xfffffff8
sub esi, ecx
push 4
push esi
mov dword [esp + 0x3c], esi
add edx, eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x3c], edx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x94]
cmp dword [esp + 0x20], eax
sbb ecx, ecx
xor eax, eax
neg ecx
cmp dword [esp + 0x10], eax
sete al
test eax, ecx
je 0x50b016
mov eax, dword [esp + 0x2c]
mov edi, ebx
and edx, 0x1f
neg edi
mov ecx, edx
and edi, 0x1f
shl eax, cl
mov ecx, edi
shr eax, cl
mov ecx, dword [esp + 0xb4]
add ecx, 4
push 2
lea esi, [ecx + eax*4]
push esi
push dword [esp + 0x28]
call sub.VCRUNTIME140.dll_memcpy
movzx ecx, byte [esi + 2]
add ecx, dword [esp + 0x3c]
movzx eax, byte [esi + 3]
mov edx, dword [esp + 0x2c]
add edx, eax
mov dword [esp + 0x3c], ecx
mov eax, dword [esp + 0x38]
and ecx, 0x1f
shl eax, cl
mov ecx, edi
shr eax, cl
mov ecx, dword [esp + 0xc0]
add ecx, 4
mov dword [esp + 0x2c], edx
push 2
lea esi, [ecx + eax*4]
push esi
push edx
call sub.VCRUNTIME140.dll_memcpy
movzx eax, byte [esi + 2]
add esp, 0x18
mov edx, dword [esp + 0x30]
add edx, eax
movzx eax, byte [esi + 3]
add dword [esp + 0x20], eax
mov dword [esp + 0x30], edx
jmp 0x50ae84
mov esi, dword [esp + 0x34]
cmp edx, ebp
ja 0x50b012
cmp esi, dword [esp + 0x3c]
jb 0x50afd7
lea eax, [esp + 0x2c]
push eax
call fcn.005086fc
jmp 0x50b009
mov edi, dword [esp + 0x38]
cmp esi, edi
je 0x50b016
mov ecx, edx
mov eax, esi
shr ecx, 3
sub eax, ecx
cmp eax, edi
jae 0x50aff0
mov ecx, esi
sub ecx, edi
imul eax, ecx, 0xfffffff8
sub esi, ecx
push esi
mov dword [esp + 0x38], esi
add edx, eax
mov dword [esp + 0x34], edx
call fcn.00504f4e
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
pop ecx
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x84]
sub eax, dword [esp + 0x20]
cmp eax, 2
jb 0x50b19a
mov eax, dword [esp + 0x84]
add eax, 0xfffffffe
mov dword [esp + 0x10], eax
cmp edx, ebp
jbe 0x50b049
mov dword [esp + 0x28], 3
jmp 0x50b0cb
cmp esi, dword [esp + 0x3c]
jb 0x50b060
lea eax, [esp + 0x2c]
push eax
call fcn.005086fc
pop ecx
mov dword [esp + 0x28], eax
jmp 0x50b0c3
cmp esi, edi
jne 0x50b07e
mov esi, ebx
cmp edx, ebp
jae 0x50b074
mov dword [esp + 0x28], 1
jmp 0x50b0cd
mov dword [esp + 0x28], 2
jmp 0x50b0cd
and dword [esp + 0x28], 0
mov ecx, edx
shr ecx, 3
mov eax, esi
sub eax, ecx
cmp eax, edi
jae 0x50b09c
mov ecx, esi
mov dword [esp + 0x28], 1
sub ecx, edi
imul eax, ecx, 0xfffffff8
sub esi, ecx
push 4
push esi
mov dword [esp + 0x3c], esi
add edx, eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x3c], edx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x30]
mov esi, ebx
mov edi, dword [esp + 0x20]
neg esi
cmp eax, edi
sbb ecx, ecx
xor eax, eax
inc ecx
cmp dword [esp + 0x28], eax
sete al
test eax, ecx
je 0x50b13b
mov eax, dword [esp + 0x2c]
and edx, 0x1f
mov ecx, edx
shl eax, cl
mov ecx, ebx
neg ecx
and ecx, 0x1f
shr eax, cl
mov ecx, dword [esp + 0xb4]
add ecx, 4
push 2
lea esi, [ecx + eax*4]
push esi
push edi
call sub.VCRUNTIME140.dll_memcpy
movzx eax, byte [esi + 2]
add esp, 0xc
mov edx, dword [esp + 0x30]
add edx, eax
movzx eax, byte [esi + 3]
mov esi, dword [esp + 0x34]
add edi, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x38]
mov dword [esp + 0x30], edx
jmp 0x50b038
cmp edi, dword [esp + 0x10]
ja 0x50b19e
mov ebx, dword [esp + 0xb4]
and esi, 0x1f
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x2c]
and edx, 0x1f
mov ecx, edx
shl eax, cl
mov ecx, esi
shr eax, cl
inc eax
push 2
lea esi, [ebx + eax*4]
push esi
push edi
call sub.VCRUNTIME140.dll_memcpy
movzx eax, byte [esi + 2]
add esp, 0xc
mov edx, dword [esp + 0x30]
add edx, eax
movzx eax, byte [esi + 3]
mov esi, dword [esp + 0x14]
add edi, eax
mov dword [esp + 0x30], edx
cmp edi, ebp
jbe 0x50b153
mov ebx, dword [esp + 0x88]
push 0x20
pop ebp
jmp 0x50b19e
mov edi, dword [esp + 0x20]
cmp edi, dword [esp + 0x84]
jae 0x50b1fb
mov eax, dword [esp + 0x2c]
and edx, 0x1f
mov ecx, edx
neg ebx
shl eax, cl
and ebx, 0x1f
mov ecx, ebx
shr eax, cl
mov ecx, dword [esp + 0xb4]
add ecx, 4
push 1
lea esi, [ecx + eax*4]
push esi
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp byte [esi + 3], 1
jne 0x50b1e4
movzx eax, byte [esi + 2]
add dword [esp + 0x30], eax
jmp 0x50b1fb
mov ecx, dword [esp + 0x30]
cmp ecx, ebp
jae 0x50b1fb
movzx eax, byte [esi + 2]
add ecx, eax
cmp ecx, ebp
cmova ecx, ebp
mov dword [esp + 0x30], ecx
lea eax, [esp + 0x2c]
push eax
call fcn.005085c0
mov edx, eax
lea eax, [esp + 0x44]
push eax
call fcn.005085c0
and edx, eax
lea eax, [esp + 0x5c]
push eax
call fcn.005085c0
and edx, eax
lea eax, [esp + 0x74]
push eax
call fcn.005085c0
add esp, 0x10
test eax, edx
mov eax, dword [esp + 0xa8]
push 0xffffffffffffffec
pop ecx
cmove eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret