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

Disassembly:
sub esp, 0x90
push ebx
mov ebx, dword [esp + 0xa4]
cmp ebx, 0xa
jae 0x4c8d33
push 0xffffffffffffffec
pop eax
jmp 0x4c9fc6
mov eax, dword [esp + 0x9c]
cmp eax, 6
jb 0x4c8d2b
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.004cad77
movzx edi, ax
lea eax, [esi + 2]
push eax
mov dword [esp + 0x94], edi
call fcn.004cad77
movzx eax, ax
mov dword [esp + 0x18], eax
lea eax, [esi + 4]
push eax
call fcn.004cad77
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.004c3bfe
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 0x4c9162
mov ecx, dword [esp + 0x18]
cmp ecx, dword [esp + 0x78]
ja 0x4c9162
push dword [esp + 0x8c]
lea eax, [esp + 0x60]
push dword [esp + 0x94]
push eax
call fcn.004c72b3
add esp, 0xc
cmp eax, 0xffffff88
ja 0x4c9fc3
push dword [esp + 0x10]
lea eax, [esp + 0x4c]
push dword [esp + 0xa0]
push eax
call fcn.004c72b3
add esp, 0xc
cmp eax, 0xffffff88
ja 0x4c9fc3
push dword [esp + 0x84]
lea eax, [esp + 0x38]
push dword [esp + 0x9c]
push eax
call fcn.004c72b3
add esp, 0xc
cmp eax, 0xffffff88
ja 0x4c9fc3
push dword [esp + 0x94]
mov eax, dword [esp + 0x88]
add eax, dword [esp + 0x9c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004c72b3
add esp, 0xc
cmp eax, 0xffffff88
ja 0x4c9fc3
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x18]
sub eax, ecx
cmp eax, 4
jb 0x4c914a
cmp ecx, dword [esp + 0x7c]
jae 0x4c914a
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.004e4a90
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.004e4a90
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.004e4a90
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.004e4a90
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.004e4a90
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.004e4a90
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.004e4a90
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.004e4a90
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.004c73d6
neg eax
sbb esi, esi
lea eax, [esp + 0x50]
push eax
inc esi
call fcn.004c73d6
neg eax
sbb edi, edi
lea eax, [esp + 0x68]
inc edi
push eax
and edi, esi
call fcn.004c73d6
neg eax
sbb esi, esi
lea eax, [esp + 0x80]
inc esi
and esi, edi
push eax
call fcn.004c73d6
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 0x4c8ef8
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], ebx
mov edx, dword [esp + 0x88]
cmp ebp, edx
ja 0x4c9162
cmp ebx, dword [esp + 0x80]
ja 0x4c9162
cmp edi, ecx
jbe 0x4c916a
push 0xffffffffffffffec
pop eax
jmp 0x4c9fc3
mov eax, edx
sub eax, ebp
push 0x20
pop ebx
cmp eax, 4
jb 0x4c92c6
add edx, 0xfffffffd
mov dword [esp + 0x90], edx
mov edx, dword [esp + 0x60]
cmp edx, ebx
jbe 0x4c91a2
mov esi, 0x5306d0
mov dword [esp + 0x10], 3
mov dword [esp + 0x64], esi
jmp 0x4c9225
mov esi, dword [esp + 0x64]
cmp esi, dword [esp + 0x6c]
jb 0x4c91bd
lea eax, [esp + 0x5c]
push eax
call fcn.004c73ee
pop ecx
mov dword [esp + 0x10], eax
jmp 0x4c921d
mov edi, dword [esp + 0x68]
cmp esi, edi
jne 0x4c91d2
cmp edx, ebx
sbb eax, eax
add eax, 2
mov dword [esp + 0x10], eax
jmp 0x4c9229
and dword [esp + 0x10], 0
mov ecx, edx
shr ecx, 3
mov eax, esi
sub eax, ecx
cmp eax, edi
jae 0x4c91f0
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.004e4a90
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 0x4c9342
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.004e4a90
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.004e4a90
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 0x4c9188
mov edx, dword [esp + 0x60]
cmp edx, ebx
jbe 0x4c92d9
mov esi, 0x5306d0
mov dword [esp + 0x64], esi
jmp 0x4c933e
mov esi, dword [esp + 0x64]
cmp esi, dword [esp + 0x6c]
jb 0x4c92f0
lea eax, [esp + 0x5c]
push eax
call fcn.004c73ee
pop ecx
jmp 0x4c9336
mov edi, dword [esp + 0x68]
cmp esi, edi
je 0x4c9342
mov ecx, edx
mov eax, esi
shr ecx, 3
sub eax, ecx
cmp eax, edi
jae 0x4c9309
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.004e4a90
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 0x4c949a
lea eax, [ecx - 2]
mov dword [esp + 0x7c], eax
cmp edx, ebx
jbe 0x4c936e
push 3
mov dword [esp + 0x68], 0x5306d0
pop edi
jmp 0x4c93e6
cmp esi, dword [esp + 0x6c]
jb 0x4c9383
lea eax, [esp + 0x5c]
push eax
call fcn.004c73ee
pop ecx
mov edi, eax
jmp 0x4c93e2
cmp esi, edi
jne 0x4c9390
cmp edx, ebx
sbb edi, edi
add edi, 2
jmp 0x4c93e6
and dword [esp + 0x8c], 0
mov ecx, edx
shr ecx, 3
mov eax, esi
sub eax, ecx
cmp eax, edi
jae 0x4c93ae
mov ecx, esi
sub ecx, edi
xor edi, edi
inc edi
jmp 0x4c93b5
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.004e4a90
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 0x4c944a
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.004e4a90
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 0x4c935d
cmp ebp, esi
ja 0x4c949a
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.004e4a90
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 0x4c945e
push 0x20
pop ebx
mov edi, dword [esp + 0x14]
cmp ebp, dword [esp + 0x88]
jae 0x4c94fb
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.004e4a90
add esp, 0xc
cmp byte [esi + 3], 1
jne 0x4c94e4
movzx eax, byte [esi + 2]
add dword [esp + 0x60], eax
jmp 0x4c94fb
mov ecx, dword [esp + 0x60]
cmp ecx, ebx
jae 0x4c94fb
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 0x4c9659
add edx, 0xfffffffd
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x4c]
cmp edx, ebx
jbe 0x4c9538
mov esi, 0x5306d0
mov dword [esp + 0x10], 3
mov dword [esp + 0x50], esi
jmp 0x4c95bb
mov esi, dword [esp + 0x50]
cmp esi, dword [esp + 0x58]
jb 0x4c9553
lea eax, [esp + 0x48]
push eax
call fcn.004c73ee
pop ecx
mov dword [esp + 0x10], eax
jmp 0x4c95b3
mov edi, dword [esp + 0x54]
cmp esi, edi
jne 0x4c9568
cmp edx, ebx
sbb eax, eax
add eax, 2
mov dword [esp + 0x10], eax
jmp 0x4c95bf
and dword [esp + 0x10], 0
mov ecx, edx
shr ecx, 3
mov eax, esi
sub eax, ecx
cmp eax, edi
jae 0x4c9586
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.004e4a90
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 0x4c96d5
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.004e4a90
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.004e4a90
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 0x4c951e
mov edx, dword [esp + 0x4c]
cmp edx, ebx
jbe 0x4c966c
mov esi, 0x5306d0
mov dword [esp + 0x50], esi
jmp 0x4c96d1
mov esi, dword [esp + 0x50]
cmp esi, dword [esp + 0x58]
jb 0x4c9683
lea eax, [esp + 0x48]
push eax
call fcn.004c73ee
pop ecx
jmp 0x4c96c9
mov edi, dword [esp + 0x54]
cmp esi, edi
je 0x4c96d5
mov ecx, edx
mov eax, esi
shr ecx, 3
sub eax, ecx
cmp eax, edi
jae 0x4c969c
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.004e4a90
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 0x4c982d
lea eax, [ecx - 2]
mov dword [esp + 0x1c], eax
cmp edx, ebx
jbe 0x4c9701
push 3
mov dword [esp + 0x54], 0x5306d0
pop edi
jmp 0x4c9779
cmp esi, dword [esp + 0x58]
jb 0x4c9716
lea eax, [esp + 0x48]
push eax
call fcn.004c73ee
pop ecx
mov edi, eax
jmp 0x4c9775
cmp esi, edi
jne 0x4c9723
cmp edx, ebx
sbb edi, edi
add edi, 2
jmp 0x4c9779
and dword [esp + 0x84], 0
mov ecx, edx
shr ecx, 3
mov eax, esi
sub eax, ecx
cmp eax, edi
jae 0x4c9741
mov ecx, esi
sub ecx, edi
xor edi, edi
inc edi
jmp 0x4c9748
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.004e4a90
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 0x4c97dd
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.004e4a90
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 0x4c96f0
cmp ebp, esi
ja 0x4c982d
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.004e4a90
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 0x4c97f1
push 0x20
pop ebx
mov edi, dword [esp + 0x14]
cmp ebp, dword [esp + 0x80]
jae 0x4c988e
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.004e4a90
add esp, 0xc
cmp byte [esi + 3], 1
jne 0x4c9877
movzx eax, byte [esi + 2]
add dword [esp + 0x4c], eax
jmp 0x4c988e
mov ecx, dword [esp + 0x4c]
cmp ecx, ebx
jae 0x4c988e
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 0x4c99e9
add edx, 0xfffffffd
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x38]
cmp edx, ebx
jbe 0x4c98c8
mov esi, 0x5306d0
mov dword [esp + 0x10], 3
mov dword [esp + 0x3c], esi
jmp 0x4c994b
mov esi, dword [esp + 0x3c]
cmp esi, dword [esp + 0x44]
jb 0x4c98e3
lea eax, [esp + 0x34]
push eax
call fcn.004c73ee
pop ecx
mov dword [esp + 0x10], eax
jmp 0x4c9943
mov edi, dword [esp + 0x40]
cmp esi, edi
jne 0x4c98f8
cmp edx, ebx
sbb eax, eax
add eax, 2
mov dword [esp + 0x10], eax
jmp 0x4c994f
and dword [esp + 0x10], 0
mov ecx, edx
shr ecx, 3
mov eax, esi
sub eax, ecx
cmp eax, edi
jae 0x4c9916
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.004e4a90
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 0x4c9a65
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.004e4a90
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.004e4a90
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 0x4c98ae
mov edx, dword [esp + 0x38]
cmp edx, ebx
jbe 0x4c99fc
mov esi, 0x5306d0
mov dword [esp + 0x3c], esi
jmp 0x4c9a61
mov esi, dword [esp + 0x3c]
cmp esi, dword [esp + 0x44]
jb 0x4c9a13
lea eax, [esp + 0x34]
push eax
call fcn.004c73ee
pop ecx
jmp 0x4c9a59
mov edi, dword [esp + 0x40]
cmp esi, edi
je 0x4c9a65
mov ecx, edx
mov eax, esi
shr ecx, 3
sub eax, ecx
cmp eax, edi
jae 0x4c9a2c
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.004e4a90
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 0x4c9bb4
lea eax, [ecx - 2]
mov dword [esp + 0x1c], eax
cmp edx, ebx
jbe 0x4c9a8e
push 3
mov dword [esp + 0x40], 0x5306d0
pop edi
jmp 0x4c9b00
cmp esi, dword [esp + 0x44]
jb 0x4c9aa3
lea eax, [esp + 0x34]
push eax
call fcn.004c73ee
pop ecx
mov edi, eax
jmp 0x4c9afc
cmp esi, edi
jne 0x4c9ab0
cmp edx, ebx
sbb edi, edi
add edi, 2
jmp 0x4c9b00
and dword [esp + 0x70], 0
mov ecx, edx
shr ecx, 3
mov eax, esi
sub eax, ecx
cmp eax, edi
jae 0x4c9acb
mov ecx, esi
sub ecx, edi
xor edi, edi
inc edi
jmp 0x4c9acf
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.004e4a90
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 0x4c9b64
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.004e4a90
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 0x4c9a7d
cmp ebp, esi
ja 0x4c9bb4
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.004e4a90
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 0x4c9b78
push 0x20
pop ebx
mov edi, dword [esp + 0x14]
cmp ebp, dword [esp + 0x18]
jae 0x4c9c12
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.004e4a90
add esp, 0xc
cmp byte [esi + 3], 1
jne 0x4c9bfb
movzx eax, byte [esi + 2]
add dword [esp + 0x38], eax
jmp 0x4c9c12
mov ecx, dword [esp + 0x38]
cmp ecx, ebx
jae 0x4c9c12
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 0x4c9d64
add edx, 0xfffffffd
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x24]
cmp edx, ebx
jbe 0x4c9c49
mov esi, 0x5306d0
mov dword [esp + 0x18], 3
mov dword [esp + 0x28], esi
jmp 0x4c9cc6
mov esi, dword [esp + 0x28]
cmp esi, dword [esp + 0x30]
jb 0x4c9c64
lea eax, [esp + 0x20]
push eax
call fcn.004c73ee
pop ecx
mov dword [esp + 0x18], eax
jmp 0x4c9cbe
mov edi, dword [esp + 0x2c]
cmp esi, edi
jne 0x4c9c79
cmp edx, ebx
sbb eax, eax
add eax, 2
mov dword [esp + 0x18], eax
jmp 0x4c9cca
and dword [esp + 0x18], 0
mov ecx, edx
shr ecx, 3
mov eax, esi
sub eax, ecx
cmp eax, edi
jae 0x4c9c97
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.004e4a90
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 0x4c9dda
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.004e4a90
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.004e4a90
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 0x4c9c32
mov edx, dword [esp + 0x24]
cmp edx, ebx
jbe 0x4c9d77
mov esi, 0x5306d0
mov dword [esp + 0x28], esi
jmp 0x4c9dd6
mov esi, dword [esp + 0x28]
cmp esi, dword [esp + 0x30]
jb 0x4c9d8e
lea eax, [esp + 0x20]
push eax
call fcn.004c73ee
pop ecx
jmp 0x4c9dce
mov edi, dword [esp + 0x2c]
cmp esi, edi
je 0x4c9dda
mov ecx, edx
mov eax, esi
shr ecx, 3
sub eax, ecx
cmp eax, edi
jae 0x4c9da7
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.004e4a90
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 0x4c9f25
cmp edx, ebx
jbe 0x4c9dfa
push 3
mov dword [esp + 0x2c], 0x5306d0
pop edi
jmp 0x4c9e69
cmp esi, dword [esp + 0x30]
jb 0x4c9e0f
lea eax, [esp + 0x20]
push eax
call fcn.004c73ee
pop ecx
mov edi, eax
jmp 0x4c9e65
cmp esi, edi
jne 0x4c9e1c
cmp edx, ebx
sbb edi, edi
add edi, 2
jmp 0x4c9e69
and dword [esp + 0x18], 0
mov ecx, edx
shr ecx, 3
mov eax, esi
sub eax, ecx
cmp eax, edi
jae 0x4c9e37
mov ecx, esi
sub ecx, edi
xor edi, edi
inc edi
jmp 0x4c9e3b
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.004e4a90
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 0x4c9ed0
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.004e4a90
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 0x4c9de9
cmp ebp, esi
ja 0x4c9f25
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.004e4a90
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 0x4c9ee4
push 0x20
pop ebx
mov edi, dword [esp + 0x14]
cmp ebp, dword [esp + 0x78]
jae 0x4c9f83
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.004e4a90
add esp, 0xc
cmp byte [esi + 3], 1
jne 0x4c9f6c
movzx eax, byte [esi + 2]
add dword [esp + 0x24], eax
jmp 0x4c9f83
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
jae 0x4c9f83
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.004c729a
mov edx, eax
lea eax, [esp + 0x38]
push eax
call fcn.004c729a
and edx, eax
lea eax, [esp + 0x50]
push eax
call fcn.004c729a
and edx, eax
lea eax, [esp + 0x68]
push eax
call fcn.004c729a
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