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

Disassembly:
sub esp, 0xe8
shr edx, 2
mov dword [esp + 0xc8], edx
mov edx, dword [ecx + 0x10]
mov dword [esp + 0xd8], edx
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx]
push ebx
push ebp
mov dword [esp + 0xe4], edx
mov edx, dword [eax + 4]
cmp edx, dword [eax + 0x24]
mov dword [esp + 0xe8], ecx
lea ecx, [eax + 0x20]
push esi
lea ebp, [eax + 0x40]
push edi
mov esi, eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0xa4], ebp
jle 0x4c6604
mov esi, ecx
mov dword [esp + 0x30], eax
mov ecx, eax
mov eax, dword [ecx + 4]
cmp eax, dword [ebp + 4]
jle 0x4c661d
mov dword [esp + 0x30], ebp
mov ebp, ecx
mov dword [esp + 0xa4], ecx
mov ecx, dword [esp + 0x30]
mov edx, dword [esi + 4]
cmp edx, dword [ecx + 4]
jle 0x4c662f
mov eax, esi
mov esi, ecx
mov dword [esp + 0x30], eax
mov ecx, eax
mov eax, dword [esi + 4]
lea edx, [eax + 0xffff]
mov eax, dword [ebp + 4]
lea edi, [eax + 0xffff]
sar edx, 0x10
sar edi, 0x10
cmp edx, edi
mov dword [esp + 0x20], edx
mov dword [esp + 0xf4], edi
je 0x4c7adf
mov ecx, dword [ecx + 4]
add ecx, 0xffff
sar ecx, 0x10
mov dword [esp + 0xd0], ecx
mov ecx, dword [esi + 4]
sub eax, ecx
cdq
push edx
push eax
push 0x10000
push 0
call fcn.006372b0
mov ecx, dword [esi]
mov edi, eax
mov eax, dword [ebp]
mov ebx, edx
push ebx
sub eax, ecx
cdq
push edi
push edx
push eax
mov dword [esp + 0x54], ecx
call fcn.0063a250
mov cl, 0x20
call fcn.00643e20
mov dword [esp + 0xe0], eax
mov eax, dword [ebp + 8]
sub eax, dword [esi + 8]
push ebx
cdq
push edi
push edx
push eax
call fcn.0063a250
mov cl, 0x20
call fcn.00643e20
mov dword [esp + 0xcc], eax
mov eax, dword [ebp + 0xc]
sub eax, dword [esi + 0xc]
push ebx
cdq
push edi
push edx
push eax
call fcn.0063a250
mov cl, 0x20
call fcn.00643e20
mov dword [esp + 0xd4], eax
mov eax, dword [ebp + 0x10]
sub eax, dword [esi + 0x10]
push ebx
cdq
push edi
push edx
push eax
call fcn.0063a250
mov cl, 0x20
call fcn.00643e20
mov dword [esp + 0xdc], eax
mov eax, dword [ebp + 0x14]
sub eax, dword [esi + 0x14]
push ebx
cdq
push edi
push edx
push eax
call fcn.0063a250
mov cl, 0x20
call fcn.00643e20
mov dword [esp + 0xe4], eax
mov eax, dword [ebp + 0x18]
sub eax, dword [esi + 0x18]
push ebx
cdq
push edi
push edx
push eax
call fcn.0063a250
mov cl, 0x20
call fcn.00643e20
mov dword [esp + 0xc4], eax
mov eax, dword [ebp + 0x1c]
sub eax, dword [esi + 0x1c]
push ebx
cdq
push edi
push edx
push eax
call fcn.0063a250
mov cl, 0x20
call fcn.00643e20
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 4]
sub eax, dword [esi + 4]
cdq
mov ecx, eax
mov eax, dword [esp + 0xe0]
mov edi, edx
push edi
cdq
push ecx
mov ebp, eax
push edx
push ebp
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x74], edx
call fcn.0063a250
mov cl, 0x10
call fcn.00643e20
add eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx]
cmp ecx, eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x74], ecx
je 0x4c7adf
mov eax, dword [esp + 0x20]
shl eax, 0x10
sub eax, dword [esi + 4]
cdq
mov ebx, edx
mov edx, dword [esp + 0x64]
push ebx
mov edi, eax
push edi
push edx
push ebp
call fcn.0063a250
mov cl, 0x10
call fcn.00643e20
add eax, dword [esp + 0x44]
push ebx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xd0]
cdq
push edi
mov ebp, eax
mov eax, dword [esi + 8]
push edx
push ebp
mov dword [esp + 0xc4], edx
mov dword [esp + 0x24], eax
call fcn.0063a250
mov cl, 0x10
call fcn.00643e20
add eax, dword [esp + 0x14]
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0xd4]
cdq
push ebx
push edi
push edx
push eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], edx
mov dword [esp + 0x28], ecx
call fcn.0063a250
mov cl, 0x10
call fcn.00643e20
add eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0xdc]
cdq
push ebx
push edi
push edx
push eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], edx
mov dword [esp + 0x34], ecx
call fcn.0063a250
mov cl, 0x10
call fcn.00643e20
add eax, dword [esp + 0x24]
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0xe4]
cdq
push ebx
push edi
push edx
push eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], edx
mov dword [esp + 0x2c], ecx
call fcn.0063a250
mov cl, 0x10
call fcn.00643e20
add eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0xc4]
cdq
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edx
push ebx
push edi
push edx
push eax
mov dword [esp + 0x20], ecx
call fcn.0063a250
mov cl, 0x10
call fcn.00643e20
add eax, dword [esp + 0x10]
mov esi, dword [esi + 0x1c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0xc8]
cdq
push ebx
push edi
push edx
push eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], edx
mov dword [esp + 0x80], esi
call fcn.0063a250
mov cl, 0x10
call fcn.00643e20
add eax, esi
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x74]
sub eax, dword [esp + 0x6c]
cdq
push edx
push eax
push 0x10000
push 0
call fcn.006372b0
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x3c]
push edx
mov esi, eax
mov eax, dword [esp + 0x3c]
push eax
push ecx
push ebp
call fcn.0063a250
mov cl, 0x10
call fcn.00643e20
mov ebp, edx
mov edx, dword [esp + 0x30]
mov ecx, eax
mov eax, dword [edx + 8]
cdq
sub eax, ecx
sbb edx, ebp
mov ecx, eax
mov eax, dword [esp + 0x14]
mov ebp, edx
cdq
sub ecx, eax
sbb ebp, edx
mov edx, dword [esp + 0x64]
push edx
push esi
push ebp
push ecx
call fcn.0063a250
mov cl, 0x20
call fcn.00643e20
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x8c]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x8c]
push ecx
push edx
push eax
call fcn.0063a250
mov cl, 0x10
call fcn.00643e20
mov ecx, eax
mov ebp, edx
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0xc]
cdq
sub eax, ecx
sbb edx, ebp
mov ecx, eax
mov eax, dword [esp + 0x18]
mov ebp, edx
cdq
sub ecx, eax
sbb ebp, edx
mov edx, dword [esp + 0x64]
push edx
push esi
push ebp
push ecx
call fcn.0063a250
mov cl, 0x20
call fcn.00643e20
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x94]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x94]
push ecx
push edx
push eax
call fcn.0063a250
mov cl, 0x10
call fcn.00643e20
mov ebp, edx
mov edx, dword [esp + 0x30]
mov ecx, eax
mov eax, dword [edx + 0x10]
cdq
sub eax, ecx
sbb edx, ebp
mov ecx, eax
mov eax, dword [esp + 0x24]
mov ebp, edx
cdq
sub ecx, eax
sbb ebp, edx
mov edx, dword [esp + 0x64]
push edx
push esi
push ebp
push ecx
call fcn.0063a250
mov cl, 0x20
call fcn.00643e20
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x84]
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x84]
push ecx
push edx
push eax
call fcn.0063a250
mov cl, 0x10
call fcn.00643e20
mov ecx, eax
mov ebp, edx
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0x14]
cdq
sub eax, ecx
mov ecx, eax
mov eax, dword [esp + 0x1c]
sbb edx, ebp
mov ebp, edx
cdq
sub ecx, eax
sbb ebp, edx
mov edx, dword [esp + 0x64]
push edx
push esi
push ebp
push ecx
call fcn.0063a250
mov cl, 0x20
call fcn.00643e20
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x7c]
push ecx
push edx
push eax
call fcn.0063a250
mov cl, 0x10
call fcn.00643e20
mov ebp, edx
mov edx, dword [esp + 0x30]
mov ecx, eax
mov eax, dword [edx + 0x18]
cdq
sub eax, ecx
sbb edx, ebp
mov ecx, eax
mov eax, dword [esp + 0x10]
mov ebp, edx
cdq
sub ecx, eax
sbb ebp, edx
mov edx, dword [esp + 0x64]
push edx
push esi
push ebp
push ecx
call fcn.0063a250
mov cl, 0x20
call fcn.00643e20
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0xbc]
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0xbc]
push ecx
push edx
push eax
call fcn.0063a250
mov cl, 0x10
call fcn.00643e20
mov ebp, edx
mov edx, dword [esp + 0x30]
mov ecx, eax
mov eax, dword [edx + 0x1c]
cdq
sub eax, ecx
sbb edx, ebp
mov ecx, eax
mov eax, dword [esp + 0x70]
mov ebp, edx
cdq
sub ecx, eax
sbb ebp, edx
mov edx, dword [esp + 0x64]
push edx
push esi
push ebp
push ecx
call fcn.0063a250
mov cl, 0x20
call fcn.00643e20
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0xfc]
mov dword [esp + 0x70], eax
mov eax, ecx
imul eax, dword [esp + 0xd8]
lea eax, [edx + eax*4]
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0xd0]
sub eax, ecx
mov dword [esp + 0x2c], eax
je 0x4c7312
mov eax, dword [esp + 0x74]
sub eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
cdq
push ecx
mov ebp, edx
mov edx, dword [esp + 0x3c]
push edx
push 0x10000
push 0
mov esi, eax
call fcn.006372b0
push edx
push eax
push ebp
push esi
call fcn.0063a250
mov cl, 0x20
call fcn.00643e20
push ebx
mov dword [esp + 0xb4], eax
cdq
push edi
push edx
push eax
call fcn.0063a250
mov cl, 0x10
call fcn.00643e20
mov edx, dword [esp + 0x6c]
mov ecx, eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
add ecx, dword [esp + 0x44]
cmp edx, eax
jge 0x4c6f77
cmp dword [esp + 0x2c], 0
jle 0x4c7312
mov eax, dword [esp + 0xa8]
cdq
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x3c], edx
cdq
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x7c], edx
cdq
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x84], edx
cdq
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x94], edx
cdq
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x8c], edx
cdq
add ecx, 0xffff
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0xd8]
mov dword [esp + 0x60], eax
lea eax, [edx*4]
add ecx, 0xffff
mov dword [esp + 0x44], eax
mov dword [esp + 0x18], ecx
mov ebx, dword [esp + 0x18]
sub dword [esp + 0x2c], 1
and ebx, 0xffff0000
mov eax, ebx
sub eax, dword [esp + 0x34]
cdq
mov edi, edx
mov edx, dword [esp + 0x3c]
push edi
mov esi, eax
mov eax, dword [esp + 0x3c]
push esi
push edx
push eax
call fcn.0063a250
mov cl, 0x10
call fcn.00643e20
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
push edi
push esi
push ecx
mov ebp, eax
add ebp, dword [esp + 0x64]
push edx
call fcn.0063a250
mov cl, 0x10
call fcn.00643e20
add eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x80]
push edi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x88]
push esi
push eax
push ecx
call fcn.0063a250
mov cl, 0x10
call fcn.00643e20
add eax, dword [esp + 0x54]
mov edx, dword [esp + 0x94]
push edi
push esi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x98]
push edx
push eax
call fcn.0063a250
mov cl, 0x10
call fcn.00643e20
mov ecx, dword [esp + 0x8c]
add eax, dword [esp + 0x48]
mov edx, dword [esp + 0x88]
push edi
push esi
push ecx
push edx
mov dword [esp + 0x2c], eax
call fcn.0063a250
mov cl, 0x10
call fcn.00643e20
add eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x60]
push edi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x68]
push esi
push eax
push ecx
call fcn.0063a250
mov cl, 0x10
call fcn.00643e20
mov esi, eax
add esi, dword [esp + 0x5c]
mov eax, dword [esp + 0xb8]
mov edx, ebx
sar edx, 0x10
lea ecx, [eax + edx*4]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], esi
mov dword [esp + 0x74], ecx
and eax, 0xffff0000
sub eax, ebx
sar eax, 0x10
test eax, eax
jle 0x4c6f00
lea esp, [esp]
mov edx, dword [esp + 0x24]
mov ecx, esi
shr ecx, 0x10
imul ecx, dword [esp + 0xe8]
shr edx, 0x10
add ecx, edx
sub eax, 1
cmp ecx, dword [esp + 0xec]
jae 0x4c6dce
mov edx, dword [esp + 0xf0]
mov edx, dword [edx + ecx*4]
jmp 0x4c6dd0
xor edx, edx
mov ecx, edx
shr ecx, 0x18
cmp ecx, 8
jbe 0x4c6eb8
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
shr edi, 0x10
mov esi, ebp
shr esi, 0x10
imul esi, ecx
mov ecx, edx
and ecx, 0xff0000
imul ecx, edi
movzx edi, dl
and ecx, 0xff0000ff
shr ebx, 0x10
imul edi, ebx
and edx, 0xff00
and edi, 0xff00
or ecx, edi
mov edi, dword [esp + 0x10]
shr edi, 0x10
imul edx, edi
and edx, 0xff0000
or ecx, edx
mov ebx, dword [esp + 0x74]
mov edi, dword [ebx]
shr ecx, 8
mov edx, ecx
and edx, 0xff00ff
and ecx, 0xff00
shr esi, 8
imul edx, esi
imul ecx, esi
shr edx, 8
and edx, 0xff00ff
shr ecx, 8
and ecx, 0xff00
mov esi, edi
and esi, 0xff00ff
add esi, edx
and edi, 0xff00
add edi, ecx
mov ecx, esi
shr ecx, 8
and ecx, 1
mov edx, esi
imul ecx, ecx, 0xff
shr edx, 0x18
and edx, 1
imul edx, edx, 0xffff0000
or ecx, edx
mov edx, edi
shr edx, 0x10
and edx, 1
neg edx
shl edx, 8
or ecx, esi
mov esi, dword [esp + 0x28]
or edx, edi
and ecx, 0xffff00ff
and edx, 0xff00
or ecx, edx
or ecx, 0xff000000
mov dword [ebx], ecx
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0xac]
add dword [esp + 0x20], ecx
add dword [esp + 0x10], edx
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x9c]
add esi, dword [esp + 0x70]
add dword [esp + 0x74], 4
add ebp, dword [esp + 0xa8]
add dword [esp + 0x1c], ecx
add dword [esp + 0x24], edx
test eax, eax
mov dword [esp + 0x28], esi
jg 0x4c6da0
mov eax, dword [esp + 0xe0]
add dword [esp + 0x34], eax
add dword [esp + 0x18], eax
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0x44]
add dword [esp + 0x14], eax
add dword [esp + 0xb8], ecx
mov edx, dword [esp + 0xcc]
mov eax, dword [esp + 0xd4]
mov ecx, dword [esp + 0xdc]
add dword [esp + 0x58], edx
add dword [esp + 0x50], eax
add dword [esp + 0x54], ecx
mov edx, dword [esp + 0xe4]
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0xc8]
add dword [esp + 0x48], edx
add dword [esp + 0x4c], eax
add dword [esp + 0x5c], ecx
cmp dword [esp + 0x2c], 0
jg 0x4c6c84
jmp 0x4c7312
jle 0x4c7312
cmp dword [esp + 0x2c], 0
jle 0x4c7312
mov eax, dword [esp + 0xa8]
cdq
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x3c], edx
cdq
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x7c], edx
cdq
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x84], edx
cdq
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x94], edx
cdq
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x8c], edx
cdq
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0xd8]
mov dword [esp + 0x60], eax
lea eax, [edx*4]
mov edx, dword [esp + 0x34]
add edx, 0xffff
add ecx, 0xffff
mov dword [esp + 0x44], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x74], ecx
mov ebx, dword [esp + 0x74]
mov ecx, dword [esp + 0x38]
sub dword [esp + 0x2c], 1
and ebx, 0xffff0000
mov eax, ebx
sub eax, dword [esp + 0x34]
cdq
mov edi, edx
push edi
mov esi, eax
mov eax, dword [esp + 0x40]
push esi
push eax
push ecx
call fcn.0063a250
mov cl, 0x10
call fcn.00643e20
add eax, dword [esp + 0x58]
mov edx, dword [esp + 0x7c]
push edi
push esi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x80]
push edx
push eax
call fcn.0063a250
mov cl, 0x10
call fcn.00643e20
mov ecx, dword [esp + 0x84]
add eax, dword [esp + 0x50]
mov edx, dword [esp + 0x80]
push edi
push esi
push ecx
push edx
mov dword [esp + 0x28], eax
call fcn.0063a250
mov cl, 0x10
call fcn.00643e20
add eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x90]
push edi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x98]
push esi
push eax
push ecx
call fcn.0063a250
mov cl, 0x10
call fcn.00643e20
add eax, dword [esp + 0x48]
mov edx, dword [esp + 0x8c]
push edi
push esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x90]
push edx
push eax
call fcn.0063a250
mov cl, 0x10
call fcn.00643e20
mov ecx, dword [esp + 0x64]
add eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x60]
push edi
push esi
push ecx
push edx
mov dword [esp + 0x20], eax
call fcn.0063a250
mov cl, 0x10
call fcn.00643e20
mov edx, dword [esp + 0xb8]
mov ebp, dword [esp + 0x20]
mov ecx, eax
add ecx, dword [esp + 0x5c]
mov eax, ebx
sar eax, 0x10
mov dword [esp + 0x28], ecx
lea eax, [edx + eax*4]
and ebp, 0xffff0000
sub ebp, ebx
sar ebp, 0x10
test ebp, ebp
jle 0x4c72a0
jmp 0x4c7140
mov esi, dword [esp + 0x10]
mov edx, ecx
shr edx, 0x10
imul edx, dword [esp + 0xe8]
shr esi, 0x10
add edx, esi
sub ebp, 1
cmp edx, dword [esp + 0xec]
jae 0x4c716e
mov esi, dword [esp + 0xf0]
mov ebx, dword [esi + edx*4]
jmp 0x4c7170
xor ebx, ebx
mov esi, ebx
shr esi, 0x18
cmp esi, 8
jbe 0x4c7256
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
shr edx, 0x10
imul edx, esi
mov esi, dword [esp + 0x18]
shr esi, 0x10
mov ecx, ebx
and ecx, 0xff0000
imul ecx, esi
shr edi, 0x10
and ecx, 0xff0000ff
movzx esi, bl
imul esi, edi
and esi, 0xff00
or ecx, esi
mov esi, dword [esp + 0x24]
shr esi, 0x10
mov edi, dword [eax]
and ebx, 0xff00
imul esi, ebx
and esi, 0xff0000
or ecx, esi
shr ecx, 8
mov esi, ecx
shr edx, 8
and ecx, 0xff00
imul ecx, edx
and esi, 0xff00ff
imul esi, edx
shr ecx, 8
and ecx, 0xff00
shr esi, 8
and esi, 0xff00ff
mov edx, edi
and edx, 0xff00ff
add edx, esi
mov esi, edx
and edi, 0xff00
add edi, ecx
mov ecx, edx
shr ecx, 8
and ecx, 1
shr esi, 0x18
imul ecx, ecx, 0xff
and esi, 1
imul esi, esi, 0xffff0000
or ecx, esi
or ecx, edx
mov edx, edi
shr edx, 0x10
and edx, 1
neg edx
shl edx, 8
or edx, edi
and ecx, 0xffff00ff
and edx, 0xff00
or ecx, edx
or ecx, 0xff000000
mov dword [eax], ecx
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0xa8]
add dword [esp + 0x14], edx
mov edx, dword [esp + 0xa0]
add dword [esp + 0x18], edx
mov edx, dword [esp + 0xac]
add dword [esp + 0x24], edx
mov edx, dword [esp + 0x98]
add dword [esp + 0x1c], edx
mov edx, dword [esp + 0x9c]
add ecx, dword [esp + 0x70]
add dword [esp + 0x10], edx
add eax, 4
test ebp, ebp
mov dword [esp + 0x28], ecx
jg 0x4c7140
mov eax, dword [esp + 0xe0]
add dword [esp + 0x34], eax
add dword [esp + 0x20], eax
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0x44]
add dword [esp + 0x74], eax
add dword [esp + 0xb8], ecx
mov edx, dword [esp + 0xcc]
mov eax, dword [esp + 0xd4]
mov ecx, dword [esp + 0xdc]
add dword [esp + 0x58], edx
add dword [esp + 0x50], eax
add dword [esp + 0x54], ecx
mov edx, dword [esp + 0xe4]
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0xc8]
add dword [esp + 0x48], edx
add dword [esp + 0x4c], eax
add dword [esp + 0x5c], ecx
cmp dword [esp + 0x2c], 0
jg 0x4c7021
mov eax, dword [esp + 0xf4]
mov ebp, dword [esp + 0xd0]
sub eax, ebp
mov dword [esp + 0x2c], eax
je 0x4c7adf
mov eax, dword [esp + 0x30]
mov edi, dword [eax + 4]
mov esi, dword [eax]
mov ebx, dword [esp + 0xa4]
mov eax, dword [ebx + 4]
sub eax, edi
cdq
push edx
push eax
push 0x10000
push 0
call fcn.006372b0
mov ecx, eax
mov eax, edx
mov dword [esp + 0xf4], eax
mov eax, dword [ebx]
sub eax, esi
cdq
push edx
push eax
mov eax, dword [esp + 0xfc]
push eax
push ecx
call fcn.0063a250
mov cl, 0x20
call fcn.00643e20
mov ecx, eax
mov eax, ebp
shl eax, 0x10
sub eax, edi
imul ecx
mov dword [esp + 0xd0], ecx
mov cl, 0x10
call fcn.00643e20
mov ecx, eax
mov eax, dword [esp + 0x6c]
add ecx, esi
cmp eax, esi
jge 0x4c7743
cmp dword [esp + 0x2c], 0
jle 0x4c7adf
mov eax, dword [esp + 0xa8]
cdq
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x3c], edx
cdq
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x7c], edx
cdq
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x84], edx
cdq
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x94], edx
cdq
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x8c], edx
cdq
add ecx, 0xffff
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0xd8]
mov dword [esp + 0x60], eax
lea eax, [edx*4]
add ecx, 0xffff
mov dword [esp + 0x44], eax
mov dword [esp + 0x10], ecx
mov ebx, dword [esp + 0x10]
sub dword [esp + 0x2c], 1
and ebx, 0xffff0000
mov eax, ebx
sub eax, dword [esp + 0x34]
cdq
mov edi, edx
mov edx, dword [esp + 0x3c]
push edi
mov esi, eax
mov eax, dword [esp + 0x3c]
push esi
push edx
push eax
call fcn.0063a250
mov cl, 0x10
call fcn.00643e20
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x78]
push edi
push esi
push ecx
mov ebp, eax
add ebp, dword [esp + 0x64]
push edx
call fcn.0063a250
mov cl, 0x10
call fcn.00643e20
add eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x80]
push edi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x88]
push esi
push eax
push ecx
call fcn.0063a250
mov cl, 0x10
call fcn.00643e20
add eax, dword [esp + 0x54]
mov edx, dword [esp + 0x94]
push edi
push esi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x98]
push edx
push eax
call fcn.0063a250
mov cl, 0x10
call fcn.00643e20
mov ecx, dword [esp + 0x8c]
add eax, dword [esp + 0x48]
mov edx, dword [esp + 0x88]
push edi
push esi
push ecx
push edx
mov dword [esp + 0x34], eax
call fcn.0063a250
mov cl, 0x10
call fcn.00643e20
add eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x60]
push edi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x68]
push esi
push eax
push ecx
call fcn.0063a250
mov cl, 0x10
call fcn.00643e20
mov esi, eax
add esi, dword [esp + 0x5c]
mov eax, dword [esp + 0xb8]
mov edx, ebx
sar edx, 0x10
lea ecx, [eax + edx*4]
mov eax, dword [esp + 0x20]
mov dword [esp + 0xa4], esi
mov dword [esp + 0x6c], ecx
and eax, 0xffff0000
sub eax, ebx
sar eax, 0x10
test eax, eax
jle 0x4c76c6
lea esp, [esp]
mov edx, dword [esp + 0x1c]
mov ecx, esi
shr ecx, 0x10
imul ecx, dword [esp + 0xe8]
shr edx, 0x10
add ecx, edx
sub eax, 1
cmp ecx, dword [esp + 0xec]
jae 0x4c758e
mov edx, dword [esp + 0xf0]
mov edx, dword [edx + ecx*4]
jmp 0x4c7590
xor edx, edx
mov ecx, edx
shr ecx, 0x18
cmp ecx, 8
jbe 0x4c767b
mov edi, dword [esp + 0x24]
mov ebx, edx
shr edi, 0x10
mov esi, ebp
shr esi, 0x10
imul esi, ecx
movzx ecx, dl
imul ecx, edi
mov edi, dword [esp + 0x18]
shr edi, 0x10
and ecx, 0xff00
and ebx, 0xff00
imul edi, ebx
and edx, 0xff0000
and edi, 0xff0000
or ecx, edi
mov edi, dword [esp + 0x14]
shr edi, 0x10
imul edx, edi
and edx, 0xff0000ff
or ecx, edx
mov ebx, dword [esp + 0x6c]
mov edi, dword [ebx]
shr ecx, 8
mov edx, ecx
and edx, 0xff00ff
and ecx, 0xff00
shr esi, 8
imul edx, esi
imul ecx, esi
shr edx, 8
and edx, 0xff00ff
shr ecx, 8
and ecx, 0xff00
mov esi, edi
and esi, 0xff00ff
add esi, edx
and edi, 0xff00
add edi, ecx
mov ecx, esi
shr ecx, 8
and ecx, 1
mov edx, esi
imul ecx, ecx, 0xff
shr edx, 0x18
and edx, 1
imul edx, edx, 0xffff0000
or ecx, edx
mov edx, edi
shr edx, 0x10
and edx, 1
neg edx
shl edx, 8
or ecx, esi
mov esi, dword [esp + 0xa4]
or edx, edi
and ecx, 0xffff00ff
and edx, 0xff00
or ecx, edx
or ecx, 0xff000000
mov dword [ebx], ecx
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0xac]
add dword [esp + 0x14], ecx
add dword [esp + 0x18], edx
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x9c]
add esi, dword [esp + 0x70]
add dword [esp + 0x6c], 4
add ebp, dword [esp + 0xa8]
add dword [esp + 0x24], ecx
add dword [esp + 0x1c], edx
test eax, eax
mov dword [esp + 0xa4], esi
jg 0x4c7560
mov eax, dword [esp + 0xe0]
add dword [esp + 0x34], eax
add dword [esp + 0x10], eax
mov eax, dword [esp + 0xd0]
mov ecx, dword [esp + 0x44]
add dword [esp + 0x20], eax
add dword [esp + 0xb8], ecx
mov edx, dword [esp + 0xcc]
mov eax, dword [esp + 0xd4]
mov ecx, dword [esp + 0xdc]
add dword [esp + 0x58], edx
add dword [esp + 0x50], eax
add dword [esp + 0x54], ecx
mov edx, dword [esp + 0xe4]
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0xc8]
add dword [esp + 0x48], edx
add dword [esp + 0x4c], eax
add dword [esp + 0x5c], ecx
cmp dword [esp + 0x2c], 0
jg 0x4c7444
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe8
ret
jle 0x4c7adf
cmp dword [esp + 0x2c], 0
jle 0x4c7adf
mov eax, dword [esp + 0xa8]
cdq
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x3c], edx
cdq
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x7c], edx
cdq
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x84], edx
cdq
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x94], edx
cdq
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x8c], edx
cdq
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0xd8]
mov dword [esp + 0x60], eax
lea eax, [edx*4]
mov edx, dword [esp + 0x34]
add edx, 0xffff
add ecx, 0xffff
mov dword [esp + 0x44], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], ecx
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x38]
sub dword [esp + 0x2c], 1
and ebx, 0xffff0000
mov eax, ebx
sub eax, dword [esp + 0x34]
cdq
mov edi, edx
push edi
mov esi, eax
mov eax, dword [esp + 0x40]
push esi
push eax
push ecx
call fcn.0063a250
mov cl, 0x10
call fcn.00643e20
add eax, dword [esp + 0x58]
mov edx, dword [esp + 0x7c]
push edi
push esi
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x80]
push edx
push eax
call fcn.0063a250
mov cl, 0x10
call fcn.00643e20
mov ecx, dword [esp + 0x84]
add eax, dword [esp + 0x50]
mov edx, dword [esp + 0x80]
push edi
push esi
push ecx
push edx
mov dword [esp + 0x24], eax
call fcn.0063a250
mov cl, 0x10
call fcn.00643e20
add eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x90]
push edi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x98]
push esi
push eax
push ecx
call fcn.0063a250
mov cl, 0x10
call fcn.00643e20
add eax, dword [esp + 0x48]
mov edx, dword [esp + 0x8c]
push edi
push esi
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x90]
push edx
push eax
call fcn.0063a250
mov cl, 0x10
call fcn.00643e20
mov ecx, dword [esp + 0x64]
add eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x60]
push edi
push esi
push ecx
push edx
mov dword [esp + 0x2c], eax
call fcn.0063a250
mov cl, 0x10
call fcn.00643e20
mov edx, dword [esp + 0xb8]
mov ebp, dword [esp + 0x10]
mov ecx, eax
add ecx, dword [esp + 0x5c]
mov eax, ebx
sar eax, 0x10
mov dword [esp + 0xa4], ecx
lea eax, [edx + eax*4]
and ebp, 0xffff0000
sub ebp, ebx
sar ebp, 0x10
test ebp, ebp
jle 0x4c7a6d
mov esi, dword [esp + 0x1c]
mov edx, ecx
shr edx, 0x10
imul edx, dword [esp + 0xe8]
shr esi, 0x10
add edx, esi
sub ebp, 1
cmp edx, dword [esp + 0xec]
jae 0x4c7935
mov esi, dword [esp + 0xf0]
mov ebx, dword [esi + edx*4]
jmp 0x4c7937
xor ebx, ebx
mov esi, ebx
shr esi, 0x18
cmp esi, 8
jbe 0x4c7a20
mov edx, dword [esp + 0x6c]
mov edi, dword [esp + 0x24]
shr edx, 0x10
imul edx, esi
mov esi, dword [esp + 0x14]
shr esi, 0x10
mov ecx, ebx
and ecx, 0xff0000
imul ecx, esi
shr edi, 0x10
and ecx, 0xff0000ff
movzx esi, bl
imul esi, edi
and esi, 0xff00
or ecx, esi
mov esi, dword [esp + 0x18]
shr esi, 0x10
mov edi, dword [eax]
and ebx, 0xff00
imul esi, ebx
and esi, 0xff0000
or ecx, esi
shr ecx, 8
mov esi, ecx
shr edx, 8
and ecx, 0xff00
imul ecx, edx
and esi, 0xff00ff
imul esi, edx
shr ecx, 8
and ecx, 0xff00
shr esi, 8
and esi, 0xff00ff
mov edx, edi
and edx, 0xff00ff
add edx, esi
mov esi, edx
and edi, 0xff00
add edi, ecx
mov ecx, edx
shr ecx, 8
and ecx, 1
shr esi, 0x18
imul ecx, ecx, 0xff
and esi, 1
imul esi, esi, 0xffff0000
or ecx, esi
or ecx, edx
mov edx, edi
shr edx, 0x10
and edx, 1
neg edx
shl edx, 8
or edx, edi
and ecx, 0xffff00ff
and edx, 0xff00
or ecx, edx
or ecx, 0xff000000
mov dword [eax], ecx
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0xa8]
add dword [esp + 0x6c], edx
mov edx, dword [esp + 0xa0]
add dword [esp + 0x14], edx
mov edx, dword [esp + 0xac]
add dword [esp + 0x18], edx
mov edx, dword [esp + 0x98]
add dword [esp + 0x24], edx
mov edx, dword [esp + 0x9c]
add ecx, dword [esp + 0x70]
add dword [esp + 0x1c], edx
add eax, 4
test ebp, ebp
mov dword [esp + 0xa4], ecx
jg 0x4c7907
mov eax, dword [esp + 0xe0]
add dword [esp + 0x34], eax
add dword [esp + 0x10], eax
mov eax, dword [esp + 0xd0]
mov ecx, dword [esp + 0x44]
add dword [esp + 0x20], eax
add dword [esp + 0xb8], ecx
mov edx, dword [esp + 0xcc]
mov eax, dword [esp + 0xd4]
mov ecx, dword [esp + 0xdc]
add dword [esp + 0x58], edx
add dword [esp + 0x50], eax
add dword [esp + 0x54], ecx
mov edx, dword [esp + 0xe4]
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0xc8]
add dword [esp + 0x48], edx
add dword [esp + 0x4c], eax
add dword [esp + 0x5c], ecx
cmp dword [esp + 0x2c], 0
jg 0x4c77ed
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe8
ret