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

Disassembly:
sub esp, 0x94
push ebx
mov ebx, dword [esp + 0xa8]
cmp ebx, 0xa
jae 0x50c082
push 0xffffffffffffffec
pop eax
jmp 0x50d3b4
mov eax, dword [esp + 0xa0]
push ebp
push esi
mov esi, dword [esp + 0xac]
push edi
mov edi, dword [esp + 0xa8]
add eax, edi
mov dword [esp + 0x7c], eax
add eax, 0xfffffffd
push esi
mov dword [esp + 0x94], eax
call fcn.0050e151
movzx ebp, ax
lea eax, [esi + 2]
push eax
mov dword [esp + 0xa0], ebp
call fcn.0050e151
movzx eax, ax
mov dword [esp + 0x18], eax
lea eax, [esi + 4]
push eax
call fcn.0050e151
movzx ecx, ax
lea eax, [esi + 6]
push dword [esp + 0xc4]
mov dword [esp + 0xa4], eax
sub ebx, ecx
sub ebx, dword [esp + 0x20]
add eax, ebp
mov dword [esp + 0xac], eax
sub ebx, ebp
add eax, dword [esp + 0x20]
sub ebx, 6
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xbc]
add eax, 3
mov dword [esp + 0x98], ecx
shr eax, 2
mov dword [esp + 0x24], ebx
lea ecx, [eax + edi]
lea edx, [ecx + eax]
mov dword [esp + 0x90], ecx
add eax, edx
mov dword [esp + 0x94], edx
mov ebp, ecx
mov dword [esp + 0x34], eax
mov esi, edx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], eax
call fcn.0050707e
shr eax, 0x10
add esp, 0x10
movzx ebx, al
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x8c], ebx
cmp dword [esp + 0x14], eax
ja 0x50c4a5
mov ecx, dword [esp + 0x24]
cmp ecx, dword [esp + 0x7c]
ja 0x50c4a5
cmp dword [esp + 0xac], 6
jb 0x50c4a5
push dword [esp + 0x98]
lea eax, [esp + 0x6c]
push dword [esp + 0x98]
push eax
call fcn.0050a70e
add esp, 0xc
cmp eax, 0xffffff88
ja 0x50d3b1
push dword [esp + 0x10]
lea eax, [esp + 0x58]
push dword [esp + 0xa0]
push eax
call fcn.0050a70e
add esp, 0xc
cmp eax, 0xffffff88
ja 0x50d3b1
push dword [esp + 0x88]
lea eax, [esp + 0x44]
push dword [esp + 0x2c]
push eax
call fcn.0050a70e
add esp, 0xc
cmp eax, 0xffffff88
ja 0x50d3b1
push dword [esp + 0x14]
mov eax, dword [esp + 0x8c]
add eax, dword [esp + 0x2c]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0050a70e
add esp, 0xc
cmp eax, 0xffffff88
ja 0x50d3b1
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x24]
sub eax, edx
cmp eax, 4
jb 0x50c48d
cmp edx, dword [esp + 0x90]
jae 0x50c48d
mov edx, ebx
mov ebx, edi
neg edx
and edx, 0x1f
mov dword [esp + 0x18], edx
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
and ecx, 0x1f
mov edi, dword [esp + 0xb8]
shl eax, cl
mov ecx, edx
shr eax, cl
inc eax
push 2
lea esi, [edi + eax*4]
push esi
push ebx
call fcn.005282a0
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 + 0x24]
shr eax, cl
inc eax
push 2
lea esi, [edi + eax*4]
push esi
push ebp
call fcn.005282a0
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 + 0x30]
shr eax, cl
push 2
lea esi, [edi + eax*4]
mov edi, dword [esp + 0x3c]
push esi
push edi
call fcn.005282a0
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 + 0x3c]
shr eax, cl
mov ecx, dword [esp + 0xdc]
add ecx, 4
push 2
lea esi, [ecx + eax*4]
push esi
push dword [esp + 0x48]
call fcn.005282a0
movzx eax, byte [esi + 2]
add dword [esp + 0x60], eax
movzx eax, byte [esi + 3]
add dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x9c]
mov eax, dword [esp + 0x98]
and ecx, 0x1f
shl eax, cl
mov ecx, dword [esp + 0x48]
shr eax, cl
mov ecx, dword [esp + 0xe8]
add ecx, 4
push 2
lea esi, [ecx + eax*4]
push esi
push ebx
call fcn.005282a0
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 + 0x54]
shr eax, cl
mov ecx, dword [esp + 0xf4]
add ecx, 4
push 2
lea esi, [ecx + eax*4]
push esi
push ebp
call fcn.005282a0
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 + 0x18]
shr eax, cl
mov ecx, dword [esp + 0xb8]
add ecx, 4
push 2
lea esi, [ecx + eax*4]
push esi
push edi
call fcn.005282a0
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 + 0x24]
shr eax, cl
mov ecx, dword [esp + 0xc4]
add ecx, 4
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x28]
push 2
lea esi, [ecx + eax*4]
push esi
push edi
call fcn.005282a0
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 + 0x38], edi
call fcn.0050a828
neg eax
sbb edi, edi
lea eax, [esp + 0x5c]
push eax
inc edi
call fcn.0050a828
neg eax
sbb esi, esi
lea eax, [esp + 0x74]
inc esi
push eax
and esi, edi
call fcn.0050a828
xor edi, edi
test eax, eax
lea eax, [esp + 0x8c]
push eax
cmove edi, esi
call fcn.0050a828
add esp, 0x28
mov edx, dword [esp + 0x18]
neg eax
sbb ecx, ecx
mov eax, dword [esp + 0x90]
inc ecx
and ecx, edi
cmp dword [esp + 0x1c], eax
sbb eax, eax
test ecx, eax
jne 0x50c240
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esp + 0xa8], ebx
mov ebx, dword [esp + 0x8c]
mov edi, dword [esp + 0xa8]
mov dword [esp + 0x18], ebp
mov ecx, dword [esp + 0x80]
cmp edi, ecx
ja 0x50c4a5
cmp ebp, dword [esp + 0x84]
ja 0x50c4a5
cmp esi, edx
jbe 0x50c4ad
push 0xffffffffffffffec
pop eax
jmp 0x50d3b1
mov eax, ecx
sub eax, edi
push 0x20
pop ebp
cmp eax, 4
jb 0x50c61d
lea edx, [ecx - 3]
mov dword [esp + 0x94], edx
mov edx, dword [esp + 0x6c]
mov esi, dword [esp + 0x70]
cmp edx, ebp
jbe 0x50c4e0
mov dword [esp + 0x14], 3
jmp 0x50c56b
cmp esi, dword [esp + 0x78]
jb 0x50c4f7
lea eax, [esp + 0x68]
push eax
call fcn.0050a828
pop ecx
mov dword [esp + 0x14], eax
jmp 0x50c563
mov ecx, dword [esp + 0x74]
cmp esi, ecx
jne 0x50c50c
cmp edx, ebp
sbb eax, eax
add eax, 2
mov dword [esp + 0x14], eax
jmp 0x50c56b
and dword [esp + 0x14], 0
mov eax, edx
shr eax, 3
mov dword [esp + 0x28], eax
mov eax, esi
sub eax, dword [esp + 0x28]
cmp eax, ecx
jae 0x50c532
mov eax, esi
mov dword [esp + 0x14], 1
sub eax, ecx
jmp 0x50c536
mov eax, dword [esp + 0x28]
sub esi, eax
imul eax, eax, 0xfffffff8
push 4
push esi
mov dword [esp + 0x78], esi
add edx, eax
lea eax, [esp + 0xa4]
push eax
mov dword [esp + 0x78], edx
call fcn.005282a0
mov eax, dword [esp + 0xa8]
add esp, 0xc
mov dword [esp + 0x68], eax
mov edx, dword [esp + 0x6c]
mov esi, dword [esp + 0x70]
cmp edi, dword [esp + 0x94]
sbb ecx, ecx
xor eax, eax
neg ecx
cmp dword [esp + 0x14], eax
sete al
test eax, ecx
je 0x50c696
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 + 0xb8]
add ecx, 4
push 2
lea esi, [ecx + eax*4]
push esi
push dword [esp + 0xb0]
call fcn.005282a0
movzx ecx, byte [esi + 2]
add ecx, dword [esp + 0x78]
movzx eax, byte [esi + 3]
add dword [esp + 0xb4], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x78], ecx
and ecx, 0x1f
shl eax, cl
mov ecx, edi
mov edi, dword [esp + 0xb4]
shr eax, cl
mov ecx, dword [esp + 0xc4]
add ecx, 4
push 2
lea esi, [ecx + eax*4]
push esi
push edi
call fcn.005282a0
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 + 0xa8], edi
jmp 0x50c4cb
mov edx, dword [esp + 0x6c]
mov esi, dword [esp + 0x70]
cmp edx, ebp
ja 0x50c696
cmp esi, dword [esp + 0x78]
jb 0x50c63c
lea eax, [esp + 0x68]
push eax
call fcn.0050a828
pop ecx
jmp 0x50c68e
mov ecx, dword [esp + 0x74]
cmp esi, ecx
je 0x50c69a
mov eax, edx
shr eax, 3
mov dword [esp + 0x28], eax
mov eax, esi
sub eax, dword [esp + 0x28]
cmp eax, ecx
jae 0x50c65d
mov eax, esi
sub eax, ecx
jmp 0x50c661
mov eax, dword [esp + 0x28]
sub esi, eax
imul eax, eax, 0xfffffff8
push 4
push esi
mov dword [esp + 0x78], esi
add edx, eax
lea eax, [esp + 0x9c]
push eax
mov dword [esp + 0x78], edx
call fcn.005282a0
mov eax, dword [esp + 0xa0]
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 + 0x80]
sub eax, edi
cmp eax, 2
jb 0x50c824
mov eax, dword [esp + 0x80]
add eax, 0xfffffffe
mov dword [esp + 0x10], eax
cmp edx, ebp
jbe 0x50c6cb
mov dword [esp + 0x14], 3
jmp 0x50c75f
cmp esi, dword [esp + 0x78]
jb 0x50c6e2
lea eax, [esp + 0x68]
push eax
call fcn.0050a828
pop ecx
mov dword [esp + 0x14], eax
jmp 0x50c757
cmp esi, ecx
jne 0x50c700
mov esi, ebx
cmp edx, ebp
jae 0x50c6f6
mov dword [esp + 0x14], 1
jmp 0x50c761
mov dword [esp + 0x14], 2
jmp 0x50c761
and dword [esp + 0x14], 0
mov eax, edx
shr eax, 3
mov dword [esp + 0x28], eax
mov eax, esi
sub eax, dword [esp + 0x28]
cmp eax, ecx
jae 0x50c726
mov eax, esi
mov dword [esp + 0x14], 1
sub eax, ecx
jmp 0x50c72a
mov eax, dword [esp + 0x28]
sub esi, eax
imul eax, eax, 0xfffffff8
push 4
push esi
mov dword [esp + 0x78], esi
add edx, eax
lea eax, [esp + 0xa0]
push eax
mov dword [esp + 0x78], edx
call fcn.005282a0
mov eax, dword [esp + 0xa4]
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 + 0x14], eax
sete al
test eax, ecx
je 0x50c7c7
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 + 0xb8]
add ecx, 4
push 2
lea esi, [ecx + eax*4]
push esi
push edi
call fcn.005282a0
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 0x50c6ba
cmp edi, dword [esp + 0x10]
ja 0x50c824
mov ebx, dword [esp + 0xb8]
and esi, 0x1f
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x28], 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 fcn.005282a0
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 + 0x28]
add edi, eax
mov dword [esp + 0x6c], edx
cmp edi, ebp
jbe 0x50c7df
mov ebx, dword [esp + 0x8c]
push 0x20
pop ebp
cmp edi, dword [esp + 0x80]
jae 0x50c881
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 + 0xb8]
add ecx, 4
push 1
lea esi, [ecx + eax*4]
push esi
push edi
call fcn.005282a0
add esp, 0xc
cmp byte [esi + 3], 1
jne 0x50c86a
movzx eax, byte [esi + 2]
add dword [esp + 0x6c], eax
jmp 0x50c881
mov ecx, dword [esp + 0x6c]
cmp ecx, ebp
jae 0x50c881
movzx eax, byte [esi + 2]
add ecx, eax
cmp ecx, ebp
cmova ecx, ebp
mov dword [esp + 0x6c], ecx
mov edx, dword [esp + 0x84]
mov eax, edx
sub eax, dword [esp + 0x18]
cmp eax, 4
jb 0x50c9de
add edx, 0xfffffffd
mov dword [esp + 0x88], edx
mov edx, dword [esp + 0x58]
mov esi, dword [esp + 0x5c]
cmp edx, ebp
jbe 0x50c8b7
mov dword [esp + 0x10], 3
jmp 0x50c930
cmp esi, dword [esp + 0x64]
jb 0x50c8ce
lea eax, [esp + 0x54]
push eax
call fcn.0050a828
pop ecx
mov dword [esp + 0x10], eax
jmp 0x50c928
mov edi, dword [esp + 0x60]
cmp esi, edi
jne 0x50c8e3
cmp edx, ebp
sbb eax, eax
add eax, 2
mov dword [esp + 0x10], eax
jmp 0x50c934
and dword [esp + 0x10], 0
mov ecx, edx
shr ecx, 3
mov eax, esi
sub eax, ecx
cmp eax, edi
jae 0x50c901
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 + 0x30]
push eax
mov dword [esp + 0x64], edx
call fcn.005282a0
mov eax, dword [esp + 0x34]
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 + 0x88]
cmp dword [esp + 0x18], eax
sbb ecx, ecx
xor eax, eax
neg ecx
cmp dword [esp + 0x10], eax
sete al
test eax, ecx
je 0x50ca4f
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 + 0xb8]
add ecx, 4
push 2
lea esi, [ecx + eax*4]
push esi
push dword [esp + 0x20]
call fcn.005282a0
movzx ecx, byte [esi + 2]
add ecx, dword [esp + 0x64]
movzx eax, byte [esi + 3]
mov edx, dword [esp + 0x24]
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 + 0xc4]
add ecx, 4
mov dword [esp + 0x24], edx
push 2
lea esi, [ecx + eax*4]
push esi
push edx
call fcn.005282a0
movzx eax, byte [esi + 2]
add esp, 0x18
mov edx, dword [esp + 0x58]
add edx, eax
movzx eax, byte [esi + 3]
add dword [esp + 0x18], eax
mov dword [esp + 0x58], edx
jmp 0x50c8a5
mov edx, dword [esp + 0x58]
mov esi, dword [esp + 0x5c]
cmp edx, ebp
ja 0x50ca4b
cmp esi, dword [esp + 0x64]
jb 0x50c9fd
lea eax, [esp + 0x54]
push eax
call fcn.0050a828
pop ecx
jmp 0x50ca43
mov edi, dword [esp + 0x60]
cmp esi, edi
je 0x50ca4f
mov ecx, edx
mov eax, esi
shr ecx, 3
sub eax, ecx
cmp eax, edi
jae 0x50ca16
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 + 0x90]
push eax
mov dword [esp + 0x64], edx
call fcn.005282a0
mov eax, dword [esp + 0x94]
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 + 0x84]
mov eax, ecx
sub eax, dword [esp + 0x18]
cmp eax, 2
jb 0x50cbd4
lea eax, [ecx - 2]
mov dword [esp + 0x10], eax
cmp edx, ebp
jbe 0x50ca7d
mov dword [esp + 0x14], 3
jmp 0x50cb05
cmp esi, dword [esp + 0x64]
jb 0x50ca94
lea eax, [esp + 0x54]
push eax
call fcn.0050a828
pop ecx
mov dword [esp + 0x14], eax
jmp 0x50cafd
cmp esi, edi
jne 0x50cab2
mov esi, ebx
cmp edx, ebp
jae 0x50caa8
mov dword [esp + 0x14], 1
jmp 0x50cb07
mov dword [esp + 0x14], 2
jmp 0x50cb07
and dword [esp + 0x14], 0
mov ecx, edx
shr ecx, 3
mov eax, esi
sub eax, ecx
cmp eax, edi
jae 0x50cad0
mov ecx, esi
mov dword [esp + 0x14], 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 + 0x88]
push eax
mov dword [esp + 0x64], edx
call fcn.005282a0
mov eax, dword [esp + 0x8c]
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 + 0x18]
neg esi
cmp eax, edi
sbb ecx, ecx
xor eax, eax
inc ecx
cmp dword [esp + 0x14], eax
sete al
test eax, ecx
je 0x50cb75
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 + 0xb8]
add ecx, 4
push 2
lea esi, [ecx + eax*4]
push esi
push edi
call fcn.005282a0
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 + 0x18], edi
mov edi, dword [esp + 0x60]
mov dword [esp + 0x58], edx
jmp 0x50ca6c
cmp edi, dword [esp + 0x10]
ja 0x50cbd8
mov ebx, dword [esp + 0xb8]
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 fcn.005282a0
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 0x50cb8d
mov ebx, dword [esp + 0x8c]
push 0x20
pop ebp
jmp 0x50cbd8
mov edi, dword [esp + 0x18]
cmp edi, dword [esp + 0x84]
jae 0x50cc35
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 + 0xb8]
add ecx, 4
push 1
lea esi, [ecx + eax*4]
push esi
push edi
call fcn.005282a0
add esp, 0xc
cmp byte [esi + 3], 1
jne 0x50cc1e
movzx eax, byte [esi + 2]
add dword [esp + 0x58], eax
jmp 0x50cc35
mov ecx, dword [esp + 0x58]
cmp ecx, ebp
jae 0x50cc35
movzx eax, byte [esi + 2]
add ecx, eax
cmp ecx, ebp
cmova ecx, ebp
mov dword [esp + 0x58], ecx
mov edx, dword [esp + 0x24]
mov eax, edx
sub eax, dword [esp + 0x20]
cmp eax, 4
jb 0x50cd8f
add edx, 0xfffffffd
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x48]
cmp edx, ebp
jbe 0x50cc65
mov dword [esp + 0x10], 3
jmp 0x50cce4
cmp esi, dword [esp + 0x50]
jb 0x50cc7c
lea eax, [esp + 0x40]
push eax
call fcn.0050a828
pop ecx
mov dword [esp + 0x10], eax
jmp 0x50ccdc
mov edi, dword [esp + 0x4c]
cmp esi, edi
jne 0x50cc91
cmp edx, ebp
sbb eax, eax
add eax, 2
mov dword [esp + 0x10], eax
jmp 0x50cce8
and dword [esp + 0x10], 0
mov ecx, edx
shr ecx, 3
mov eax, esi
sub eax, ecx
cmp eax, edi
jae 0x50ccaf
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 + 0x8c]
push eax
mov dword [esp + 0x50], edx
call fcn.005282a0
mov eax, dword [esp + 0x90]
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 + 0x14]
cmp dword [esp + 0x20], eax
sbb ecx, ecx
xor eax, eax
neg ecx
cmp dword [esp + 0x10], eax
sete al
test eax, ecx
je 0x50cdfa
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 + 0xb8]
add ecx, 4
push 2
lea esi, [ecx + eax*4]
push esi
push dword [esp + 0x28]
call fcn.005282a0
movzx ecx, byte [esi + 2]
add ecx, dword [esp + 0x50]
movzx eax, byte [esi + 3]
mov edx, dword [esp + 0x2c]
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 + 0xc4]
add ecx, 4
mov dword [esp + 0x2c], edx
push 2
lea esi, [ecx + eax*4]
push esi
push edx
call fcn.005282a0
movzx eax, byte [esi + 2]
add esp, 0x18
mov edx, dword [esp + 0x44]
add edx, eax
movzx eax, byte [esi + 3]
add dword [esp + 0x20], eax
mov dword [esp + 0x44], edx
jmp 0x50cc53
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x48]
cmp edx, ebp
ja 0x50cdf6
cmp esi, dword [esp + 0x50]
jb 0x50cdae
lea eax, [esp + 0x40]
push eax
call fcn.0050a828
pop ecx
jmp 0x50cdee
mov edi, dword [esp + 0x4c]
cmp esi, edi
je 0x50cdfa
mov ecx, edx
mov eax, esi
shr ecx, 3
sub eax, ecx
cmp eax, edi
jae 0x50cdc7
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 + 0x20]
push eax
mov dword [esp + 0x50], edx
call fcn.005282a0
mov eax, dword [esp + 0x24]
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 + 0x24]
mov eax, ecx
sub eax, dword [esp + 0x20]
cmp eax, 2
jb 0x50cf7c
lea eax, [ecx - 2]
mov dword [esp + 0x10], eax
cmp edx, ebp
jbe 0x50ce25
mov dword [esp + 0x14], 3
jmp 0x50cead
cmp esi, dword [esp + 0x50]
jb 0x50ce3c
lea eax, [esp + 0x40]
push eax
call fcn.0050a828
pop ecx
mov dword [esp + 0x14], eax
jmp 0x50cea5
cmp esi, edi
jne 0x50ce5a
mov esi, ebx
cmp edx, ebp
jae 0x50ce50
mov dword [esp + 0x14], 1
jmp 0x50ceaf
mov dword [esp + 0x14], 2
jmp 0x50ceaf
and dword [esp + 0x14], 0
mov ecx, edx
shr ecx, 3
mov eax, esi
sub eax, ecx
cmp eax, edi
jae 0x50ce78
mov ecx, esi
mov dword [esp + 0x14], 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 + 0xa8]
push eax
mov dword [esp + 0x50], edx
call fcn.005282a0
mov eax, dword [esp + 0xac]
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 + 0x20]
neg esi
cmp eax, edi
sbb ecx, ecx
xor eax, eax
inc ecx
cmp dword [esp + 0x14], eax
sete al
test eax, ecx
je 0x50cf1d
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 + 0xb8]
add ecx, 4
push 2
lea esi, [ecx + eax*4]
push esi
push edi
call fcn.005282a0
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 + 0x20], edi
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x44], edx
jmp 0x50ce14
cmp edi, dword [esp + 0x10]
ja 0x50cf80
mov ebx, dword [esp + 0xb8]
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 fcn.005282a0
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 0x50cf35
mov ebx, dword [esp + 0x8c]
push 0x20
pop ebp
jmp 0x50cf80
mov edi, dword [esp + 0x20]
cmp edi, dword [esp + 0x24]
jae 0x50cfda
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 + 0xb8]
add ecx, 4
push 1
lea esi, [ecx + eax*4]
push esi
push edi
call fcn.005282a0
add esp, 0xc
cmp byte [esi + 3], 1
jne 0x50cfc3
movzx eax, byte [esi + 2]
add dword [esp + 0x44], eax
jmp 0x50cfda
mov ecx, dword [esp + 0x44]
cmp ecx, ebp
jae 0x50cfda
movzx eax, byte [esi + 2]
add ecx, eax
cmp ecx, ebp
cmova ecx, ebp
mov dword [esp + 0x44], ecx
mov eax, dword [esp + 0x7c]
sub eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
cmp eax, 4
jb 0x50d128
mov esi, dword [esp + 0x34]
cmp edx, ebp
jbe 0x50d001
mov dword [esp + 0x10], 3
jmp 0x50d07a
cmp esi, dword [esp + 0x3c]
jb 0x50d018
lea eax, [esp + 0x2c]
push eax
call fcn.0050a828
pop ecx
mov dword [esp + 0x10], eax
jmp 0x50d072
mov edi, dword [esp + 0x38]
cmp esi, edi
jne 0x50d02d
cmp edx, ebp
sbb eax, eax
add eax, 2
mov dword [esp + 0x10], eax
jmp 0x50d07e
and dword [esp + 0x10], 0
mov ecx, edx
shr ecx, 3
mov eax, esi
sub eax, ecx
cmp eax, edi
jae 0x50d04b
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 fcn.005282a0
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 + 0x90]
cmp dword [esp + 0x1c], eax
sbb ecx, ecx
xor eax, eax
neg ecx
cmp dword [esp + 0x10], eax
sete al
test eax, ecx
je 0x50d195
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 + 0xb8]
add ecx, 4
push 2
lea esi, [ecx + eax*4]
push esi
push dword [esp + 0x24]
call fcn.005282a0
movzx ecx, byte [esi + 2]
add ecx, dword [esp + 0x3c]
movzx eax, byte [esi + 3]
mov edx, dword [esp + 0x28]
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 + 0xc4]
add ecx, 4
mov dword [esp + 0x28], edx
push 2
lea esi, [ecx + eax*4]
push esi
push edx
call fcn.005282a0
movzx eax, byte [esi + 2]
add esp, 0x18
mov edx, dword [esp + 0x30]
add edx, eax
movzx eax, byte [esi + 3]
add dword [esp + 0x1c], eax
mov dword [esp + 0x30], edx
jmp 0x50cfef
mov esi, dword [esp + 0x34]
cmp edx, ebp
ja 0x50d191
cmp esi, dword [esp + 0x3c]
jb 0x50d143
lea eax, [esp + 0x2c]
push eax
call fcn.0050a828
pop ecx
jmp 0x50d189
mov edi, dword [esp + 0x38]
cmp esi, edi
je 0x50d195
mov ecx, edx
mov eax, esi
shr ecx, 3
sub eax, ecx
cmp eax, edi
jae 0x50d15c
mov ecx, esi
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 + 0x98]
push eax
mov dword [esp + 0x3c], edx
call fcn.005282a0
mov eax, dword [esp + 0x9c]
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 + 0x7c]
sub eax, dword [esp + 0x1c]
cmp eax, 2
jb 0x50d313
mov eax, dword [esp + 0x7c]
add eax, 0xfffffffe
mov dword [esp + 0x10], eax
cmp edx, ebp
jbe 0x50d1c2
mov dword [esp + 0x24], 3
jmp 0x50d244
cmp esi, dword [esp + 0x3c]
jb 0x50d1d9
lea eax, [esp + 0x2c]
push eax
call fcn.0050a828
pop ecx
mov dword [esp + 0x24], eax
jmp 0x50d23c
cmp esi, edi
jne 0x50d1f7
mov esi, ebx
cmp edx, ebp
jae 0x50d1ed
mov dword [esp + 0x24], 1
jmp 0x50d246
mov dword [esp + 0x24], 2
jmp 0x50d246
and dword [esp + 0x24], 0
mov ecx, edx
shr ecx, 3
mov eax, esi
sub eax, ecx
cmp eax, edi
jae 0x50d215
mov ecx, esi
mov dword [esp + 0x24], 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 + 0x28]
push eax
mov dword [esp + 0x3c], edx
call fcn.005282a0
mov eax, dword [esp + 0x2c]
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 + 0x1c]
neg esi
cmp eax, edi
sbb ecx, ecx
xor eax, eax
inc ecx
cmp dword [esp + 0x24], eax
sete al
test eax, ecx
je 0x50d2b4
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 + 0xb8]
add ecx, 4
push 2
lea esi, [ecx + eax*4]
push esi
push edi
call fcn.005282a0
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 + 0x1c], edi
mov edi, dword [esp + 0x38]
mov dword [esp + 0x30], edx
jmp 0x50d1b1
cmp edi, dword [esp + 0x10]
ja 0x50d317
mov ebx, dword [esp + 0xb8]
and esi, 0x1f
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x24], 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 fcn.005282a0
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 + 0x24]
add edi, eax
mov dword [esp + 0x30], edx
cmp edi, ebp
jbe 0x50d2cc
mov ebx, dword [esp + 0x8c]
push 0x20
pop ebp
jmp 0x50d317
mov edi, dword [esp + 0x1c]
cmp edi, dword [esp + 0x7c]
jae 0x50d371
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 + 0xb8]
add ecx, 4
push 1
lea esi, [ecx + eax*4]
push esi
push edi
call fcn.005282a0
add esp, 0xc
cmp byte [esi + 3], 1
jne 0x50d35a
movzx eax, byte [esi + 2]
add dword [esp + 0x30], eax
jmp 0x50d371
mov ecx, dword [esp + 0x30]
cmp ecx, ebp
jae 0x50d371
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.0050a6f5
mov edx, eax
lea eax, [esp + 0x44]
push eax
call fcn.0050a6f5
and edx, eax
lea eax, [esp + 0x5c]
push eax
call fcn.0050a6f5
and edx, eax
lea eax, [esp + 0x74]
push eax
call fcn.0050a6f5
add esp, 0x10
test eax, edx
mov eax, dword [esp + 0xac]
push 0xffffffffffffffec
pop ecx
cmove eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret