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

Disassembly:
sub esp, 0x90
push ebx
mov ebx, dword [esp + 0xa4]
cmp ebx, 0xa
jae 0x4c8fa3
push 0xffffffffffffffec
pop eax
jmp 0x4ca236
mov eax, dword [esp + 0x9c]
cmp eax, 6
jb 0x4c8f9b
push ebp
mov ebp, dword [esp + 0x9c]
add eax, ebp
push esi
mov esi, dword [esp + 0xa8]
mov dword [esp + 0x74], eax
add eax, 0xfffffffd
push edi
push esi
mov dword [esp + 0x80], eax
call fcn.004cafe7
movzx edi, ax
lea eax, [esi + 2]
push eax
mov dword [esp + 0x94], edi
call fcn.004cafe7
movzx eax, ax
mov dword [esp + 0x18], eax
lea eax, [esi + 4]
push eax
call fcn.004cafe7
movzx ecx, ax
lea eax, [esi + 6]
push dword [esp + 0xc0]
mov dword [esp + 0xa0], eax
sub ebx, ecx
sub ebx, dword [esp + 0x20]
add eax, edi
mov dword [esp + 0xac], eax
sub ebx, edi
add eax, dword [esp + 0x20]
sub ebx, 6
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0xb8]
add eax, 3
mov dword [esp + 0x94], ecx
shr eax, 2
mov dword [esp + 0xa4], ebx
lea ecx, [eax + ebp]
lea edx, [ecx + eax]
mov dword [esp + 0x98], ecx
add eax, edx
mov dword [esp + 0x90], edx
mov ebx, ecx
mov dword [esp + 0x28], eax
mov edi, edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x80], edi
mov dword [esp + 0x84], eax
call fcn.004c3e6e
shr eax, 0x10
add esp, 0x10
movzx esi, al
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x14], esi
cmp dword [esp + 0x94], eax
ja 0x4c93d2
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esp + 0x78]
ja 0x4c93d2
push dword [esp + 0x8c]
lea eax, [esp + 0x60]
push dword [esp + 0x94]
push eax
call fcn.004c7523
add esp, 0xc
cmp eax, 0xffffff88
ja 0x4ca233
push dword [esp + 0x10]
lea eax, [esp + 0x4c]
push dword [esp + 0xa0]
push eax
call fcn.004c7523
add esp, 0xc
cmp eax, 0xffffff88
ja 0x4ca233
push dword [esp + 0x84]
lea eax, [esp + 0x38]
push dword [esp + 0x9c]
push eax
call fcn.004c7523
add esp, 0xc
cmp eax, 0xffffff88
ja 0x4ca233
push dword [esp + 0x94]
mov eax, dword [esp + 0x88]
add eax, dword [esp + 0x9c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004c7523
add esp, 0xc
cmp eax, 0xffffff88
ja 0x4ca233
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x18]
sub eax, ecx
cmp eax, 4
jb 0x4c93ba
cmp ecx, dword [esp + 0x7c]
jae 0x4c93ba
mov edx, esi
neg edx
and edx, 0x1f
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x5c]
and ecx, 0x1f
shl eax, cl
mov ecx, edx
shr eax, cl
mov ecx, dword [esp + 0xb4]
add ecx, 4
push 2
lea esi, [ecx + eax*4]
push esi
push ebp
call fcn.004e4d00
movzx eax, byte [esi + 2]
add dword [esp + 0x6c], eax
movzx eax, byte [esi + 3]
mov ecx, dword [esp + 0x58]
add ebp, eax
mov eax, dword [esp + 0x54]
and ecx, 0x1f
shl eax, cl
mov ecx, dword [esp + 0x1c]
shr eax, cl
mov ecx, dword [esp + 0xc0]
add ecx, 4
push 2
lea esi, [ecx + eax*4]
push esi
push ebx
call fcn.004e4d00
movzx eax, byte [esi + 2]
add dword [esp + 0x64], eax
movzx eax, byte [esi + 3]
mov ecx, dword [esp + 0x50]
add ebx, eax
mov eax, dword [esp + 0x4c]
and ecx, 0x1f
shl eax, cl
mov ecx, dword [esp + 0x28]
shr eax, cl
mov ecx, dword [esp + 0xcc]
add ecx, 4
push 2
lea esi, [ecx + eax*4]
push esi
push edi
call fcn.004e4d00
movzx eax, byte [esi + 2]
add dword [esp + 0x5c], eax
movzx eax, byte [esi + 3]
mov ecx, dword [esp + 0x48]
add edi, eax
mov eax, dword [esp + 0x44]
and ecx, 0x1f
shl eax, cl
mov ecx, dword [esp + 0x34]
shr eax, cl
mov ecx, dword [esp + 0xd8]
add ecx, 4
push 2
lea esi, [ecx + eax*4]
push esi
push dword [esp + 0xa0]
call fcn.004e4d00
movzx eax, byte [esi + 2]
add dword [esp + 0x54], eax
movzx eax, byte [esi + 3]
add dword [esp + 0xa4], eax
mov ecx, dword [esp + 0x90]
mov eax, dword [esp + 0x8c]
and ecx, 0x1f
shl eax, cl
mov ecx, dword [esp + 0x40]
shr eax, cl
mov ecx, dword [esp + 0xe4]
add ecx, 4
push 2
lea esi, [ecx + eax*4]
push esi
push ebp
call fcn.004e4d00
movzx eax, byte [esi + 2]
add dword [esp + 0x9c], eax
movzx eax, byte [esi + 3]
mov ecx, dword [esp + 0x88]
add ebp, eax
mov eax, dword [esp + 0x84]
and ecx, 0x1f
shl eax, cl
mov ecx, dword [esp + 0x4c]
shr eax, cl
mov ecx, dword [esp + 0xf0]
add ecx, 4
push 2
lea esi, [ecx + eax*4]
push esi
push ebx
call fcn.004e4d00
movzx eax, byte [esi + 2]
add esp, 0x48
add dword [esp + 0x4c], eax
movzx eax, byte [esi + 3]
mov ecx, dword [esp + 0x38]
add ebx, eax
mov eax, dword [esp + 0x34]
and ecx, 0x1f
shl eax, cl
mov ecx, dword [esp + 0x10]
shr eax, cl
mov ecx, dword [esp + 0xb4]
add ecx, 4
push 2
lea esi, [ecx + eax*4]
push esi
push edi
call fcn.004e4d00
movzx eax, byte [esi + 2]
add dword [esp + 0x44], eax
movzx eax, byte [esi + 3]
mov ecx, dword [esp + 0x30]
add edi, eax
mov eax, dword [esp + 0x2c]
and ecx, 0x1f
shl eax, cl
mov ecx, dword [esp + 0x1c]
shr eax, cl
mov ecx, dword [esp + 0xc0]
add ecx, 4
mov dword [esp + 0x7c], edi
mov edi, dword [esp + 0x80]
push 2
lea esi, [ecx + eax*4]
push esi
push edi
call fcn.004e4d00
movzx eax, byte [esi + 2]
add dword [esp + 0x3c], eax
movzx eax, byte [esi + 3]
add edi, eax
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x90], edi
call fcn.004c7646
neg eax
sbb esi, esi
lea eax, [esp + 0x50]
push eax
inc esi
call fcn.004c7646
neg eax
sbb edi, edi
lea eax, [esp + 0x68]
inc edi
push eax
and edi, esi
call fcn.004c7646
neg eax
sbb esi, esi
lea eax, [esp + 0x80]
inc esi
and esi, edi
push eax
call fcn.004c7646
mov edi, dword [esp + 0x98]
add esp, 0x28
mov edx, dword [esp + 0x10]
neg eax
sbb ecx, ecx
mov eax, dword [esp + 0x7c]
inc ecx
and ecx, esi
cmp dword [esp + 0x74], eax
sbb eax, eax
test ecx, eax
jne 0x4c9168
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], ebx
mov edx, dword [esp + 0x88]
cmp ebp, edx
ja 0x4c93d2
cmp ebx, dword [esp + 0x80]
ja 0x4c93d2
cmp edi, ecx
jbe 0x4c93da
push 0xffffffffffffffec
pop eax
jmp 0x4ca233
mov eax, edx
sub eax, ebp
push 0x20
pop ebx
cmp eax, 4
jb 0x4c9536
add edx, 0xfffffffd
mov dword [esp + 0x90], edx
mov edx, dword [esp + 0x60]
cmp edx, ebx
jbe 0x4c9412
mov esi, 0x530790
mov dword [esp + 0x10], 3
mov dword [esp + 0x64], esi
jmp 0x4c9495
mov esi, dword [esp + 0x64]
cmp esi, dword [esp + 0x6c]
jb 0x4c942d
lea eax, [esp + 0x5c]
push eax
call fcn.004c765e
pop ecx
mov dword [esp + 0x10], eax
jmp 0x4c948d
mov edi, dword [esp + 0x68]
cmp esi, edi
jne 0x4c9442
cmp edx, ebx
sbb eax, eax
add eax, 2
mov dword [esp + 0x10], eax
jmp 0x4c9499
and dword [esp + 0x10], 0
mov ecx, edx
shr ecx, 3
mov eax, esi
sub eax, ecx
cmp eax, edi
jae 0x4c9460
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 + 0x6c], esi
add edx, eax
lea eax, [esp + 0xa4]
push eax
mov dword [esp + 0x6c], edx
call fcn.004e4d00
mov eax, dword [esp + 0xa8]
add esp, 0xc
mov dword [esp + 0x5c], eax
mov edx, dword [esp + 0x60]
mov esi, dword [esp + 0x64]
mov edi, dword [esp + 0x68]
cmp ebp, dword [esp + 0x90]
sbb ecx, ecx
xor eax, eax
neg ecx
cmp dword [esp + 0x10], eax
sete al
test eax, ecx
je 0x4c95b2
mov edi, dword [esp + 0x14]
and edx, 0x1f
mov eax, dword [esp + 0x5c]
mov ecx, edx
shl eax, cl
neg edi
and edi, 0x1f
mov ecx, edi
shr eax, cl
mov ecx, dword [esp + 0xb4]
add ecx, 4
push 2
lea esi, [ecx + eax*4]
push esi
push ebp
call fcn.004e4d00
movzx eax, byte [esi + 2]
mov ecx, dword [esp + 0x6c]
add ecx, eax
movzx eax, byte [esi + 3]
mov dword [esp + 0x6c], ecx
add ebp, eax
mov eax, dword [esp + 0x68]
and ecx, 0x1f
shl eax, cl
mov ecx, edi
shr eax, cl
mov ecx, dword [esp + 0xc0]
add ecx, 4
push 2
lea esi, [ecx + eax*4]
push esi
push ebp
call fcn.004e4d00
movzx eax, byte [esi + 2]
add esp, 0x18
mov edx, dword [esp + 0x60]
add edx, eax
movzx eax, byte [esi + 3]
mov dword [esp + 0x60], edx
add ebp, eax
jmp 0x4c93f8
mov edx, dword [esp + 0x60]
cmp edx, ebx
jbe 0x4c9549
mov esi, 0x530790
mov dword [esp + 0x64], esi
jmp 0x4c95ae
mov esi, dword [esp + 0x64]
cmp esi, dword [esp + 0x6c]
jb 0x4c9560
lea eax, [esp + 0x5c]
push eax
call fcn.004c765e
pop ecx
jmp 0x4c95a6
mov edi, dword [esp + 0x68]
cmp esi, edi
je 0x4c95b2
mov ecx, edx
mov eax, esi
shr ecx, 3
sub eax, ecx
cmp eax, edi
jae 0x4c9579
mov ecx, esi
sub ecx, edi
imul eax, ecx, 0xfffffff8
sub esi, ecx
push 4
push esi
mov dword [esp + 0x6c], esi
add edx, eax
lea eax, [esp + 0x98]
push eax
mov dword [esp + 0x6c], edx
call fcn.004e4d00
mov eax, dword [esp + 0x9c]
add esp, 0xc
mov dword [esp + 0x5c], eax
mov edx, dword [esp + 0x60]
mov esi, dword [esp + 0x64]
mov edi, dword [esp + 0x68]
mov ecx, dword [esp + 0x88]
mov eax, ecx
sub eax, ebp
cmp eax, 2
jb 0x4c970a
lea eax, [ecx - 2]
mov dword [esp + 0x7c], eax
cmp edx, ebx
jbe 0x4c95de
push 3
mov dword [esp + 0x68], 0x530790
pop edi
jmp 0x4c9656
cmp esi, dword [esp + 0x6c]
jb 0x4c95f3
lea eax, [esp + 0x5c]
push eax
call fcn.004c765e
pop ecx
mov edi, eax
jmp 0x4c9652
cmp esi, edi
jne 0x4c9600
cmp edx, ebx
sbb edi, edi
add edi, 2
jmp 0x4c9656
and dword [esp + 0x8c], 0
mov ecx, edx
shr ecx, 3
mov eax, esi
sub eax, ecx
cmp eax, edi
jae 0x4c961e
mov ecx, esi
sub ecx, edi
xor edi, edi
inc edi
jmp 0x4c9625
mov edi, dword [esp + 0x8c]
imul eax, ecx, 0xfffffff8
sub esi, ecx
push 4
push esi
mov dword [esp + 0x6c], esi
add edx, eax
lea eax, [esp + 0xa0]
push eax
mov dword [esp + 0x6c], edx
call fcn.004e4d00
mov eax, dword [esp + 0xa4]
add esp, 0xc
mov dword [esp + 0x5c], eax
mov edx, dword [esp + 0x60]
mov esi, dword [esp + 0x7c]
cmp esi, ebp
sbb ecx, ecx
xor eax, eax
inc ecx
test edi, edi
sete al
test eax, ecx
je 0x4c96ba
mov eax, dword [esp + 0x5c]
and edx, 0x1f
mov ecx, edx
shl eax, cl
mov ecx, dword [esp + 0x14]
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 ebp
call fcn.004e4d00
movzx eax, byte [esi + 2]
add esp, 0xc
mov edx, dword [esp + 0x60]
mov edi, dword [esp + 0x68]
add edx, eax
movzx eax, byte [esi + 3]
mov esi, dword [esp + 0x64]
add ebp, eax
mov dword [esp + 0x60], edx
jmp 0x4c95cd
cmp ebp, esi
ja 0x4c970a
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0xb4]
neg ebx
and ebx, 0x1f
mov eax, dword [esp + 0x5c]
and edx, 0x1f
mov ecx, edx
shl eax, cl
mov ecx, ebx
shr eax, cl
inc eax
push 2
lea esi, [edi + eax*4]
push esi
push ebp
call fcn.004e4d00
movzx eax, byte [esi + 2]
add esp, 0xc
mov edx, dword [esp + 0x60]
add edx, eax
movzx eax, byte [esi + 3]
add ebp, eax
mov dword [esp + 0x60], edx
cmp ebp, dword [esp + 0x7c]
jbe 0x4c96ce
push 0x20
pop ebx
mov edi, dword [esp + 0x14]
cmp ebp, dword [esp + 0x88]
jae 0x4c976b
mov eax, dword [esp + 0x5c]
and edx, 0x1f
mov ecx, edx
shl eax, cl
mov ecx, edi
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 ebp
call fcn.004e4d00
add esp, 0xc
cmp byte [esi + 3], 1
jne 0x4c9754
movzx eax, byte [esi + 2]
add dword [esp + 0x60], eax
jmp 0x4c976b
mov ecx, dword [esp + 0x60]
cmp ecx, ebx
jae 0x4c976b
movzx eax, byte [esi + 2]
add ecx, eax
cmp ecx, ebx
cmova ecx, ebx
mov dword [esp + 0x60], ecx
mov edx, dword [esp + 0x80]
mov eax, edx
mov ebp, dword [esp + 0x1c]
sub eax, ebp
cmp eax, 4
jb 0x4c98c9
add edx, 0xfffffffd
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x4c]
cmp edx, ebx
jbe 0x4c97a8
mov esi, 0x530790
mov dword [esp + 0x10], 3
mov dword [esp + 0x50], esi
jmp 0x4c982b
mov esi, dword [esp + 0x50]
cmp esi, dword [esp + 0x58]
jb 0x4c97c3
lea eax, [esp + 0x48]
push eax
call fcn.004c765e
pop ecx
mov dword [esp + 0x10], eax
jmp 0x4c9823
mov edi, dword [esp + 0x54]
cmp esi, edi
jne 0x4c97d8
cmp edx, ebx
sbb eax, eax
add eax, 2
mov dword [esp + 0x10], eax
jmp 0x4c982f
and dword [esp + 0x10], 0
mov ecx, edx
shr ecx, 3
mov eax, esi
sub eax, ecx
cmp eax, edi
jae 0x4c97f6
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 + 0x58], esi
add edx, eax
lea eax, [esp + 0x94]
push eax
mov dword [esp + 0x58], edx
call fcn.004e4d00
mov eax, dword [esp + 0x98]
add esp, 0xc
mov dword [esp + 0x48], eax
mov edx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
cmp ebp, dword [esp + 0x1c]
sbb ecx, ecx
xor eax, eax
neg ecx
cmp dword [esp + 0x10], eax
sete al
test eax, ecx
je 0x4c9945
mov edi, dword [esp + 0x14]
and edx, 0x1f
mov eax, dword [esp + 0x48]
mov ecx, edx
shl eax, cl
neg edi
and edi, 0x1f
mov ecx, edi
shr eax, cl
mov ecx, dword [esp + 0xb4]
add ecx, 4
push 2
lea esi, [ecx + eax*4]
push esi
push ebp
call fcn.004e4d00
movzx eax, byte [esi + 2]
mov ecx, dword [esp + 0x58]
add ecx, eax
movzx eax, byte [esi + 3]
mov dword [esp + 0x58], ecx
add ebp, eax
mov eax, dword [esp + 0x54]
and ecx, 0x1f
shl eax, cl
mov ecx, edi
shr eax, cl
mov ecx, dword [esp + 0xc0]
add ecx, 4
push 2
lea esi, [ecx + eax*4]
push esi
push ebp
call fcn.004e4d00
movzx eax, byte [esi + 2]
add esp, 0x18
mov edx, dword [esp + 0x4c]
add edx, eax
movzx eax, byte [esi + 3]
mov dword [esp + 0x4c], edx
add ebp, eax
jmp 0x4c978e
mov edx, dword [esp + 0x4c]
cmp edx, ebx
jbe 0x4c98dc
mov esi, 0x530790
mov dword [esp + 0x50], esi
jmp 0x4c9941
mov esi, dword [esp + 0x50]
cmp esi, dword [esp + 0x58]
jb 0x4c98f3
lea eax, [esp + 0x48]
push eax
call fcn.004c765e
pop ecx
jmp 0x4c9939
mov edi, dword [esp + 0x54]
cmp esi, edi
je 0x4c9945
mov ecx, edx
mov eax, esi
shr ecx, 3
sub eax, ecx
cmp eax, edi
jae 0x4c990c
mov ecx, esi
sub ecx, edi
imul eax, ecx, 0xfffffff8
sub esi, ecx
push 4
push esi
mov dword [esp + 0x58], esi
add edx, eax
lea eax, [esp + 0x84]
push eax
mov dword [esp + 0x58], edx
call fcn.004e4d00
mov eax, dword [esp + 0x88]
add esp, 0xc
mov dword [esp + 0x48], eax
mov edx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov ecx, dword [esp + 0x80]
mov eax, ecx
sub eax, ebp
cmp eax, 2
jb 0x4c9a9d
lea eax, [ecx - 2]
mov dword [esp + 0x1c], eax
cmp edx, ebx
jbe 0x4c9971
push 3
mov dword [esp + 0x54], 0x530790
pop edi
jmp 0x4c99e9
cmp esi, dword [esp + 0x58]
jb 0x4c9986
lea eax, [esp + 0x48]
push eax
call fcn.004c765e
pop ecx
mov edi, eax
jmp 0x4c99e5
cmp esi, edi
jne 0x4c9993
cmp edx, ebx
sbb edi, edi
add edi, 2
jmp 0x4c99e9
and dword [esp + 0x84], 0
mov ecx, edx
shr ecx, 3
mov eax, esi
sub eax, ecx
cmp eax, edi
jae 0x4c99b1
mov ecx, esi
sub ecx, edi
xor edi, edi
inc edi
jmp 0x4c99b8
mov edi, dword [esp + 0x84]
imul eax, ecx, 0xfffffff8
sub esi, ecx
push 4
push esi
mov dword [esp + 0x58], esi
add edx, eax
lea eax, [esp + 0x9c]
push eax
mov dword [esp + 0x58], edx
call fcn.004e4d00
mov eax, dword [esp + 0xa0]
add esp, 0xc
mov dword [esp + 0x48], eax
mov edx, dword [esp + 0x4c]
mov esi, dword [esp + 0x1c]
cmp esi, ebp
sbb ecx, ecx
xor eax, eax
inc ecx
test edi, edi
sete al
test eax, ecx
je 0x4c9a4d
mov eax, dword [esp + 0x48]
and edx, 0x1f
mov ecx, edx
shl eax, cl
mov ecx, dword [esp + 0x14]
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 ebp
call fcn.004e4d00
movzx eax, byte [esi + 2]
add esp, 0xc
mov edx, dword [esp + 0x4c]
mov edi, dword [esp + 0x54]
add edx, eax
movzx eax, byte [esi + 3]
mov esi, dword [esp + 0x50]
add ebp, eax
mov dword [esp + 0x4c], edx
jmp 0x4c9960
cmp ebp, esi
ja 0x4c9a9d
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0xb4]
neg ebx
and ebx, 0x1f
mov eax, dword [esp + 0x48]
and edx, 0x1f
mov ecx, edx
shl eax, cl
mov ecx, ebx
shr eax, cl
inc eax
push 2
lea esi, [edi + eax*4]
push esi
push ebp
call fcn.004e4d00
movzx eax, byte [esi + 2]
add esp, 0xc
mov edx, dword [esp + 0x4c]
add edx, eax
movzx eax, byte [esi + 3]
add ebp, eax
mov dword [esp + 0x4c], edx
cmp ebp, dword [esp + 0x1c]
jbe 0x4c9a61
push 0x20
pop ebx
mov edi, dword [esp + 0x14]
cmp ebp, dword [esp + 0x80]
jae 0x4c9afe
mov eax, dword [esp + 0x48]
and edx, 0x1f
mov ecx, edx
shl eax, cl
mov ecx, edi
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 ebp
call fcn.004e4d00
add esp, 0xc
cmp byte [esi + 3], 1
jne 0x4c9ae7
movzx eax, byte [esi + 2]
add dword [esp + 0x4c], eax
jmp 0x4c9afe
mov ecx, dword [esp + 0x4c]
cmp ecx, ebx
jae 0x4c9afe
movzx eax, byte [esi + 2]
add ecx, eax
cmp ecx, ebx
cmova ecx, ebx
mov dword [esp + 0x4c], ecx
mov edx, dword [esp + 0x18]
mov eax, edx
mov ebp, dword [esp + 0x70]
sub eax, ebp
cmp eax, 4
jb 0x4c9c59
add edx, 0xfffffffd
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x38]
cmp edx, ebx
jbe 0x4c9b38
mov esi, 0x530790
mov dword [esp + 0x10], 3
mov dword [esp + 0x3c], esi
jmp 0x4c9bbb
mov esi, dword [esp + 0x3c]
cmp esi, dword [esp + 0x44]
jb 0x4c9b53
lea eax, [esp + 0x34]
push eax
call fcn.004c765e
pop ecx
mov dword [esp + 0x10], eax
jmp 0x4c9bb3
mov edi, dword [esp + 0x40]
cmp esi, edi
jne 0x4c9b68
cmp edx, ebx
sbb eax, eax
add eax, 2
mov dword [esp + 0x10], eax
jmp 0x4c9bbf
and dword [esp + 0x10], 0
mov ecx, edx
shr ecx, 3
mov eax, esi
sub eax, ecx
cmp eax, edi
jae 0x4c9b86
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 + 0x44], esi
add edx, eax
lea eax, [esp + 0x8c]
push eax
mov dword [esp + 0x44], edx
call fcn.004e4d00
mov eax, dword [esp + 0x90]
add esp, 0xc
mov dword [esp + 0x34], eax
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
cmp ebp, dword [esp + 0x1c]
sbb ecx, ecx
xor eax, eax
neg ecx
cmp dword [esp + 0x10], eax
sete al
test eax, ecx
je 0x4c9cd5
mov edi, dword [esp + 0x14]
and edx, 0x1f
mov eax, dword [esp + 0x34]
mov ecx, edx
shl eax, cl
neg edi
and edi, 0x1f
mov ecx, edi
shr eax, cl
mov ecx, dword [esp + 0xb4]
add ecx, 4
push 2
lea esi, [ecx + eax*4]
push esi
push ebp
call fcn.004e4d00
movzx eax, byte [esi + 2]
mov ecx, dword [esp + 0x44]
add ecx, eax
movzx eax, byte [esi + 3]
mov dword [esp + 0x44], ecx
add ebp, eax
mov eax, dword [esp + 0x40]
and ecx, 0x1f
shl eax, cl
mov ecx, edi
shr eax, cl
mov ecx, dword [esp + 0xc0]
add ecx, 4
push 2
lea esi, [ecx + eax*4]
push esi
push ebp
call fcn.004e4d00
movzx eax, byte [esi + 2]
add esp, 0x18
mov edx, dword [esp + 0x38]
add edx, eax
movzx eax, byte [esi + 3]
mov dword [esp + 0x38], edx
add ebp, eax
jmp 0x4c9b1e
mov edx, dword [esp + 0x38]
cmp edx, ebx
jbe 0x4c9c6c
mov esi, 0x530790
mov dword [esp + 0x3c], esi
jmp 0x4c9cd1
mov esi, dword [esp + 0x3c]
cmp esi, dword [esp + 0x44]
jb 0x4c9c83
lea eax, [esp + 0x34]
push eax
call fcn.004c765e
pop ecx
jmp 0x4c9cc9
mov edi, dword [esp + 0x40]
cmp esi, edi
je 0x4c9cd5
mov ecx, edx
mov eax, esi
shr ecx, 3
sub eax, ecx
cmp eax, edi
jae 0x4c9c9c
mov ecx, esi
sub ecx, edi
imul eax, ecx, 0xfffffff8
sub esi, ecx
push 4
push esi
mov dword [esp + 0x44], esi
add edx, eax
lea eax, [esp + 0x90]
push eax
mov dword [esp + 0x44], edx
call fcn.004e4d00
mov eax, dword [esp + 0x94]
add esp, 0xc
mov dword [esp + 0x34], eax
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
mov ecx, dword [esp + 0x18]
mov eax, ecx
sub eax, ebp
cmp eax, 2
jb 0x4c9e24
lea eax, [ecx - 2]
mov dword [esp + 0x1c], eax
cmp edx, ebx
jbe 0x4c9cfe
push 3
mov dword [esp + 0x40], 0x530790
pop edi
jmp 0x4c9d70
cmp esi, dword [esp + 0x44]
jb 0x4c9d13
lea eax, [esp + 0x34]
push eax
call fcn.004c765e
pop ecx
mov edi, eax
jmp 0x4c9d6c
cmp esi, edi
jne 0x4c9d20
cmp edx, ebx
sbb edi, edi
add edi, 2
jmp 0x4c9d70
and dword [esp + 0x70], 0
mov ecx, edx
shr ecx, 3
mov eax, esi
sub eax, ecx
cmp eax, edi
jae 0x4c9d3b
mov ecx, esi
sub ecx, edi
xor edi, edi
inc edi
jmp 0x4c9d3f
mov edi, dword [esp + 0x70]
imul eax, ecx, 0xfffffff8
sub esi, ecx
push 4
push esi
mov dword [esp + 0x44], esi
add edx, eax
lea eax, [esp + 0x88]
push eax
mov dword [esp + 0x44], edx
call fcn.004e4d00
mov eax, dword [esp + 0x8c]
add esp, 0xc
mov dword [esp + 0x34], eax
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x1c]
cmp esi, ebp
sbb ecx, ecx
xor eax, eax
inc ecx
test edi, edi
sete al
test eax, ecx
je 0x4c9dd4
mov eax, dword [esp + 0x34]
and edx, 0x1f
mov ecx, edx
shl eax, cl
mov ecx, dword [esp + 0x14]
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 ebp
call fcn.004e4d00
movzx eax, byte [esi + 2]
add esp, 0xc
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x40]
add edx, eax
movzx eax, byte [esi + 3]
mov esi, dword [esp + 0x3c]
add ebp, eax
mov dword [esp + 0x38], edx
jmp 0x4c9ced
cmp ebp, esi
ja 0x4c9e24
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0xb4]
neg ebx
and ebx, 0x1f
mov eax, dword [esp + 0x34]
and edx, 0x1f
mov ecx, edx
shl eax, cl
mov ecx, ebx
shr eax, cl
inc eax
push 2
lea esi, [edi + eax*4]
push esi
push ebp
call fcn.004e4d00
movzx eax, byte [esi + 2]
add esp, 0xc
mov edx, dword [esp + 0x38]
add edx, eax
movzx eax, byte [esi + 3]
add ebp, eax
mov dword [esp + 0x38], edx
cmp ebp, dword [esp + 0x1c]
jbe 0x4c9de8
push 0x20
pop ebx
mov edi, dword [esp + 0x14]
cmp ebp, dword [esp + 0x18]
jae 0x4c9e82
mov eax, dword [esp + 0x34]
and edx, 0x1f
mov ecx, edx
shl eax, cl
mov ecx, edi
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 ebp
call fcn.004e4d00
add esp, 0xc
cmp byte [esi + 3], 1
jne 0x4c9e6b
movzx eax, byte [esi + 2]
add dword [esp + 0x38], eax
jmp 0x4c9e82
mov ecx, dword [esp + 0x38]
cmp ecx, ebx
jae 0x4c9e82
movzx eax, byte [esi + 2]
add ecx, eax
cmp ecx, ebx
cmova ecx, ebx
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0x78]
mov eax, edx
mov ebp, dword [esp + 0x74]
sub eax, ebp
cmp eax, 4
jb 0x4c9fd4
add edx, 0xfffffffd
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x24]
cmp edx, ebx
jbe 0x4c9eb9
mov esi, 0x530790
mov dword [esp + 0x18], 3
mov dword [esp + 0x28], esi
jmp 0x4c9f36
mov esi, dword [esp + 0x28]
cmp esi, dword [esp + 0x30]
jb 0x4c9ed4
lea eax, [esp + 0x20]
push eax
call fcn.004c765e
pop ecx
mov dword [esp + 0x18], eax
jmp 0x4c9f2e
mov edi, dword [esp + 0x2c]
cmp esi, edi
jne 0x4c9ee9
cmp edx, ebx
sbb eax, eax
add eax, 2
mov dword [esp + 0x18], eax
jmp 0x4c9f3a
and dword [esp + 0x18], 0
mov ecx, edx
shr ecx, 3
mov eax, esi
sub eax, ecx
cmp eax, edi
jae 0x4c9f07
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 + 0x30], esi
add edx, eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x30], edx
call fcn.004e4d00
mov eax, dword [esp + 0x28]
add esp, 0xc
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
cmp ebp, dword [esp + 0x70]
sbb ecx, ecx
xor eax, eax
neg ecx
cmp dword [esp + 0x18], eax
sete al
test eax, ecx
je 0x4ca04a
mov edi, dword [esp + 0x14]
and edx, 0x1f
mov eax, dword [esp + 0x20]
mov ecx, edx
shl eax, cl
neg edi
and edi, 0x1f
mov ecx, edi
shr eax, cl
mov ecx, dword [esp + 0xb4]
add ecx, 4
push 2
lea esi, [ecx + eax*4]
push esi
push ebp
call fcn.004e4d00
movzx eax, byte [esi + 2]
mov ecx, dword [esp + 0x30]
add ecx, eax
movzx eax, byte [esi + 3]
mov dword [esp + 0x30], ecx
add ebp, eax
mov eax, dword [esp + 0x2c]
and ecx, 0x1f
shl eax, cl
mov ecx, edi
shr eax, cl
mov ecx, dword [esp + 0xc0]
add ecx, 4
push 2
lea esi, [ecx + eax*4]
push esi
push ebp
call fcn.004e4d00
movzx eax, byte [esi + 2]
add esp, 0x18
mov edx, dword [esp + 0x24]
add edx, eax
movzx eax, byte [esi + 3]
mov dword [esp + 0x24], edx
add ebp, eax
jmp 0x4c9ea2
mov edx, dword [esp + 0x24]
cmp edx, ebx
jbe 0x4c9fe7
mov esi, 0x530790
mov dword [esp + 0x28], esi
jmp 0x4ca046
mov esi, dword [esp + 0x28]
cmp esi, dword [esp + 0x30]
jb 0x4c9ffe
lea eax, [esp + 0x20]
push eax
call fcn.004c765e
pop ecx
jmp 0x4ca03e
mov edi, dword [esp + 0x2c]
cmp esi, edi
je 0x4ca04a
mov ecx, edx
mov eax, esi
shr ecx, 3
sub eax, ecx
cmp eax, edi
jae 0x4ca017
mov ecx, esi
sub ecx, edi
imul eax, ecx, 0xfffffff8
sub esi, ecx
push 4
push esi
mov dword [esp + 0x30], esi
add edx, eax
lea eax, [esp + 0x78]
push eax
mov dword [esp + 0x30], edx
call fcn.004e4d00
mov eax, dword [esp + 0x7c]
add esp, 0xc
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x78]
sub eax, ebp
cmp eax, 2
jb 0x4ca195
cmp edx, ebx
jbe 0x4ca06a
push 3
mov dword [esp + 0x2c], 0x530790
pop edi
jmp 0x4ca0d9
cmp esi, dword [esp + 0x30]
jb 0x4ca07f
lea eax, [esp + 0x20]
push eax
call fcn.004c765e
pop ecx
mov edi, eax
jmp 0x4ca0d5
cmp esi, edi
jne 0x4ca08c
cmp edx, ebx
sbb edi, edi
add edi, 2
jmp 0x4ca0d9
and dword [esp + 0x18], 0
mov ecx, edx
shr ecx, 3
mov eax, esi
sub eax, ecx
cmp eax, edi
jae 0x4ca0a7
mov ecx, esi
sub ecx, edi
xor edi, edi
inc edi
jmp 0x4ca0ab
mov edi, dword [esp + 0x18]
imul eax, ecx, 0xfffffff8
sub esi, ecx
push 4
push esi
mov dword [esp + 0x30], esi
add edx, eax
lea eax, [esp + 0x7c]
push eax
mov dword [esp + 0x30], edx
call fcn.004e4d00
mov eax, dword [esp + 0x80]
add esp, 0xc
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x78]
add esi, 0xfffffffe
cmp esi, ebp
sbb ecx, ecx
xor eax, eax
inc ecx
test edi, edi
sete al
test eax, ecx
je 0x4ca140
mov eax, dword [esp + 0x20]
and edx, 0x1f
mov ecx, edx
shl eax, cl
mov ecx, dword [esp + 0x14]
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 ebp
call fcn.004e4d00
movzx eax, byte [esi + 2]
add esp, 0xc
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x2c]
add edx, eax
movzx eax, byte [esi + 3]
mov esi, dword [esp + 0x28]
add ebp, eax
mov dword [esp + 0x24], edx
jmp 0x4ca059
cmp ebp, esi
ja 0x4ca195
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0xb4]
neg ebx
and ebx, 0x1f
mov eax, dword [esp + 0x20]
and edx, 0x1f
mov ecx, edx
shl eax, cl
mov ecx, ebx
shr eax, cl
inc eax
push 2
lea esi, [edi + eax*4]
push esi
push ebp
call fcn.004e4d00
movzx eax, byte [esi + 2]
add esp, 0xc
mov edx, dword [esp + 0x24]
add edx, eax
movzx eax, byte [esi + 3]
add ebp, eax
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x78]
add eax, 0xfffffffe
cmp ebp, eax
jbe 0x4ca154
push 0x20
pop ebx
mov edi, dword [esp + 0x14]
cmp ebp, dword [esp + 0x78]
jae 0x4ca1f3
mov eax, dword [esp + 0x20]
and edx, 0x1f
mov ecx, edx
neg edi
shl eax, cl
and edi, 0x1f
mov ecx, edi
shr eax, cl
mov ecx, dword [esp + 0xb4]
add ecx, 4
push 1
lea esi, [ecx + eax*4]
push esi
push ebp
call fcn.004e4d00
add esp, 0xc
cmp byte [esi + 3], 1
jne 0x4ca1dc
movzx eax, byte [esi + 2]
add dword [esp + 0x24], eax
jmp 0x4ca1f3
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
jae 0x4ca1f3
movzx eax, byte [esi + 2]
add ecx, eax
cmp ecx, ebx
cmova ecx, ebx
mov dword [esp + 0x24], ecx
lea eax, [esp + 0x20]
push eax
call fcn.004c750a
mov edx, eax
lea eax, [esp + 0x38]
push eax
call fcn.004c750a
and edx, eax
lea eax, [esp + 0x50]
push eax
call fcn.004c750a
and edx, eax
lea eax, [esp + 0x68]
push eax
call fcn.004c750a
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