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

Disassembly:
sub esp, 0xf4
mov eax, dword [esp + 0x104]
shr dword [esp + 0x100], 2
push ebx
push ebp
mov ecx, dword [eax + 0x10]
push esi
mov esi, dword [esp + 0x104]
mov edx, esi
mov dword [esp + 0xac], ecx
mov ecx, dword [eax + 0x18]
mov eax, dword [eax]
mov dword [esp + 0xfc], ecx
lea ebx, [esi + 0x40]
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 0x24]
push edi
lea edi, [esi + 0x20]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x44]
cmovle edx, edi
cmovle edi, esi
mov esi, ebx
mov ebp, edi
cmp dword [edx + 4], eax
mov eax, dword [edi + 4]
cmovle ebx, edx
cmovg esi, edx
mov dword [esp + 0x8c], esi
mov dword [esp + 0x60], ebx
cmp eax, dword [ebx + 4]
jle 0x46f499
mov ebp, ebx
mov dword [esp + 0x60], edi
mov ebx, edi
mov edx, dword [esp + 0x8c]
mov esi, dword [ebp + 4]
mov edx, dword [edx + 4]
lea ecx, [esi + 0xffff]
sar ecx, 0x10
mov dword [esp + 0x1c], ecx
lea eax, [edx + 0xffff]
sar eax, 0x10
mov dword [esp + 0x9c], eax
cmp ecx, eax
je 0x4710ac
mov ebx, dword [ebx + 4]
sub edx, esi
lea eax, [ebx + 0xffff]
sar eax, 0x10
mov dword [esp + 0x7c], eax
mov eax, edx
cdq
push edx
push eax
push 0x10000
push 0
call fcn.0059bbf0
mov ecx, dword [ebp]
mov edi, eax
mov eax, dword [esp + 0x8c]
mov esi, edx
push esi
push edi
mov dword [esp + 0x60], ecx
mov eax, dword [eax]
sub eax, ecx
cdq
push edx
push eax
call fcn.0059bca0
mov eax, dword [esp + 0x8c]
mov ecx, dword [ebp + 8]
push esi
mov dword [esp + 0xf0], edx
mov eax, dword [eax + 8]
sub eax, ecx
mov dword [esp + 0x30], ecx
cdq
push edi
push edx
push eax
call fcn.0059bca0
mov eax, dword [esp + 0x8c]
mov ecx, dword [ebp + 0xc]
push esi
mov dword [esp + 0xe8], edx
mov eax, dword [eax + 0xc]
sub eax, ecx
mov dword [esp + 0x34], ecx
cdq
push edi
push edx
push eax
call fcn.0059bca0
mov eax, dword [esp + 0x8c]
mov ecx, dword [ebp + 0x10]
push esi
mov dword [esp + 0xe4], edx
mov eax, dword [eax + 0x10]
sub eax, ecx
mov dword [esp + 0x54], ecx
cdq
push edi
push edx
push eax
call fcn.0059bca0
mov eax, dword [esp + 0x8c]
mov ecx, dword [ebp + 0x14]
push esi
mov dword [esp + 0xfc], edx
mov eax, dword [eax + 0x14]
sub eax, ecx
mov dword [esp + 0x58], ecx
cdq
push edi
push edx
push eax
call fcn.0059bca0
mov eax, dword [esp + 0x8c]
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0xf4], edx
mov dword [esp + 0x90], ecx
mov eax, dword [eax + 0x18]
sub eax, ecx
cdq
push esi
push edi
push edx
push eax
call fcn.0059bca0
mov eax, dword [esp + 0x8c]
mov ecx, dword [ebp + 0x1c]
push esi
mov dword [esp + 0xf4], edx
mov eax, dword [eax + 0x1c]
sub eax, ecx
mov dword [esp + 0x9c], ecx
cdq
push edi
push edx
push eax
call fcn.0059bca0
mov esi, dword [ebp + 4]
sub ebx, esi
mov dword [esp + 0xe8], edx
mov eax, ebx
cdq
mov ecx, eax
mov ebx, edx
mov eax, dword [esp + 0xec]
cdq
push ebx
push ecx
mov edi, edx
mov dword [esp + 0x40], ecx
push edi
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x54], eax
call fcn.0059bca0
mov ebp, dword [esp + 0x58]
mov ecx, eax
mov eax, dword [esp + 0x60]
shrd ecx, edx, 0x10
add ecx, ebp
mov ebx, dword [eax]
mov dword [esp + 0x80], ecx
cmp ebx, ecx
je 0x4710ac
mov eax, dword [esp + 0x1c]
shl eax, 0x10
sub eax, esi
cdq
mov ecx, edx
mov dword [esp + 0x14], eax
push ecx
push eax
push edi
push dword [esp + 0x50]
mov dword [esp + 0x28], ecx
call fcn.0059bca0
push dword [esp + 0x18]
shrd eax, edx, 0x10
push dword [esp + 0x18]
add eax, ebp
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0xec]
cdq
mov esi, edx
mov edi, eax
push esi
push edi
call fcn.0059bca0
push dword [esp + 0x18]
shrd eax, edx, 0x10
push dword [esp + 0x18]
add eax, dword [esp + 0x34]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0xe8]
cdq
mov ebp, edx
mov dword [esp + 0x4c], eax
push ebp
push eax
call fcn.0059bca0
push dword [esp + 0x18]
shrd eax, edx, 0x10
push dword [esp + 0x18]
add eax, dword [esp + 0x38]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x100]
cdq
mov ecx, eax
mov eax, edx
push eax
push ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x4c], eax
call fcn.0059bca0
shrd eax, edx, 0x10
add eax, dword [esp + 0x50]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0xf4]
cdq
mov ecx, eax
mov eax, edx
push eax
push ecx
push dword [esp + 0x20]
mov dword [esp + 0x58], ecx
push dword [esp + 0x20]
mov dword [esp + 0x50], eax
call fcn.0059bca0
shrd eax, edx, 0x10
add eax, dword [esp + 0x54]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0xf0]
cdq
mov ecx, eax
mov eax, edx
push eax
push ecx
push dword [esp + 0x20]
mov dword [esp + 0xa0], ecx
push dword [esp + 0x20]
mov dword [esp + 0x98], eax
call fcn.0059bca0
shrd eax, edx, 0x10
add eax, dword [esp + 0x90]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0xe8]
cdq
mov ecx, eax
mov eax, edx
push eax
push ecx
push dword [esp + 0x20]
mov dword [esp + 0x40], ecx
push dword [esp + 0x20]
mov dword [esp + 0x94], eax
call fcn.0059bca0
shrd eax, edx, 0x10
add eax, dword [esp + 0x98]
mov dword [esp + 0x78], eax
mov eax, ebx
sub eax, dword [esp + 0x80]
cdq
push edx
push eax
push 0x10000
push 0
call fcn.0059bbf0
push dword [esp + 0x10]
mov dword [esp + 0x24], eax
push dword [esp + 0x3c]
mov dword [esp + 0x30], edx
push esi
push edi
call fcn.0059bca0
push dword [esp + 0x28]
mov ecx, eax
mov esi, edx
mov eax, dword [esp + 0x64]
push dword [esp + 0x24]
shrd ecx, esi, 0x10
mov eax, dword [eax + 8]
cdq
mov ebx, eax
sar esi, 0x10
mov eax, dword [esp + 0x34]
sub ebx, ecx
mov edi, edx
cdq
sbb edi, esi
sub ebx, eax
sbb edi, edx
push edi
push ebx
call fcn.0059bca0
push dword [esp + 0x10]
mov dword [esp + 0xb0], edx
push dword [esp + 0x3c]
push ebp
push dword [esp + 0x50]
call fcn.0059bca0
mov ebp, dword [esp + 0x28]
mov ecx, eax
mov eax, dword [esp + 0x60]
mov esi, edx
shrd ecx, esi, 0x10
push ebp
push dword [esp + 0x24]
mov eax, dword [eax + 0xc]
cdq
mov ebx, eax
sar esi, 0x10
mov eax, dword [esp + 0x38]
sub ebx, ecx
mov edi, edx
cdq
sbb edi, esi
sub ebx, eax
sbb edi, edx
push edi
push ebx
call fcn.0059bca0
push dword [esp + 0x10]
mov dword [esp + 0xac], edx
push dword [esp + 0x3c]
push dword [esp + 0x44]
push dword [esp + 0x68]
call fcn.0059bca0
mov ecx, eax
mov esi, edx
mov eax, dword [esp + 0x60]
shrd ecx, esi, 0x10
push ebp
push dword [esp + 0x24]
mov eax, dword [eax + 0x10]
cdq
mov ebx, eax
sar esi, 0x10
mov eax, dword [esp + 0x58]
sub ebx, ecx
mov edi, edx
cdq
sbb edi, esi
sub ebx, eax
sbb edi, edx
push edi
push ebx
call fcn.0059bca0
push dword [esp + 0x40]
mov dword [esp + 0xa8], edx
push dword [esp + 0x50]
push dword [esp + 0x18]
push dword [esp + 0x44]
call fcn.0059bca0
mov ecx, eax
mov esi, edx
mov eax, dword [esp + 0x60]
shrd ecx, esi, 0x10
push ebp
push dword [esp + 0x24]
mov eax, dword [eax + 0x14]
cdq
mov ebx, eax
sar esi, 0x10
mov eax, dword [esp + 0x5c]
sub ebx, ecx
mov edi, edx
cdq
sbb edi, esi
sub ebx, eax
sbb edi, edx
push edi
push ebx
call fcn.0059bca0
push dword [esp + 0x88]
mov dword [esp + 0xa4], edx
push dword [esp + 0x98]
push dword [esp + 0x18]
push dword [esp + 0x44]
call fcn.0059bca0
mov ecx, eax
mov esi, edx
mov eax, dword [esp + 0x60]
shrd ecx, esi, 0x10
push ebp
push dword [esp + 0x24]
mov eax, dword [eax + 0x18]
cdq
mov ebx, eax
sar esi, 0x10
mov eax, dword [esp + 0x98]
sub ebx, ecx
mov edi, edx
cdq
sbb edi, esi
sub ebx, eax
sbb edi, edx
push edi
push ebx
call fcn.0059bca0
push dword [esp + 0x84]
mov dword [esp + 0x98], edx
push dword [esp + 0x38]
push dword [esp + 0x18]
push dword [esp + 0x44]
call fcn.0059bca0
mov ecx, eax
mov esi, edx
mov eax, dword [esp + 0x60]
shrd ecx, esi, 0x10
push ebp
push dword [esp + 0x24]
mov eax, dword [eax + 0x1c]
cdq
mov ebx, eax
sar esi, 0x10
mov eax, dword [esp + 0xa0]
sub ebx, ecx
mov edi, edx
cdq
sbb edi, esi
sub ebx, eax
sbb edi, edx
push edi
push ebx
call fcn.0059bca0
mov ecx, dword [esp + 0x1c]
mov ebx, edx
imul ecx, dword [esp + 0x110]
mov eax, dword [esp + 0x10c]
mov dword [esp + 0x98], ebx
lea eax, [eax + ecx*4]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x7c]
sub eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
je 0x470528
mov eax, dword [esp + 0x60]
push dword [esp + 0x10]
push dword [esp + 0x3c]
mov ebp, dword [eax]
mov eax, ebp
sub eax, dword [esp + 0x60]
cdq
push 0x10000
push 0
mov edi, eax
mov esi, edx
call fcn.0059bbf0
push edx
push eax
push esi
push edi
call fcn.0059bca0
push dword [esp + 0x18]
mov eax, edx
push dword [esp + 0x18]
mov dword [esp + 0x4c], eax
cdq
push edx
push eax
call fcn.0059bca0
mov esi, eax
shrd esi, edx, 0x10
add esi, dword [esp + 0x58]
cmp dword [esp + 0x80], ebp
mov ebp, dword [esp + 0x48]
jge 0x46ff9d
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jle 0x47052c
mov eax, dword [esp + 0xac]
cdq
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x34], edx
cdq
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0xb4], edx
cdq
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0xbc], edx
cdq
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0xc4], edx
cdq
mov dword [esp + 0xd0], eax
mov eax, ebx
mov dword [esp + 0xcc], edx
cdq
mov dword [esp + 0xd8], eax
lea eax, [esi + 0xffff]
mov dword [esp + 0x2c], eax
lea eax, [ebp + 0xffff]
mov dword [esp + 0xd4], edx
mov dword [esp + 0x3c], eax
mov ebx, eax
dec ecx
and ebx, 0xffff0000
mov dword [esp + 0x1c], ecx
mov eax, ebx
sub eax, ebp
cdq
mov esi, edx
mov edi, eax
push esi
push edi
push dword [esp + 0x3c]
push dword [esp + 0x90]
call fcn.0059bca0
push esi
push edi
push dword [esp + 0xbc]
shrd eax, edx, 0x10
push dword [esp + 0xc4]
add eax, dword [esp + 0x74]
mov dword [esp + 0x64], eax
call fcn.0059bca0
push esi
push edi
push dword [esp + 0xc4]
shrd eax, edx, 0x10
push dword [esp + 0xcc]
add eax, dword [esp + 0x78]
mov dword [esp + 0x60], eax
call fcn.0059bca0
push esi
push edi
push dword [esp + 0xcc]
shrd eax, edx, 0x10
push dword [esp + 0xd4]
add eax, dword [esp + 0x7c]
mov dword [esp + 0x38], eax
call fcn.0059bca0
push esi
push edi
push dword [esp + 0xd4]
shrd eax, edx, 0x10
push dword [esp + 0xdc]
add eax, dword [esp + 0x80]
mov dword [esp + 0x40], eax
call fcn.0059bca0
push esi
push edi
push dword [esp + 0xdc]
shrd eax, edx, 0x10
push dword [esp + 0xe4]
add eax, dword [esp + 0x84]
mov dword [esp + 0x50], eax
call fcn.0059bca0
mov edi, eax
mov eax, ebx
shrd edi, edx, 0x10
mov edx, dword [esp + 0x20]
sar eax, 0x10
add edi, 0xffff8000
lea eax, [edx + eax*4]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x2c]
sub eax, ebx
sar eax, 0x10
test eax, eax
jle 0x46ff0f
mov ebp, dword [esp + 0x40]
add edi, dword [esp + 0x78]
add ebp, 0xffff8000
mov dword [esp + 0x5c], edi
mov dword [esp + 0x40], ebp
nop dword [eax + eax]
mov edx, dword [esp + 0xb0]
dec eax
mov dword [esp + 0xdc], eax
test ebp, ebp
jle 0x46fbee
mov ecx, ebp
mov dword [esp + 0x58], ebp
xor ebx, ebx
sar ecx, 0x10
lea eax, [edx - 1]
cmp ecx, eax
setl bl
mov dword [esp + 0x4c], ebx
mov esi, ebx
jmp 0x46fbf6
xor eax, eax
xor esi, esi
mov dword [esp + 0x58], eax
test edi, edi
jle 0x46fc16
mov eax, dword [esp + 0x100]
mov ecx, edi
sar ecx, 0x10
dec eax
xor ebx, ebx
cmp ecx, eax
mov ecx, edi
cmovl ebx, edx
mov dword [esp + 0x14], ebx
jmp 0x46fc1c
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x58]
and edi, 0xfffe
mov ebx, dword [esp + 0x24]
inc edi
sar eax, 0x10
sar ecx, 0x10
imul ecx, edx
mov edx, 0x10000
mov dword [esp + 0x58], edi
add ecx, eax
mov dword [esp + 0x38], ecx
lea eax, [ecx + esi]
mov eax, dword [ebx + eax*4]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
add eax, ecx
mov ecx, dword [ebx + eax*4]
add eax, esi
mov esi, ebp
mov dword [esp + 0x4c], ecx
and esi, 0xfffe
mov ecx, 0x10000
inc esi
sub ecx, edi
mov eax, dword [ebx + eax*4]
sub edx, esi
mov dword [esp + 0x18], eax
mov ebp, edx
mov eax, dword [esp + 0x38]
imul ebp, ecx
imul edi, edx
mov edx, dword [esp + 0x4c]
mov eax, dword [ebx + eax*4]
mov ebx, esi
shr eax, 0x18
imul ebx, ecx
shr ebp, 0x10
imul ebp, eax
mov eax, dword [esp + 0x10]
shr eax, 0x18
shr ebx, 0x10
imul ebx, eax
mov eax, edx
shr eax, 0x18
shr edi, 0x10
imul edi, eax
mov eax, dword [esp + 0x58]
imul eax, esi
shr ebx, 0x10
mov dword [esp + 0x88], ebx
shr edi, 0x10
shr ebp, 0x10
mov esi, eax
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x18]
shr eax, 0x18
shr esi, 0x10
imul esi, eax
mov eax, dword [esp + 0x18]
and eax, 0xff0000
mov dword [esp + 0x4c], edi
shr esi, 0x10
imul eax, esi
mov dword [esp + 0x14], eax
mov eax, edx
and eax, 0xff0000
imul eax, edi
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
and eax, 0xff0000
imul eax, ebx
mov ebx, dword [esp + 0x38]
add ecx, eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + ebx*4]
and eax, 0xff0000
imul eax, ebp
add ecx, eax
and ecx, 0xff0000ff
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x18]
movzx ecx, al
mov ebx, dword [esp + 0x24]
imul ecx, esi
movzx eax, dl
and edx, 0xff00
imul eax, edi
mov edi, dword [esp + 0x38]
imul edx, dword [esp + 0x4c]
add ecx, eax
mov eax, dword [esp + 0x10]
movzx eax, al
imul eax, dword [esp + 0x88]
add ecx, eax
mov eax, dword [ebx + edi*4]
movzx eax, al
imul eax, ebp
add ecx, eax
mov eax, dword [esp + 0x10]
and ecx, 0xff00
and eax, 0xff00
or dword [esp + 0x14], ecx
imul eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x18]
and ecx, 0xff00
imul ecx, esi
add ecx, edx
mov edx, ebx
add ecx, eax
mov eax, dword [edx + edi*4]
mov edx, dword [esp + 0x14]
and eax, 0xff00
imul eax, ebp
add ecx, eax
mov eax, dword [esp + 0x4c]
add eax, esi
and ecx, 0xff0000
add eax, dword [esp + 0x88]
or edx, ecx
add eax, ebp
shr edx, 8
shl eax, 0x18
bswap eax
cmp eax, 8
jbe 0x46fe9d
mov eax, dword [esp + 0x30]
mov esi, edx
shr eax, 0x10
and esi, 0xff00
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x90]
movzx ecx, dl
and edx, 0xff0000
imul ecx, eax
mov eax, dword [esp + 0x50]
shr eax, 0x10
imul edx, eax
shr ebx, 0x10
and ecx, 0xff00
shr edi, 0x10
imul edi, esi
or ecx, edx
shr ecx, 8
mov edx, ecx
movzx eax, cl
mov ecx, dword [ebp]
and edx, 0xff0000
imul eax, ebx
and edi, 0xff0000
imul edx, ebx
bswap edi
imul edi, ebx
mov ebx, 0xff
or edx, eax
mov eax, ecx
and eax, 0xff0000
shr edx, 8
add eax, edx
movzx esi, dl
shr eax, 0x10
and edi, 0xff0000
cmp eax, ebx
mov edx, 0xff
bswap edi
cmovbe ebx, eax
mov eax, ecx
and eax, 0xff00
add eax, edi
shr eax, 8
cmp eax, edx
cmovbe edx, eax
movzx eax, cl
add eax, esi
mov ecx, 0xff
cmp eax, ecx
cmovbe ecx, eax
or ebx, 0xffffff00
shl ebx, 8
or ebx, edx
shl ebx, 8
or ebx, ecx
mov dword [ebp], ebx
jmp 0x46fea4
mov ebp, dword [esp + 0x90]
mov eax, dword [esp + 0xac]
add ebp, 4
add dword [esp + 0x54], eax
mov eax, dword [esp + 0xa8]
add dword [esp + 0x50], eax
mov eax, dword [esp + 0xa4]
add dword [esp + 0x28], eax
mov eax, dword [esp + 0xa0]
mov edi, dword [esp + 0x5c]
add dword [esp + 0x30], eax
mov ebx, dword [esp + 0x98]
add edi, ebx
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x90], ebp
mov ebp, dword [esp + 0x40]
add ebp, dword [esp + 0x94]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x5c], edi
test eax, eax
jg 0x46fbc0
mov ebp, dword [esp + 0x48]
jmp 0x46ff16
mov ebx, dword [esp + 0x98]
mov edx, dword [esp + 0x110]
mov ecx, dword [esp + 0x44]
add dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x3c]
add ebp, dword [esp + 0xec]
lea ecx, [edx*4]
add dword [esp + 0x20], ecx
mov ecx, dword [esp + 0xe4]
add dword [esp + 0x64], ecx
mov ecx, dword [esp + 0xe0]
add dword [esp + 0x68], ecx
mov ecx, dword [esp + 0xf8]
add dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0xf4]
add dword [esp + 0x70], ecx
mov ecx, dword [esp + 0xf0]
add dword [esp + 0x74], ecx
mov ecx, dword [esp + 0xe8]
add dword [esp + 0x78], ecx
add eax, dword [esp + 0xec]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x48], ebp
mov dword [esp + 0x3c], eax
test ecx, ecx
jg 0x46faa2
jmp 0x47052c
jle 0x47052c
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jle 0x47052c
mov eax, dword [esp + 0xac]
cdq
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0xdc], edx
cdq
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0xd4], edx
cdq
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0xcc], edx
cdq
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0xc4], edx
cdq
mov dword [esp + 0xb8], eax
mov eax, ebx
mov dword [esp + 0xbc], edx
cdq
mov dword [esp + 0x34], eax
lea eax, [ebp + 0xffff]
mov dword [esp + 0x58], eax
lea eax, [esi + 0xffff]
mov dword [esp + 0xb4], edx
mov dword [esp + 0x88], eax
push dword [esp + 0xdc]
mov ebx, eax
dec ecx
push dword [esp + 0xdc]
and ebx, 0xffff0000
mov dword [esp + 0x24], ecx
mov eax, ebx
sub eax, ebp
cdq
mov esi, edx
mov edi, eax
push esi
push edi
call fcn.0059bca0
push dword [esp + 0xd4]
shrd eax, edx, 0x10
push dword [esp + 0xd4]
add eax, dword [esp + 0x6c]
push esi
push edi
mov dword [esp + 0x38], eax
call fcn.0059bca0
push dword [esp + 0xcc]
shrd eax, edx, 0x10
push dword [esp + 0xcc]
add eax, dword [esp + 0x70]
push esi
push edi
mov dword [esp + 0x60], eax
call fcn.0059bca0
push dword [esp + 0xc4]
shrd eax, edx, 0x10
push dword [esp + 0xc4]
add eax, dword [esp + 0x74]
push esi
push edi
mov dword [esp + 0x64], eax
call fcn.0059bca0
push dword [esp + 0xbc]
shrd eax, edx, 0x10
push dword [esp + 0xbc]
add eax, dword [esp + 0x78]
push esi
push edi
mov dword [esp + 0xa0], eax
call fcn.0059bca0
push dword [esp + 0xb4]
shrd eax, edx, 0x10
push dword [esp + 0x38]
add eax, dword [esp + 0x7c]
push esi
push edi
mov dword [esp + 0x94], eax
call fcn.0059bca0
mov esi, eax
mov eax, ebx
shrd esi, edx, 0x10
mov edx, dword [esp + 0x20]
sar eax, 0x10
add esi, 0xffff8000
lea eax, [edx + eax*4]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x58]
sub eax, ebx
sar eax, 0x10
test eax, eax
jle 0x47049c
add esi, dword [esp + 0x78]
mov ebp, dword [esp + 0x84]
add ebp, 0xffff8000
mov dword [esp + 0x4c], esi
mov dword [esp + 0x40], ebp
nop dword [eax + eax]
mov edx, dword [esp + 0xb0]
dec eax
mov dword [esp + 0xfc], eax
test ebp, ebp
jle 0x470191
mov ecx, ebp
mov dword [esp + 0x3c], ebp
xor ebx, ebx
sar ecx, 0x10
lea eax, [edx - 1]
cmp ecx, eax
setl bl
mov dword [esp + 0x84], ebx
mov edi, ebx
jmp 0x470199
xor eax, eax
xor edi, edi
mov dword [esp + 0x3c], eax
xor ebx, ebx
test esi, esi
jle 0x4701b9
mov eax, dword [esp + 0x100]
mov ecx, esi
sar ecx, 0x10
dec eax
cmp ecx, eax
cmovl ebx, edx
mov dword [esp + 0x5c], ebx
mov ebx, esi
jmp 0x4701bd
mov dword [esp + 0x5c], ebx
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x24]
sar eax, 0x10
sar ebx, 0x10
imul ebx, edx
add ebx, eax
mov dword [esp + 0x38], ebx
lea eax, [ebx + edi]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x5c]
add eax, ebx
mov ebx, dword [ecx + eax*4]
add eax, edi
mov edi, 0x10000
mov edx, dword [ecx + eax*4]
mov ecx, ebp
and ecx, 0xfffe
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x38]
inc ecx
sub edi, ecx
mov eax, esi
and eax, 0xfffe
mov esi, edi
inc eax
mov ebp, 0x10000
sub ebp, eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
imul edi, dword [esp + 0x10]
imul esi, ebp
imul ebp, ecx
mov eax, dword [eax + edx*4]
shr eax, 0x18
mov edx, dword [esp + 0x2c]
shr esi, 0x10
imul esi, eax
mov eax, dword [esp + 0x18]
shr eax, 0x18
shr ebp, 0x10
imul ebp, eax
mov eax, ebx
shr eax, 0x18
shr edi, 0x10
imul edi, eax
mov eax, dword [esp + 0x10]
imul eax, ecx
shr ebp, 0x10
shr esi, 0x10
shr edi, 0x10
mov dword [esp + 0x10], eax
mov ecx, eax
shr ecx, 0x10
mov eax, edx
shr eax, 0x18
and edx, 0xff00
imul ecx, eax
mov eax, ebx
and eax, 0xff00
imul eax, edi
shr ecx, 0x10
imul edx, ecx
mov dword [esp + 0x10], ecx
mov ecx, edx
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x38]
add ecx, eax
mov eax, dword [esp + 0x18]
and eax, 0xff00
imul eax, ebp
add ecx, eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + edx*4]
and eax, 0xff00
imul eax, esi
add ecx, eax
and ecx, 0xff0000
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x2c]
and ecx, 0xff0000
imul ecx, dword [esp + 0x10]
mov eax, ebx
and eax, 0xff0000
imul eax, edi
add ecx, eax
mov eax, dword [esp + 0x18]
and eax, 0xff0000
imul eax, ebp
add ecx, eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax + edx*4]
mov edx, dword [esp + 0x2c]
and eax, 0xff0000
imul eax, esi
add ecx, eax
movzx eax, bl
mov ebx, dword [esp + 0x24]
and ecx, 0xff0000ff
or dword [esp + 0x14], ecx
imul eax, edi
movzx ecx, dl
imul ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x38]
add ecx, eax
mov eax, dword [esp + 0x18]
movzx eax, al
imul eax, ebp
add ecx, eax
mov eax, dword [ebx + edx*4]
movzx eax, al
imul eax, esi
add ecx, eax
mov eax, dword [esp + 0x14]
and ecx, 0xff00
or eax, ecx
shr eax, 8
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
add eax, edi
add eax, ebp
add eax, esi
shl eax, 0x18
bswap eax
cmp eax, 8
jbe 0x47042d
mov edx, dword [esp + 0x14]
mov esi, edx
mov eax, dword [esp + 0x90]
and esi, 0xff00
shr eax, 0x10
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x30]
movzx ecx, dl
and edx, 0xff0000
imul ecx, eax
mov eax, dword [esp + 0x50]
shr eax, 0x10
imul edx, eax
shr ebx, 0x10
and ecx, 0xff00
shr edi, 0x10
imul edi, esi
or ecx, edx
shr ecx, 8
mov edx, ecx
movzx eax, cl
mov ecx, dword [ebp]
and edx, 0xff0000
imul eax, ebx
and edi, 0xff0000
imul edx, ebx
bswap edi
imul edi, ebx
mov ebx, 0xff
or edx, eax
mov eax, ecx
and eax, 0xff0000
shr edx, 8
add eax, edx
movzx esi, dl
shr eax, 0x10
and edi, 0xff0000
cmp eax, ebx
mov edx, 0xff
bswap edi
cmovbe ebx, eax
mov eax, ecx
and eax, 0xff00
add eax, edi
shr eax, 8
cmp eax, edx
cmovbe edx, eax
movzx eax, cl
add eax, esi
mov ecx, 0xff
cmp eax, ecx
cmovbe ecx, eax
or ebx, 0xffffff00
shl ebx, 8
or ebx, edx
shl ebx, 8
or ebx, ecx
mov dword [ebp], ebx
jmp 0x470431
mov ebp, dword [esp + 0x30]
mov eax, dword [esp + 0xac]
add ebp, 4
add dword [esp + 0x28], eax
mov eax, dword [esp + 0xa8]
add dword [esp + 0x50], eax
mov eax, dword [esp + 0xa4]
add dword [esp + 0x54], eax
mov eax, dword [esp + 0xa0]
mov esi, dword [esp + 0x4c]
add dword [esp + 0x90], eax
mov ebx, dword [esp + 0x98]
add esi, ebx
mov eax, dword [esp + 0xfc]
mov dword [esp + 0x30], ebp
mov ebp, dword [esp + 0x40]
add ebp, dword [esp + 0x94]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x4c], esi
test eax, eax
jg 0x470160
mov ebp, dword [esp + 0x48]
jmp 0x4704a3
mov ebx, dword [esp + 0x98]
mov edx, dword [esp + 0x110]
mov eax, dword [esp + 0xec]
add ebp, eax
add dword [esp + 0x58], eax
mov eax, dword [esp + 0x88]
add eax, dword [esp + 0x44]
lea ecx, [edx*4]
add dword [esp + 0x20], ecx
mov ecx, dword [esp + 0xe4]
add dword [esp + 0x64], ecx
mov ecx, dword [esp + 0xe0]
add dword [esp + 0x68], ecx
mov ecx, dword [esp + 0xf8]
add dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0xf4]
add dword [esp + 0x70], ecx
mov ecx, dword [esp + 0xf0]
add dword [esp + 0x74], ecx
mov ecx, dword [esp + 0xe8]
add dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x48], ebp
mov dword [esp + 0x88], eax
test ecx, ecx
jg 0x470042
jmp 0x47052c
mov ebp, dword [esp + 0x48]
mov eax, dword [esp + 0x7c]
sub dword [esp + 0x9c], eax
je 0x4710ac
mov eax, dword [esp + 0x60]
mov edi, dword [eax + 4]
mov eax, dword [esp + 0x8c]
mov eax, dword [eax + 4]
sub eax, edi
cdq
push edx
push eax
push 0x10000
push 0
call fcn.0059bbf0
mov esi, eax
mov ecx, edx
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0x60]
mov eax, dword [eax]
sub eax, dword [edx]
cdq
push edx
push eax
push ecx
push esi
call fcn.0059bca0
mov eax, dword [esp + 0x7c]
mov ecx, edx
shl eax, 0x10
sub eax, edi
mov dword [esp + 0x4c], ecx
imul ecx
mov ecx, eax
shrd ecx, edx, 0x10
mov edx, dword [esp + 0x60]
mov eax, dword [edx]
add ecx, eax
cmp dword [esp + 0x80], eax
jge 0x470b22
mov esi, dword [esp + 0x9c]
test esi, esi
jle 0x4710ac
mov eax, dword [esp + 0xac]
cdq
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0xfc], edx
cdq
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0xd8], edx
cdq
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0xd0], edx
cdq
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0xc8], edx
cdq
mov dword [esp + 0xbc], eax
mov eax, ebx
mov dword [esp + 0xc0], edx
cdq
mov dword [esp + 0xb4], eax
lea eax, [ecx + 0xffff]
mov dword [esp + 0xb8], edx
mov dword [esp + 0x54], eax
push dword [esp + 0xfc]
lea ebx, [ebp + 0xffff]
dec esi
push dword [esp + 0xe0]
and ebx, 0xffff0000
mov dword [esp + 0xa4], esi
mov eax, ebx
sub eax, ebp
cdq
mov esi, edx
mov edi, eax
push esi
push edi
call fcn.0059bca0
push dword [esp + 0xd8]
mov ebp, eax
push dword [esp + 0xd8]
shrd ebp, edx, 0x10
push esi
add ebp, dword [esp + 0x70]
push edi
mov dword [esp + 0x3c], ebp
call fcn.0059bca0
push dword [esp + 0xd0]
mov ebp, eax
push dword [esp + 0xd0]
shrd ebp, edx, 0x10
push esi
add ebp, dword [esp + 0x74]
push edi
mov dword [esp + 0x40], ebp
call fcn.0059bca0
push dword [esp + 0xc8]
mov ebp, eax
push dword [esp + 0xc8]
shrd ebp, edx, 0x10
push esi
add ebp, dword [esp + 0x78]
push edi
mov dword [esp + 0x38], ebp
call fcn.0059bca0
push dword [esp + 0xc0]
mov ebp, eax
push dword [esp + 0xc0]
shrd ebp, edx, 0x10
push esi
add ebp, dword [esp + 0x7c]
push edi
mov dword [esp + 0x60], ebp
call fcn.0059bca0
push dword [esp + 0xb8]
mov ebp, eax
push dword [esp + 0xb8]
shrd ebp, edx, 0x10
push esi
add ebp, dword [esp + 0x80]
push edi
call fcn.0059bca0
mov esi, eax
mov ecx, ebx
mov eax, dword [esp + 0x54]
shrd esi, edx, 0x10
mov edx, dword [esp + 0x20]
sub eax, ebx
sar ecx, 0x10
add esi, 0xffff8000
sar eax, 0x10
lea ecx, [edx + ecx*4]
mov dword [esp + 0x7c], ecx
test eax, eax
jle 0x470a9d
add esi, dword [esp + 0x78]
lea ebx, [ebp - 0x8000]
mov dword [esp + 0x40], esi
mov dword [esp + 0x5c], ebx
nop
mov edx, dword [esp + 0xb0]
dec eax
mov dword [esp + 0x84], eax
test ebx, ebx
jle 0x470790
mov ecx, ebx
mov dword [esp + 0x44], ebx
lea eax, [edx - 1]
sar ecx, 0x10
xor edi, edi
cmp ecx, eax
mov eax, edi
setl al
mov dword [esp + 0x34], eax
mov edi, eax
jmp 0x470798
xor eax, eax
xor edi, edi
mov dword [esp + 0x44], eax
test esi, esi
jle 0x4707b8
mov eax, dword [esp + 0x100]
mov ecx, esi
sar ecx, 0x10
dec eax
xor ebp, ebp
cmp ecx, eax
mov ecx, esi
cmovl ebp, edx
mov dword [esp + 0x3c], ebp
jmp 0x4707be
xor ecx, ecx
mov dword [esp + 0x3c], ecx
mov eax, dword [esp + 0x44]
sar eax, 0x10
mov ebp, dword [esp + 0x24]
sar ecx, 0x10
imul ecx, edx
add ecx, eax
mov dword [esp + 0x18], ecx
lea eax, [ecx + edi]
mov eax, dword [ebp + eax*4]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x3c]
add eax, ecx
mov ecx, ebx
and ecx, 0xfffe
mov ebx, 0x10000
inc ecx
mov edx, dword [ebp + eax*4]
add eax, edi
mov edi, 0x10000
sub edi, ecx
mov eax, dword [ebp + eax*4]
mov dword [esp + 0x14], eax
mov eax, esi
and eax, 0xfffe
mov esi, edi
inc eax
sub ebx, eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
imul edi, dword [esp + 0x10]
imul esi, ebx
imul ebx, ecx
mov eax, dword [ebp + eax*4]
mov ebp, dword [esp + 0x80]
shr eax, 0x18
shr esi, 0x10
imul esi, eax
mov eax, ebp
shr eax, 0x18
and ebp, 0xff0000
shr ebx, 0x10
imul ebx, eax
mov eax, edx
shr eax, 0x18
shr edi, 0x10
imul edi, eax
mov eax, dword [esp + 0x10]
imul eax, ecx
shr ebx, 0x10
imul ebp, ebx
shr edi, 0x10
shr esi, 0x10
mov dword [esp + 0x10], eax
mov ecx, eax
mov eax, dword [esp + 0x14]
shr eax, 0x18
shr ecx, 0x10
imul ecx, eax
mov eax, dword [esp + 0x14]
and eax, 0xff0000
mov dword [esp + 0x34], ebx
shr ecx, 0x10
imul eax, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], eax
mov eax, edx
mov ecx, dword [esp + 0x1c]
and eax, 0xff0000
imul eax, edi
add ecx, eax
mov eax, dword [esp + 0x24]
add ecx, ebp
mov ebp, dword [esp + 0x18]
mov eax, dword [eax + ebp*4]
and eax, 0xff0000
imul eax, esi
add ecx, eax
mov eax, dword [esp + 0x14]
and ecx, 0xff0000ff
mov dword [esp + 0x1c], ecx
movzx ecx, al
imul ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x24]
movzx eax, dl
and edx, 0xff00
imul eax, edi
imul edx, edi
add ecx, eax
mov eax, dword [esp + 0x80]
movzx eax, al
imul eax, ebx
mov ebx, dword [esp + 0x18]
add ecx, eax
mov eax, dword [ebp + ebx*4]
movzx eax, al
imul eax, esi
add ecx, eax
mov eax, dword [esp + 0x80]
and ecx, 0xff00
and eax, 0xff00
or dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x14]
imul eax, dword [esp + 0x34]
and ecx, 0xff00
imul ecx, dword [esp + 0x10]
add ecx, edx
mov edx, ebp
add ecx, eax
mov ebp, ebx
mov eax, dword [edx + ebp*4]
mov edx, dword [esp + 0x1c]
and eax, 0xff00
imul eax, esi
add ecx, eax
mov eax, dword [esp + 0x10]
add eax, edi
and ecx, 0xff0000
add eax, dword [esp + 0x34]
or edx, ecx
add eax, esi
shr edx, 8
shl eax, 0x18
bswap eax
cmp eax, 8
jbe 0x470a39
mov eax, dword [esp + 0x50]
mov esi, edx
shr eax, 0x10
and esi, 0xff00
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x7c]
movzx ecx, dl
and edx, 0xff0000
imul ecx, eax
mov eax, dword [esp + 0x30]
shr eax, 0x10
imul edx, eax
shr ebx, 0x10
and ecx, 0xff00
shr edi, 0x10
imul edi, esi
or ecx, edx
shr ecx, 8
mov edx, ecx
movzx eax, cl
mov ecx, dword [ebp]
and edx, 0xff0000
imul eax, ebx
and edi, 0xff0000
imul edx, ebx
bswap edi
imul edi, ebx
mov ebx, 0xff
or edx, eax
mov eax, ecx
and eax, 0xff0000
shr edx, 8
add eax, edx
movzx esi, dl
shr eax, 0x10
and edi, 0xff0000
cmp eax, ebx
mov edx, 0xff
bswap edi
cmovbe ebx, eax
mov eax, ecx
and eax, 0xff00
add eax, edi
shr eax, 8
cmp eax, edx
cmovbe edx, eax
movzx eax, cl
add eax, esi
mov ecx, 0xff
cmp eax, ecx
cmovbe ecx, eax
or ebx, 0xffffff00
shl ebx, 8
or ebx, edx
shl ebx, 8
or ebx, ecx
mov dword [ebp], ebx
jmp 0x470a3d
mov ebp, dword [esp + 0x7c]
mov eax, dword [esp + 0xac]
add ebp, 4
add dword [esp + 0x2c], eax
mov eax, dword [esp + 0xa8]
add dword [esp + 0x30], eax
mov eax, dword [esp + 0xa4]
add dword [esp + 0x28], eax
mov eax, dword [esp + 0xa0]
mov ebx, dword [esp + 0x5c]
mov esi, dword [esp + 0x40]
add dword [esp + 0x50], eax
add ebx, dword [esp + 0x94]
add esi, dword [esp + 0x98]
mov eax, dword [esp + 0x84]
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x40], esi
test eax, eax
jg 0x470760
mov ecx, dword [esp + 0x110]
mov eax, dword [esp + 0x4c]
add dword [esp + 0x54], eax
mov ebp, dword [esp + 0x48]
add ebp, dword [esp + 0xec]
lea eax, [ecx*4]
add dword [esp + 0x20], eax
mov eax, dword [esp + 0xe4]
add dword [esp + 0x64], eax
mov eax, dword [esp + 0xe0]
add dword [esp + 0x68], eax
mov eax, dword [esp + 0xf8]
add dword [esp + 0x6c], eax
mov eax, dword [esp + 0xf4]
add dword [esp + 0x70], eax
mov eax, dword [esp + 0xf0]
add dword [esp + 0x74], eax
mov eax, dword [esp + 0xe8]
add dword [esp + 0x78], eax
mov esi, dword [esp + 0x9c]
mov dword [esp + 0x48], ebp
test esi, esi
jg 0x470640
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
jle 0x4710ac
mov esi, dword [esp + 0x9c]
test esi, esi
jle 0x4710ac
mov eax, dword [esp + 0xac]
cdq
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0xfc], edx
cdq
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0xd8], edx
cdq
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0xd0], edx
cdq
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0xc8], edx
cdq
mov dword [esp + 0xbc], eax
mov eax, ebx
mov dword [esp + 0xc0], edx
cdq
mov dword [esp + 0xb4], eax
lea eax, [ecx + 0xffff]
mov dword [esp + 0xb8], edx
mov dword [esp + 0x88], eax
push dword [esp + 0xfc]
mov ebx, eax
dec esi
push dword [esp + 0xe0]
and ebx, 0xffff0000
mov dword [esp + 0xa4], esi
mov eax, ebx
sub eax, ebp
cdq
mov esi, edx
mov edi, eax
push esi
push edi
call fcn.0059bca0
push dword [esp + 0xd8]
shrd eax, edx, 0x10
push dword [esp + 0xd8]
add eax, dword [esp + 0x6c]
push esi
push edi
mov dword [esp + 0x8c], eax
call fcn.0059bca0
push dword [esp + 0xd0]
shrd eax, edx, 0x10
push dword [esp + 0xd0]
add eax, dword [esp + 0x70]
push esi
push edi
mov dword [esp + 0x3c], eax
call fcn.0059bca0
push dword [esp + 0xc8]
shrd eax, edx, 0x10
push dword [esp + 0xc8]
add eax, dword [esp + 0x74]
push esi
push edi
mov dword [esp + 0x40], eax
call fcn.0059bca0
push dword [esp + 0xc0]
shrd eax, edx, 0x10
push dword [esp + 0xc0]
add eax, dword [esp + 0x78]
push esi
push edi
mov dword [esp + 0x38], eax
call fcn.0059bca0
push dword [esp + 0xb8]
shrd eax, edx, 0x10
push dword [esp + 0xb8]
add eax, dword [esp + 0x7c]
push esi
push edi
mov dword [esp + 0x44], eax
call fcn.0059bca0
mov esi, eax
mov ecx, ebx
shrd esi, edx, 0x10
mov edx, dword [esp + 0x20]
mov eax, ebp
sub eax, ebx
sar ecx, 0x10
add eax, 0xffff
add esi, 0xffff8000
sar eax, 0x10
lea ecx, [edx + ecx*4]
mov dword [esp + 0x80], ecx
test eax, eax
jle 0x47102c
add esi, dword [esp + 0x78]
mov ebp, dword [esp + 0x34]
add ebp, 0xffff8000
mov dword [esp + 0x40], esi
mov dword [esp + 0x5c], ebp
nop dword [eax]
nop word [eax + eax]
mov edx, dword [esp + 0xb0]
dec eax
mov dword [esp + 0x84], eax
test ebp, ebp
jle 0x470d1e
mov ecx, ebp
mov dword [esp + 0x44], ebp
xor ebx, ebx
sar ecx, 0x10
lea eax, [edx - 1]
cmp ecx, eax
setl bl
mov dword [esp + 0x34], ebx
mov edi, ebx
jmp 0x470d26
xor eax, eax
xor edi, edi
mov dword [esp + 0x44], eax
xor ebx, ebx
test esi, esi
jle 0x470d46
mov eax, dword [esp + 0x100]
mov ecx, esi
sar ecx, 0x10
dec eax
cmp ecx, eax
cmovl ebx, edx
mov dword [esp + 0x3c], ebx
mov ebx, esi
jmp 0x470d4a
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x24]
sar eax, 0x10
sar ebx, 0x10
imul ebx, edx
add ebx, eax
mov dword [esp + 0x14], ebx
lea eax, [ebx + edi]
mov edx, dword [ecx + eax*4]
mov eax, dword [esp + 0x3c]
add eax, ebx
mov dword [esp + 0x44], edx
mov ebx, dword [ecx + eax*4]
add eax, edi
mov edi, 0x10000
mov eax, dword [ecx + eax*4]
mov ecx, ebp
mov dword [esp + 0x1c], eax
and ecx, 0xfffe
inc ecx
mov eax, esi
and eax, 0xfffe
mov dword [esp + 0x34], ecx
inc eax
sub edi, ecx
mov ecx, dword [esp + 0x14]
mov esi, edi
mov dword [esp + 0x10], eax
mov ebp, 0x10000
imul edi, dword [esp + 0x10]
sub ebp, eax
mov eax, dword [esp + 0x24]
imul esi, ebp
mov eax, dword [eax + ecx*4]
mov ecx, dword [esp + 0x34]
imul ebp, ecx
shr eax, 0x18
shr esi, 0x10
imul esi, eax
mov eax, edx
shr eax, 0x18
and edx, 0xff0000
shr ebp, 0x10
imul ebp, eax
mov eax, ebx
shr eax, 0x18
shr edi, 0x10
imul edi, eax
mov eax, dword [esp + 0x10]
imul eax, ecx
shr ebp, 0x10
imul edx, ebp
shr edi, 0x10
shr esi, 0x10
mov dword [esp + 0x10], eax
mov ecx, eax
mov eax, dword [esp + 0x1c]
shr ecx, 0x10
shr eax, 0x18
imul ecx, eax
mov eax, dword [esp + 0x1c]
and eax, 0xff0000
mov dword [esp + 0x34], ebp
mov dword [esp + 0x3c], edi
shr ecx, 0x10
imul eax, ecx
mov dword [esp + 0x10], ecx
mov ecx, ebx
and ecx, 0xff0000
imul ecx, edi
add eax, ecx
mov ecx, dword [esp + 0x24]
add eax, edx
mov edx, dword [esp + 0x14]
mov ecx, dword [ecx + edx*4]
and ecx, 0xff0000
imul ecx, esi
add eax, ecx
mov ecx, dword [esp + 0x1c]
and eax, 0xff0000ff
movzx edx, cl
imul edx, dword [esp + 0x10]
movzx ecx, bl
and ebx, 0xff00
imul ecx, edi
mov edi, dword [esp + 0x14]
imul ebx, dword [esp + 0x3c]
add edx, ecx
mov ecx, dword [esp + 0x44]
movzx ecx, cl
imul ecx, ebp
mov ebp, dword [esp + 0x24]
add edx, ecx
mov ecx, dword [ebp + edi*4]
movzx ecx, cl
imul ecx, esi
add edx, ecx
mov ecx, dword [esp + 0x1c]
and ecx, 0xff00
and edx, 0xff00
imul ecx, dword [esp + 0x10]
or eax, edx
mov edx, ebp
add ecx, ebx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x44]
mov ebx, dword [esp + 0x1c]
and ecx, 0xff00
imul ecx, dword [esp + 0x34]
add ebx, ecx
mov ecx, dword [edx + edi*4]
and ecx, 0xff00
imul ecx, esi
add ebx, ecx
mov ecx, dword [esp + 0x10]
add ecx, dword [esp + 0x3c]
and ebx, 0xff0000
add ecx, dword [esp + 0x34]
or eax, ebx
add ecx, esi
shr eax, 8
shl ecx, 0x18
bswap ecx
cmp ecx, 8
jbe 0x470fbe
mov ecx, dword [esp + 0x28]
mov esi, eax
movzx edx, al
and esi, 0xff00
mov edi, dword [esp + 0x7c]
and eax, 0xff0000
shr ecx, 0x10
imul edx, ecx
mov ecx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x80]
shr ecx, 0x10
imul eax, ecx
and edx, 0xff00
shr edi, 0x10
mov ecx, dword [ebp]
or edx, eax
shr edx, 8
mov ebx, edx
movzx eax, dl
mov edx, dword [esp + 0x30]
and ebx, 0xff0000
imul eax, edi
shr edx, 0x10
imul edx, esi
imul ebx, edi
and edx, 0xff0000
or ebx, eax
mov eax, ecx
and eax, 0xff0000
shr ebx, 8
add eax, ebx
movzx esi, bl
bswap edx
imul edx, edi
mov edi, 0xff
shr eax, 0x10
and edx, 0xff0000
cmp eax, edi
bswap edx
cmovbe edi, eax
mov eax, ecx
and eax, 0xff00
add eax, edx
mov edx, 0xff
shr eax, 8
cmp eax, edx
cmovbe edx, eax
movzx eax, cl
add eax, esi
mov ecx, 0xff
cmp eax, ecx
cmovbe ecx, eax
or edi, 0xffffff00
shl edi, 8
or edi, edx
shl edi, 8
or edi, ecx
mov dword [ebp], edi
jmp 0x470fc5
mov ebp, dword [esp + 0x80]
mov eax, dword [esp + 0xac]
add ebp, 4
add dword [esp + 0x7c], eax
mov eax, dword [esp + 0xa8]
add dword [esp + 0x2c], eax
mov eax, dword [esp + 0xa4]
add dword [esp + 0x30], eax
mov eax, dword [esp + 0xa0]
mov esi, dword [esp + 0x40]
add dword [esp + 0x28], eax
add esi, dword [esp + 0x98]
mov eax, dword [esp + 0x84]
mov dword [esp + 0x80], ebp
mov ebp, dword [esp + 0x5c]
add ebp, dword [esp + 0x94]
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x40], esi
test eax, eax
jg 0x470cf0
mov ebp, dword [esp + 0x48]
mov edx, dword [esp + 0x110]
mov eax, dword [esp + 0x88]
add ebp, dword [esp + 0xec]
add eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x9c]
lea ecx, [edx*4]
add dword [esp + 0x20], ecx
mov ecx, dword [esp + 0xe4]
add dword [esp + 0x64], ecx
mov ecx, dword [esp + 0xe0]
add dword [esp + 0x68], ecx
mov ecx, dword [esp + 0xf8]
add dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0xf4]
add dword [esp + 0x70], ecx
mov ecx, dword [esp + 0xf0]
add dword [esp + 0x74], ecx
mov ecx, dword [esp + 0xe8]
add dword [esp + 0x78], ecx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x88], eax
test esi, esi
jg 0x470bc3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret