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

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x98
mov eax, dword [esp + 0xac]
mov esi, dword [eax + 8]
mov edi, dword [eax + 0x44]
mov ecx, dword [esp + 0xb0]
mov edx, dword [esp + 0xc8]
mov eax, dword [edx + 4]
mov dword [esp + 0x60], eax
test edi, edi
je 0x1005171e
lea eax, [ecx + 0x12c]
lea edx, [ecx + 0x188]
jmp 0x10051726
mov eax, ecx
lea edx, [ecx + 0x168]
mov ecx, dword [ecx + 0xec]
cmp ecx, 3
je 0x10052ce4
cmp ecx, 2
je 0x10052950
cmp ecx, 1
je 0x1005174c
cmp ecx, 5
jne 0x10051d30
mov ebx, dword [eax]
mov ebp, dword [eax + 4]
mov eax, dword [edx + 4]
mov dword [esp + 0x44], ebp
mov ebp, dword [edx]
mov dword [esp + 0x3c], eax
test edi, edi
je 0x1005196c
mov eax, ebx
or eax, dword [esp + 0x44]
test al, 3
jne 0x100517d6
mov edi, dword [esp + 0xb4]
mov eax, dword [esp + 0xb8]
lea ecx, [edi + edi]
add ecx, ecx
add ecx, ecx
add ecx, ecx
mov dword [esp + 0x58], ecx
lea edi, [eax + eax]
mov eax, dword [esp + 0xc0]
mov eax, dword [eax]
add edi, edi
add edi, edi
add edi, edi
mov edx, edi
imul edx, esi
add eax, ecx
mov dword [esp + 0x50], edx
add eax, edx
mov edx, ebx
sar edx, 1
shr edx, 0x1e
add edx, ebx
sar edx, 2
add eax, edx
mov edx, dword [esp + 0x44]
mov ecx, edx
sar ecx, 1
shr ecx, 0x1e
add ecx, edx
sar ecx, 2
imul ecx, esi
add eax, ecx
mov dword [esp + 0x54], eax
jmp 0x10051873
mov eax, dword [esp + 0xb4]
mov edi, dword [esp + 0xb8]
mov dword [esp + 0x28], 0
lea edx, [eax + eax]
mov dword [esp + 0x40], ebp
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x1c], ebx
add edx, edx
mov dword [esp + 0x24], esi
add edx, edx
add edx, edx
lea edi, [edi + edi]
add edi, edi
mov dword [esp + 0x58], edx
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x44]
add edi, edi
add edi, edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], edx
mov ecx, edi
imul ecx, esi
mov edx, dword [esp + 0xc0]
mov edx, dword [edx]
mov dword [esp + 0x50], ecx
lea eax, [eax + eax]
add eax, eax
add eax, eax
add eax, eax
neg eax
sub eax, ecx
add eax, ebp
lea ecx, [ebp + 0x20]
mov dword [esp + 0x88], ecx
lea ecx, [ebp + 0x40]
mov dword [esp + 0xc], ecx
lea ecx, [ebp + 0x60]
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x88]
call fcn.100535c8
mov eax, dword [esp + 0x60]
mov dword [esp + 0x54], eax
mov eax, ebp
or eax, dword [esp + 0x3c]
test al, 3
jne 0x100518b3
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0xd0]
mov edi, dword [esp + 0x3c]
mov ecx, ebp
sar ecx, 1
add edx, dword [eax]
add edx, dword [esp + 0x50]
shr ecx, 0x1e
add ecx, ebp
sar ecx, 2
add edx, ecx
mov eax, edi
sar eax, 1
shr eax, 0x1e
add eax, edi
sar eax, 2
imul eax, esi
add edx, eax
jmp 0x10051923
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x28], 0
lea eax, [eax + eax]
add eax, eax
mov dword [esp + 0x48], ebx
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], edi
add eax, eax
add eax, eax
mov dword [esp + 0x24], esi
neg eax
lea ecx, [ebx + 0x20]
lea edx, [ebx + 0x40]
sub eax, dword [esp + 0x50]
mov dword [esp + 0xc], edx
lea eax, [eax + ebx + 0x10]
lea edx, [ebx + 0x60]
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0xd0]
mov edx, dword [edx]
call fcn.100535c8
mov eax, dword [esp + 0x60]
lea edx, [eax + 0x10]
mov eax, edi
mov ecx, dword [esp + 0x44]
add ebp, 0x80000000
adc ebp, 0x80000000
add eax, 0x80000000
adc eax, 0x80000000
sar ebp, 1
add ebx, 0x80000000
adc ebx, 0x80000000
sar eax, 1
add ecx, 0x80000000
adc ecx, 0x80000000
mov dword [esp + 0x3c], eax
sar ebx, 1
sar ecx, 1
mov dword [esp + 0x44], ecx
jmp 0x10051c35
mov edx, dword [esp + 0xc0]
mov eax, dword [esp + 0xc4]
mov edi, dword [esp + 0xc8]
mov edx, dword [edx]
mov ecx, dword [eax]
mov eax, dword [edi]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x54], eax
and ecx, 1
mov eax, dword [esp + 0xcc]
mov eax, dword [eax]
mov dword [esp + 0x38], eax
mov eax, ebx
and eax, 1
add eax, eax
add eax, ecx
je 0x10051ac4
cmp eax, 1
jne 0x10051a1a
mov edx, dword [esp + 0xb4]
mov ecx, dword [esp + 0xb8]
mov eax, dword [esp + 0x54]
lea edi, [edx + edx]
add edi, edi
add edi, edi
add edi, edi
mov dword [esp + 0x58], edi
lea ecx, [ecx + ecx]
add ecx, ecx
add ecx, ecx
add ecx, ecx
imul ecx, esi
add eax, edi
mov edx, ebx
mov dword [esp + 0x50], ecx
add edx, 0x80000000
adc edx, 0x80000000
sar edx, 1
add eax, edx
mov edx, dword [esp + 0x44]
add eax, ecx
lea ecx, [edx - 1]
shr ecx, 0x1f
lea edx, [edx + ecx - 1]
sar edx, 1
imul edx, esi
add eax, edx
mov dword [esp + 0x54], eax
jmp 0x10051b1c
mov edx, dword [esp + 0xb4]
mov edi, dword [esp + 0xb8]
lea ecx, [edx + edx]
add ecx, ecx
add ecx, ecx
add ecx, ecx
mov dword [esp + 0x58], ecx
lea edx, [edi + edi]
add edx, edx
add edx, edx
add edx, edx
cmp eax, 2
mov dword [esp + 0x50], edx
jne 0x10051a88
mov edi, edx
imul edi, esi
mov eax, dword [esp + 0x34]
add eax, dword [esp + 0x58]
mov dword [esp + 0x50], edi
lea edx, [ebx - 1]
shr edx, 0x1f
lea ecx, [ebx + edx - 1]
sar ecx, 1
add eax, ecx
mov edx, dword [esp + 0x44]
add eax, edi
add edx, 0x80000000
adc edx, 0x80000000
sar edx, 1
imul edx, esi
add edx, eax
mov dword [esp + 0x54], edx
jmp 0x10051b1c
mov edi, edx
imul edi, esi
mov eax, dword [esp + 0x38]
add eax, dword [esp + 0x58]
mov dword [esp + 0x50], edi
lea edx, [ebx - 1]
shr edx, 0x1f
lea ecx, [ebx + edx - 1]
sar ecx, 1
add eax, ecx
mov edx, dword [esp + 0x44]
add eax, edi
lea ecx, [edx - 1]
shr ecx, 0x1f
lea edx, [edx + ecx - 1]
sar edx, 1
imul edx, esi
add edx, eax
mov dword [esp + 0x54], edx
jmp 0x10051b1c
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0xb8]
lea edi, [eax + eax]
add edi, edi
add edi, edi
add edi, edi
mov dword [esp + 0x58], edi
lea ecx, [ecx + ecx]
add ecx, ecx
add ecx, ecx
add ecx, ecx
imul ecx, esi
add edx, edi
mov eax, ebx
mov dword [esp + 0x50], ecx
add eax, 0x80000000
adc eax, 0x80000000
sar eax, 1
add edx, eax
mov eax, dword [esp + 0x44]
add edx, ecx
add eax, 0x80000000
adc eax, 0x80000000
sar eax, 1
imul eax, esi
add eax, edx
mov dword [esp + 0x54], eax
mov edx, dword [esp + 0xd0]
mov ecx, dword [esp + 0xd4]
mov eax, dword [edx]
mov edi, dword [ecx]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0xd8]
mov edx, dword [eax]
mov eax, dword [esp + 0xdc]
mov eax, dword [eax]
mov ecx, ebp
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x3c]
and ecx, 1
add ecx, ecx
and eax, 1
add ecx, eax
je 0x10051c00
cmp ecx, 1
jne 0x10051b99
add edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x3c]
mov eax, ebp
add eax, 0x80000000
adc eax, 0x80000000
lea edi, [ecx - 1]
shr edi, 0x1f
sar eax, 1
add edx, eax
add edx, dword [esp + 0x50]
lea eax, [ecx + edi - 1]
sar eax, 1
imul eax, esi
add edx, eax
jmp 0x10051c35
cmp ecx, 2
jne 0x10051bcf
mov eax, edi
add eax, dword [esp + 0x58]
lea edx, [ebp - 1]
shr edx, 0x1f
lea ecx, [ebp + edx - 1]
mov edx, dword [esp + 0x3c]
sar ecx, 1
add eax, ecx
add edx, 0x80000000
adc edx, 0x80000000
sar edx, 1
imul edx, esi
add eax, dword [esp + 0x50]
add edx, eax
jmp 0x10051c35
mov eax, dword [esp + 0x38]
add eax, dword [esp + 0x58]
mov edi, dword [esp + 0x3c]
lea edx, [ebp - 1]
shr edx, 0x1f
lea ecx, [ebp + edx - 1]
sar ecx, 1
add eax, ecx
lea edx, [edi - 1]
add eax, dword [esp + 0x50]
shr edx, 0x1f
lea edx, [edi + edx - 1]
sar edx, 1
imul edx, esi
add edx, eax
jmp 0x10051c35
mov eax, dword [esp + 0x4c]
add eax, dword [esp + 0x58]
mov edx, ebp
add edx, 0x80000000
adc edx, 0x80000000
sar edx, 1
add eax, edx
add eax, dword [esp + 0x50]
mov edx, dword [esp + 0x3c]
add edx, 0x80000000
adc edx, 0x80000000
sar edx, 1
imul edx, esi
add edx, eax
mov edi, dword [esp + 0xe0]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x2c], esi
xor eax, eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x40], ebp
mov ebp, eax
mov dword [esp + 0x48], ebx
mov ebx, edi
lea ecx, [esi + esi]
add ecx, ecx
add ecx, ecx
mov dword [esp + 0x34], ecx
lea eax, [esi + esi]
add eax, eax
mov esi, dword [esp + 0xbc]
add eax, eax
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0x58]
mov ecx, ebp
and ecx, 1
add ecx, ecx
add ecx, ecx
add ecx, ecx
mov eax, ebp
sar eax, 1
mov edi, eax
imul edi, dword [esp + 0x34]
imul eax, dword [esp + 0x38]
add edx, dword [esi]
add edx, dword [esp + 0x50]
add edx, ecx
add edx, edi
mov edi, dword [esp + 0x54]
lea edi, [edi + ecx]
add ecx, dword [esp + 0x30]
add edi, eax
add ecx, eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
push edi
push edx
push ebx
call dword [0x1031e3b4]
add esp, 0x14
add ebx, 0x80
add ebp, 1
cmp ebp, 4
jl 0x10051c77
mov esi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x40]
mov ebx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov eax, ebx
sar eax, 1
and ebx, 3
add eax, dword [ebx*4 + 0x1008ba40]
mov ecx, edx
mov dword [esp + 0x58], eax
sar ecx, 1
and edx, 3
mov ebx, ebp
sar ebx, 1
and ebp, 3
add ecx, dword [edx*4 + 0x1008ba40]
add ebx, dword [ebp*4 + 0x1008ba40]
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x54], ecx
mov edi, ebp
sar edi, 1
and ebp, 3
add edi, dword [ebp*4 + 0x1008ba40]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], edi
jmp 0x100523e1
mov dword [esp + 0x94], 0
mov dword [esp + 0x2c], esi
xor ecx, ecx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x5c], edi
xor ebx, ebx
xor ecx, ecx
xor ebp, ebp
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x78], ecx
mov dword [esp + 0x74], ebx
xor ebp, ebp
mov dword [esp + 0x58], ebp
mov ebp, dword [esp + 0xb4]
lea ebp, [ebp + ebp]
add ebp, ebp
add ebp, ebp
add ebp, ebp
mov dword [esp + 0x48], ebp
mov ebp, dword [esp + 0xb8]
lea ebp, [ebp + ebp]
add ebp, ebp
add ebp, ebp
add ebp, ebp
mov dword [esp + 0x44], ebp
imul ebp, esi
mov dword [esp + 0x50], ebp
lea ebp, [esi + esi]
add ebp, ebp
add ebp, ebp
mov dword [esp + 0x4c], ebp
mov ebp, dword [esp + 0xe0]
mov dword [esp + 0x54], ebp
mov ebp, dword [esp + 0x58]
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x5c]
mov edx, dword [eax + ebp*8]
mov ecx, dword [ebx + ebp*8]
mov esi, dword [ebx + ebp*8 + 4]
mov dword [esp + 0x88], edx
mov edx, dword [eax + ebp*8 + 4]
mov dword [esp + 0x84], ecx
test edi, edi
mov dword [esp + 0x80], esi
je 0x10052045
mov eax, dword [esp + 0x88]
mov esi, ecx
mov edi, dword [esp + 0x80]
mov ecx, eax
add ecx, 0x80000000
adc ecx, 0x80000000
mov ebx, edx
add ebx, 0x80000000
adc ebx, 0x80000000
sar ecx, 1
sar ebx, 1
add dword [esp + 0x6c], ecx
add esi, 0x80000000
adc esi, 0x80000000
add dword [esp + 0x78], ebx
add edi, 0x80000000
adc edi, 0x80000000
sar esi, 1
add dword [esp + 0x74], esi
sar edi, 1
add dword [esp + 0x68], edi
or eax, edx
test al, 3
jne 0x10051ead
mov edi, dword [esp + 0xc0]
mov ebx, dword [esp + 0x88]
mov edi, dword [edi]
add edi, dword [esp + 0x48]
mov ecx, ebp
and ecx, 1
add ecx, ecx
add ecx, ecx
add ecx, ecx
mov esi, ebp
mov dword [esp + 0x7c], ecx
sar esi, 1
lea eax, [esi + esi]
add eax, eax
add eax, eax
add edi, ecx
add eax, dword [esp + 0x44]
mov ecx, ebx
mov dword [esp + 0x70], eax
sar ecx, 1
shr ecx, 0x1e
add ecx, ebx
sar ecx, 2
add edi, ecx
mov ecx, edx
sar ecx, 1
shr ecx, 0x1e
add ecx, edx
sar ecx, 2
add ecx, eax
imul ecx, dword [esp + 0x2c]
add edi, ecx
jmp 0x10051f4e
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x58], ebp
mov dword [esp + 0x20], edx
mov edx, ecx
mov dword [esp + 0x28], 0
mov edi, ebp
and edi, 1
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0xc0]
mov edx, dword [edx]
add edi, edi
add edi, edi
add edi, edi
mov dword [esp + 0x7c], edi
sar ebp, 1
mov dword [esp + 0x8c], ebp
lea esi, [ebp + ebp]
mov ebp, dword [esp + 0x60]
add esi, esi
add esi, esi
lea ebx, [edi + eax]
add esi, dword [esp + 0x44]
mov eax, ebp
mov dword [esp + 0x70], esi
sub eax, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
neg ecx
imul ecx, esi
add eax, ecx
lea ecx, [ebp + 0x20]
mov esi, dword [esp + 0x8c]
mov dword [esp + 0x64], ecx
lea ecx, [ebp + 0x40]
mov dword [esp + 0xc], ecx
lea ecx, [ebp + 0x60]
mov ebp, dword [esp + 0x58]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x64]
call fcn.10053088
mov edi, dword [esp + 0x60]
mov eax, dword [esp + 0x84]
or eax, dword [esp + 0x80]
test al, 3
jne 0x10051fab
mov ebx, dword [esp + 0xd0]
mov eax, dword [esp + 0x84]
mov ebx, dword [ebx]
mov edx, eax
sar edx, 1
shr edx, 0x1e
add ebx, dword [esp + 0x48]
add edx, eax
mov eax, dword [esp + 0x80]
sar edx, 2
add ebx, dword [esp + 0x7c]
add ebx, edx
mov edx, eax
sar edx, 1
shr edx, 0x1e
add edx, eax
mov eax, dword [esp + 0x70]
sar edx, 2
add eax, edx
imul eax, dword [esp + 0x2c]
add ebx, eax
jmp 0x1005233f
mov eax, dword [esp + 0x48]
mov ebx, dword [esp + 0x7c]
mov edx, dword [esp + 0x60]
mov dword [esp + 0x58], ebp
lea ebp, [ebx + eax]
mov dword [esp + 0x8c], esi
mov esi, dword [esp + 0x70]
mov dword [esp + 0x90], edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x28], 0
lea ebx, [edx + 0x10]
mov eax, edx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], esi
sub eax, ebp
mov ebp, dword [esp + 0x58]
mov dword [esp + 0x24], edi
mov ecx, edi
neg ecx
imul ecx, esi
lea eax, [eax + ecx + 0x10]
lea ecx, [edx + 0x20]
mov edi, dword [esp + 0x90]
mov esi, dword [esp + 0x8c]
mov dword [esp + 0xc], ecx
lea edx, [edx + 0x30]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 0x1c], edx
mov ecx, ebx
mov edx, dword [esp + 0x80]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0xd0]
mov edx, dword [edx]
call fcn.10053088
jmp 0x1005233f
mov eax, dword [esp + 0x88]
mov edi, ecx
mov ebx, esi
mov esi, dword [esp + 0xc0]
mov ecx, dword [esi]
mov esi, ebp
add dword [esp + 0x6c], eax
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0xc4]
mov ecx, dword [ecx]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0xc8]
add dword [esp + 0x78], edx
and esi, 1
add dword [esp + 0x74], edi
mov edi, dword [ecx]
mov ecx, dword [esp + 0xcc]
mov ecx, dword [ecx]
add dword [esp + 0x68], ebx
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x7c], esi
lea ebx, [ecx + ecx]
add ebx, esi
mov esi, dword [esp + 0xb8]
lea ecx, [esi + esi]
mov esi, ebp
sar esi, 1
add ecx, esi
mov dword [esp + 0x40], ecx
mov ecx, eax
and ecx, 1
add ecx, ecx
mov eax, edx
and eax, 1
add ecx, eax
mov dword [esp + 0x70], ecx
je 0x100521a5
mov eax, ecx
cmp eax, 1
jne 0x1005211f
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x88]
add ebx, ebx
add ebx, ebx
add ebx, ebx
add eax, eax
add eax, eax
add eax, eax
mov dword [esp + 0x40], eax
add edi, ebx
add ecx, 0x80000000
adc ecx, 0x80000000
sar ecx, 1
add edi, ecx
lea ecx, [edx - 1]
shr ecx, 0x1f
lea edx, [edx + ecx - 1]
sar edx, 1
add edx, eax
imul edx, dword [esp + 0x2c]
add edi, edx
jmp 0x100521ec
mov eax, dword [esp + 0x40]
mov edi, ecx
add ebx, ebx
add ebx, ebx
add ebx, ebx
add eax, eax
add eax, eax
add eax, eax
mov dword [esp + 0x40], eax
cmp edi, 2
jne 0x10052171
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x88]
add eax, ebx
lea ecx, [edi - 1]
shr ecx, 0x1f
lea edi, [edi + ecx - 1]
sar edi, 1
add eax, edi
add edx, 0x80000000
adc edx, 0x80000000
sar edx, 1
add edx, dword [esp + 0x40]
imul edx, dword [esp + 0x2c]
lea edi, [eax + edx]
jmp 0x100521ec
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x88]
add eax, ebx
lea ecx, [edi - 1]
shr ecx, 0x1f
lea edi, [edi + ecx - 1]
sar edi, 1
add eax, edi
lea edi, [edx - 1]
shr edi, 0x1f
lea edi, [edx + edi - 1]
sar edi, 1
add edi, dword [esp + 0x40]
imul edi, dword [esp + 0x2c]
add edi, eax
jmp 0x100521ec
mov edi, dword [esp + 0x40]
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x88]
add ebx, ebx
add ebx, ebx
add ebx, ebx
add edi, edi
add edi, edi
add edi, edi
mov dword [esp + 0x40], edi
add ecx, ebx
add eax, 0x80000000
adc eax, 0x80000000
add edx, 0x80000000
adc edx, 0x80000000
sar eax, 1
add ecx, eax
sar edx, 1
add edx, edi
imul edx, dword [esp + 0x2c]
lea edi, [ecx + edx]
mov edx, dword [esp + 0xd0]
mov eax, dword [esp + 0xd4]
mov ecx, dword [esp + 0x80]
mov edx, dword [edx]
mov eax, dword [eax]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xd8]
mov eax, dword [eax]
mov dword [esp + 0x64], eax
and ecx, 1
mov eax, dword [esp + 0xdc]
mov eax, dword [eax]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x84]
and eax, 1
add eax, eax
add eax, ecx
je 0x100522f8
cmp eax, 1
jne 0x1005227d
add ebx, dword [esp + 0x64]
mov eax, dword [esp + 0x84]
add eax, 0x80000000
adc eax, 0x80000000
mov edx, dword [esp + 0x80]
sar eax, 1
add ebx, eax
lea eax, [edx - 1]
shr eax, 0x1f
lea eax, [edx + eax - 1]
mov edx, dword [esp + 0x40]
sar eax, 1
add edx, eax
imul edx, dword [esp + 0x2c]
add ebx, edx
jmp 0x10052331
cmp eax, 2
jne 0x100522bd
add ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x84]
lea edx, [eax - 1]
shr edx, 0x1f
lea eax, [eax + edx - 1]
mov edx, dword [esp + 0x40]
sar eax, 1
add ebx, eax
mov eax, dword [esp + 0x80]
add eax, 0x80000000
adc eax, 0x80000000
sar eax, 1
add edx, eax
imul edx, dword [esp + 0x2c]
add ebx, edx
jmp 0x10052331
add ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x84]
lea edx, [eax - 1]
shr edx, 0x1f
lea eax, [eax + edx - 1]
sar eax, 1
add ebx, eax
mov eax, dword [esp + 0x80]
lea edx, [eax - 1]
shr edx, 0x1f
lea eax, [eax + edx - 1]
mov edx, dword [esp + 0x40]
sar eax, 1
add edx, eax
imul edx, dword [esp + 0x2c]
add ebx, edx
jmp 0x10052331
mov eax, dword [esp + 0x84]
add ebx, edx
mov edx, dword [esp + 0x80]
add eax, 0x80000000
adc eax, 0x80000000
add edx, 0x80000000
adc edx, 0x80000000
sar eax, 1
add ebx, eax
sar edx, 1
mov eax, dword [esp + 0x40]
add eax, edx
imul eax, dword [esp + 0x2c]
add ebx, eax
mov eax, dword [esp + 0x7c]
add eax, eax
add eax, eax
add eax, eax
mov dword [esp + 0x7c], eax
imul esi, dword [esp + 0x4c]
mov eax, dword [esp + 0xbc]
mov edx, dword [eax]
add edx, dword [esp + 0x48]
add edx, dword [esp + 0x50]
add edx, dword [esp + 0x7c]
add edx, esi
mov esi, dword [esp + 0x2c]
push esi
push ebx
push edi
push edx
mov ecx, dword [esp + 0x64]
push ecx
call dword [0x1031e3b4]
add esp, 0x14
add dword [esp + 0x54], 0x80
add ebp, 1
cmp ebp, 4
jl 0x10051db4
mov ecx, dword [esp + 0x78]
mov ebx, dword [esp + 0x74]
mov eax, dword [esp + 0x6c]
mov edx, eax
sar edx, 3
and eax, 0xf
add edx, dword [eax*4 + 0x1008b9e0]
mov ebp, ecx
sar ebp, 3
and ecx, 0xf
add ebp, dword [ecx*4 + 0x1008b9e0]
mov ecx, ebx
mov dword [esp + 0x58], edx
sar ecx, 3
and ebx, 0xf
add ecx, dword [ebx*4 + 0x1008b9e0]
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x54], ebp
mov edi, ebx
mov dword [esp + 0x4c], ecx
sar edi, 3
and ebx, 0xf
add edi, dword [ebx*4 + 0x1008b9e0]
mov dword [esp + 0x48], edi
mov edi, dword [esp + 0xd0]
mov ebp, dword [esp + 0xb4]
mov eax, dword [esp + 0xb8]
mov edx, dword [esp + 0x4c]
mov ebx, dword [edi + 4]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x3c], ebx
lea edi, [ebp + ebp]
add edi, edi
add edi, edi
lea ebx, [eax + eax]
add ebx, ebx
add ebx, ebx
mov ebp, esi
shr ebp, 1
and edx, 1
add edx, edx
and ecx, 1
add edx, ecx
mov dword [esp + 0x40], edx
je 0x10052522
mov eax, edx
cmp eax, 1
jne 0x1005248c
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x90], ebx
add ecx, 0x80000000
adc ecx, 0x80000000
lea edx, [eax - 1]
shr edx, 0x1f
sar ecx, 1
lea edx, [eax + edx - 1]
mov eax, dword [esp + 0x3c]
push 0
sar edx, 1
imul edx, ebp
add eax, edi
imul ebx, ebp
add eax, ebx
add eax, ecx
push ebp
add eax, edx
push eax
mov eax, dword [esp + 0x6c]
push eax
mov ebx, dword [esp + 0xa0]
call dword [0x1031e3c4]
add esp, 0x10
jmp 0x10052518
mov eax, dword [esp + 0x4c]
add dword [esp + 0x3c], edi
lea edx, [eax - 1]
shr edx, 0x1f
lea ecx, [eax + edx - 1]
mov edx, dword [esp + 0x40]
sar ecx, 1
mov eax, ebx
imul eax, ebp
cmp edx, 2
mov dword [esp + 0x50], ecx
jne 0x100524e7
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x3c]
add edx, 0x80000000
adc edx, 0x80000000
add ecx, eax
sar edx, 1
imul edx, ebp
add ecx, dword [esp + 0x50]
push 0
add ecx, edx
push ebp
push ecx
mov eax, dword [esp + 0x6c]
push eax
call dword [0x1031e3c0]
add esp, 0x10
jmp 0x10052518
mov edx, dword [esp + 0x48]
lea ecx, [edx - 1]
shr ecx, 0x1f
lea edx, [edx + ecx - 1]
sar edx, 1
imul edx, ebp
mov ecx, dword [esp + 0x3c]
add ecx, eax
add ecx, dword [esp + 0x50]
push 0
push ebp
add ecx, edx
push ecx
mov eax, dword [esp + 0x6c]
push eax
call dword [0x1031e3c8]
add esp, 0x10
mov eax, dword [esp + 0x60]
mov dword [esp + 0x3c], eax
jmp 0x10052559
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
add eax, edi
add edx, 0x80000000
adc edx, 0x80000000
add ecx, 0x80000000
adc ecx, 0x80000000
sar edx, 1
add eax, edx
sar ecx, 1
add ecx, ebx
imul ecx, ebp
add eax, ecx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x58]
lea ecx, [eax + 8]
mov eax, dword [esp + 0xc0]
mov eax, dword [eax + 4]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x54]
and edx, 1
add edx, edx
and ecx, 1
add edx, ecx
mov dword [esp + 0x38], edx
je 0x10052674
cmp edx, 1
jne 0x100525e0
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x2c], esi
push 0
push ebp
add edx, 0x80000000
adc edx, 0x80000000
lea esi, [ecx - 1]
shr esi, 0x1f
sar edx, 1
lea ecx, [ecx + esi - 1]
sar ecx, 1
imul ecx, ebp
mov esi, ebx
imul esi, ebp
add eax, edi
add esi, eax
add esi, edx
add esi, ecx
push esi
mov eax, dword [esp + 0x50]
push eax
mov esi, dword [esp + 0x3c]
call dword [0x1031e3c4]
add esp, 0x10
jmp 0x1005266e
mov edx, dword [esp + 0x58]
lea ecx, [edx - 1]
shr ecx, 0x1f
lea edx, [edx + ecx - 1]
sar edx, 1
add eax, edi
mov dword [esp + 0x50], edx
mov edx, ebx
imul edx, ebp
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x38]
cmp edx, 2
jne 0x1005263d
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x5c]
add edx, 0x80000000
adc edx, 0x80000000
add ecx, eax
sar edx, 1
imul edx, ebp
add ecx, dword [esp + 0x50]
push 0
add ecx, edx
push ebp
push ecx
mov eax, dword [esp + 0x50]
push eax
call dword [0x1031e3c0]
add esp, 0x10
jmp 0x1005266e
mov edx, dword [esp + 0x54]
lea ecx, [edx - 1]
shr ecx, 0x1f
lea edx, [edx + ecx - 1]
sar edx, 1
imul edx, ebp
mov ecx, dword [esp + 0x5c]
add ecx, eax
add ecx, dword [esp + 0x50]
push 0
push ebp
add ecx, edx
push ecx
mov eax, dword [esp + 0x50]
push eax
call dword [0x1031e3c8]
add esp, 0x10
mov eax, dword [esp + 0x44]
jmp 0x100526a3
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
add eax, edi
add edx, 0x80000000
adc edx, 0x80000000
add ecx, 0x80000000
adc ecx, 0x80000000
sar edx, 1
add eax, edx
sar ecx, 1
add ecx, ebx
imul ecx, ebp
add eax, ecx
imul esi, ebx
shr esi, 1
mov edx, dword [esp + 0xe0]
lea ecx, [edx + 0x200]
mov edx, dword [esp + 0xbc]
push ebp
mov edx, dword [edx + 4]
push eax
mov eax, dword [esp + 0x44]
push eax
add edx, edi
add edx, esi
push edx
push ecx
call dword [0x1031e3b4]
add esp, 0x14
mov edx, dword [esp + 0xd0]
mov eax, dword [esp + 0x40]
mov edx, dword [edx + 8]
test eax, eax
je 0x100527cd
cmp eax, 1
jne 0x1005273f
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x2c], esi
push 0
push ebp
add eax, 0x80000000
adc eax, 0x80000000
lea esi, [ecx - 1]
shr esi, 0x1f
sar eax, 1
lea ecx, [ecx + esi - 1]
sar ecx, 1
imul ecx, ebp
mov esi, ebx
imul esi, ebp
add edx, edi
add esi, edx
add esi, eax
add esi, ecx
push esi
mov edx, dword [esp + 0x6c]
push edx
mov esi, dword [esp + 0x3c]
call dword [0x1031e3c4]
add esp, 0x10
jmp 0x100527ff
mov eax, dword [esp + 0x4c]
lea ecx, [eax - 1]
shr ecx, 0x1f
lea eax, [eax + ecx - 1]
sar eax, 1
add edx, edi
mov dword [esp + 0x50], eax
mov eax, ebx
imul eax, ebp
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x40]
cmp eax, 2
jne 0x1005279a
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x5c]
add eax, 0x80000000
adc eax, 0x80000000
add ecx, edx
add ecx, dword [esp + 0x50]
push 0
push ebp
sar eax, 1
imul eax, ebp
add ecx, eax
push ecx
mov edx, dword [esp + 0x6c]
push edx
call dword [0x1031e3c0]
add esp, 0x10
jmp 0x100527ff
mov eax, dword [esp + 0x48]
lea ecx, [eax - 1]
shr ecx, 0x1f
lea eax, [eax + ecx - 1]
sar eax, 1
imul eax, ebp
mov ecx, dword [esp + 0x5c]
add ecx, edx
add ecx, dword [esp + 0x50]
push 0
push ebp
add ecx, eax
push ecx
mov edx, dword [esp + 0x6c]
push edx
call dword [0x1031e3c8]
add esp, 0x10
jmp 0x100527ff
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
add edx, edi
add eax, 0x80000000
adc eax, 0x80000000
add ecx, 0x80000000
adc ecx, 0x80000000
sar eax, 1
add edx, eax
sar ecx, 1
add ecx, ebx
imul ecx, ebp
lea edx, [edx + ecx]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0xc0]
mov eax, dword [esp + 0x38]
mov edx, dword [edx + 8]
test eax, eax
je 0x100528e7
cmp eax, 1
jne 0x10052867
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
imul ebx, ebp
mov dword [esp + 0x2c], esi
push 0
push ebp
add eax, 0x80000000
adc eax, 0x80000000
lea esi, [ecx - 1]
shr esi, 0x1f
sar eax, 1
lea ecx, [ecx + esi - 1]
sar ecx, 1
imul ecx, ebp
add edx, edi
add ebx, edx
add ebx, eax
add ebx, ecx
push ebx
mov edx, dword [esp + 0x50]
push edx
mov esi, dword [esp + 0x3c]
call dword [0x1031e3c4]
add esp, 0x10
jmp 0x10052919
imul ebx, ebp
add edx, edi
mov eax, dword [esp + 0x58]
lea ecx, [eax - 1]
shr ecx, 0x1f
lea eax, [eax + ecx - 1]
sar eax, 1
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x38]
cmp eax, 2
jne 0x100528b8
mov eax, dword [esp + 0x54]
add eax, 0x80000000
adc eax, 0x80000000
add ebx, edx
add ebx, dword [esp + 0x58]
push 0
sar eax, 1
imul eax, ebp
add ebx, eax
push ebp
push ebx
mov edx, dword [esp + 0x50]
push edx
call dword [0x1031e3c0]
add esp, 0x10
jmp 0x10052919
mov eax, dword [esp + 0x54]
lea ecx, [eax - 1]
shr ecx, 0x1f
lea eax, [eax + ecx - 1]
sar eax, 1
imul eax, ebp
add ebx, edx
add ebx, dword [esp + 0x58]
push 0
add ebx, eax
push ebp
push ebx
mov edx, dword [esp + 0x50]
push edx
call dword [0x1031e3c8]
add esp, 0x10
jmp 0x10052919
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
add edx, edi
add eax, 0x80000000
adc eax, 0x80000000
add ecx, 0x80000000
adc ecx, 0x80000000
sar eax, 1
add edx, eax
sar ecx, 1
add ebx, ecx
imul ebx, ebp
lea edx, [edx + ebx]
mov dword [esp + 0x44], edx
mov eax, dword [esp + 0xe0]
mov edx, dword [esp + 0xbc]
add edi, dword [edx + 8]
lea ecx, [eax + 0x280]
add edi, esi
push ebp
mov ebp, dword [esp + 0x48]
push ebp
mov esi, dword [esp + 0x68]
push esi
push edi
push ecx
call dword [0x1031e3b4]
add esp, 0xac
pop ebx
pop ebp
pop esi
pop edi
ret
mov ebx, dword [esp + 0xd0]
mov ebp, dword [edx]
mov eax, dword [edx + 4]
mov edx, dword [esp + 0xbc]
mov ecx, dword [edx]
test edi, edi
mov dword [esp + 0x4c], ebp
mov ebp, dword [ebx]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0xd4]
mov eax, dword [eax]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0xd8]
mov eax, dword [eax]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0xdc]
mov eax, dword [eax]
mov dword [esp + 0x58], eax
je 0x10052a97
mov eax, dword [esp + 0x4c]
or eax, dword [esp + 0x40]
test al, 3
jne 0x10052a05
mov ebx, dword [esp + 0xb4]
mov ecx, dword [esp + 0xb8]
lea ebx, [ebx + ebx]
add ebx, ebx
add ebx, ebx
add ebx, ebx
lea eax, [ecx + ecx]
mov ecx, dword [esp + 0x4c]
add eax, eax
add eax, eax
add eax, eax
add ebp, ebx
mov edx, ecx
sar edx, 1
shr edx, 0x1e
add edx, ecx
sar edx, 2
add ebp, edx
mov ecx, dword [esp + 0x40]
mov edx, ecx
sar edx, 1
shr edx, 0x1e
add edx, ecx
sar edx, 2
add edx, eax
imul edx, esi
imul eax, esi
mov dword [esp + 0x44], eax
add ebp, edx
jmp 0x10052bb7
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x28], 0
lea ecx, [eax + eax]
add ecx, ecx
mov dword [esp + 0x5c], edi
mov edi, dword [esp + 0xb4]
mov dword [esp + 0x24], esi
lea ebx, [edi + edi]
add ebx, ebx
add ebx, ebx
add ebx, ebx
mov dword [esp + 0x14], ebx
add ecx, ecx
add ecx, ecx
mov dword [esp + 0x18], ecx
mov edx, ecx
imul edx, esi
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x44], edx
lea eax, [edi + edi]
mov edi, dword [esp + 0x60]
mov dword [esp + 0x20], ecx
add eax, eax
add eax, eax
add eax, eax
neg eax
add eax, edi
sub eax, edx
lea edx, [edi + 0x20]
mov dword [esp + 0x90], edx
mov ecx, edx
lea edx, [edi + 0x40]
mov dword [esp + 0xc], edx
lea edi, [edi + 0x60]
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x5c]
mov edx, ebp
call fcn.100535c8
mov ebp, dword [esp + 0x60]
jmp 0x10052bb7
mov ebx, dword [esp + 0xb4]
mov eax, dword [esp + 0xb8]
lea ebx, [ebx + ebx]
add ebx, ebx
add ebx, ebx
add ebx, ebx
lea ecx, [eax + eax]
mov eax, dword [esp + 0x4c]
add ecx, ecx
add ecx, ecx
add ecx, ecx
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x40]
and eax, 1
add eax, eax
and ecx, 1
add eax, ecx
je 0x10052b7d
cmp eax, 1
jne 0x10052b10
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x40]
add eax, ebx
add edx, 0x80000000
adc edx, 0x80000000
lea ebp, [ecx - 1]
shr ebp, 0x1f
sar edx, 1
add eax, edx
lea ebp, [ecx + ebp - 1]
sar ebp, 1
add ebp, dword [esp + 0x44]
imul ebp, esi
add ebp, eax
jmp 0x10052bac
cmp eax, 2
jne 0x10052b4a
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x4c]
add eax, ebx
lea ecx, [edx - 1]
shr ecx, 0x1f
lea ebp, [edx + ecx - 1]
sar ebp, 1
add eax, ebp
mov ebp, dword [esp + 0x40]
add ebp, 0x80000000
adc ebp, 0x80000000
sar ebp, 1
add ebp, dword [esp + 0x44]
imul ebp, esi
add ebp, eax
jmp 0x10052bac
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x4c]
add eax, ebx
lea ecx, [edx - 1]
shr ecx, 0x1f
lea ebp, [edx + ecx - 1]
mov edx, dword [esp + 0x40]
sar ebp, 1
add eax, ebp
lea ecx, [edx - 1]
shr ecx, 0x1f
lea ebp, [edx + ecx - 1]
sar ebp, 1
add ebp, dword [esp + 0x44]
imul ebp, esi
add ebp, eax
jmp 0x10052bac
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x40]
add ebp, ebx
add eax, 0x80000000
adc eax, 0x80000000
add ecx, 0x80000000
adc ecx, 0x80000000
sar eax, 1
add ebp, eax
sar ecx, 1
add ecx, dword [esp + 0x44]
imul ecx, esi
add ebp, ecx
mov eax, dword [esp + 0x44]
imul eax, esi
mov dword [esp + 0x44], eax
add ebx, dword [esp + 0x48]
add ebx, dword [esp + 0x44]
push esi
push ebp
push ebx
mov eax, dword [esp + 0xec]
push eax
call dword [0x1031e3ac]
mov eax, dword [esp + 0xf0]
push esi
lea edx, [eax + 0x80]
lea eax, [ebx + 8]
lea ecx, [ebp + 8]
push ecx
push eax
push edx
call dword [0x1031e3ac]
lea ecx, [esi + esi]
add ecx, ecx
add ecx, ecx
lea eax, [ebx + ecx]
add ebp, ecx
mov ecx, dword [esp + 0x100]
push esi
push ebp
lea ecx, [ecx + 0x100]
push eax
push ecx
call dword [0x1031e3ac]
mov eax, dword [esp + 0x110]
push esi
lea ecx, [eax + 0x180]
lea ebx, [ebx + esi*8 + 8]
add ebp, 8
push ebp
push ebx
push ecx
call dword [0x1031e3ac]
add esp, 0x40
test edi, edi
je 0x10052c5f
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x40]
add eax, 0x80000000
adc eax, 0x80000000
add edx, 0x80000000
adc edx, 0x80000000
sar eax, 1
sar edx, 1
mov dword [esp + 0x4c], eax
mov dword [esp + 0x40], edx
mov ebx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x40]
mov edi, dword [esp + 0xb8]
mov ecx, dword [esp + 0xbc]
mov eax, ebx
sar eax, 1
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ecx
and ebx, 3
mov edx, ebp
add eax, dword [ebx*4 + 0x1008ba40]
mov ecx, dword [esp + 0xd0]
sar edx, 1
and ebp, 3
add edx, dword [ebp*4 + 0x1008ba40]
mov dword [esp + 0x14], ecx
shr esi, 1
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0xe0]
lea ecx, [ecx + 0x200]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x20], esi
xor esi, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call fcn.100544e8
add esp, 0x98
pop ebx
pop ebp
pop esi
pop edi
ret
mov edx, dword [esp + 0xbc]
mov ebx, dword [esp + 0xc0]
mov ebp, dword [eax]
mov eax, dword [eax + 4]
mov ecx, dword [edx]
test edi, edi
mov dword [esp + 0x40], ebp
mov ebp, dword [ebx]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xc4]
mov eax, dword [eax]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0xc8]
mov eax, dword [eax]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0xcc]
mov eax, dword [eax]
mov dword [esp + 0x58], eax
je 0x10052e3e
mov eax, dword [esp + 0x40]
or eax, dword [esp + 0x44]
test al, 3
jne 0x10052d99
mov ebx, dword [esp + 0xb4]
mov eax, dword [esp + 0xb8]
lea ecx, [ebx + ebx]
add ecx, ecx
add ecx, ecx
add ecx, ecx
mov dword [esp + 0x4c], ecx
lea ebx, [eax + eax]
mov eax, dword [esp + 0x40]
add ebx, ebx
add ebx, ebx
add ebx, ebx
add ebp, ecx
mov ecx, eax
sar ecx, 1
shr ecx, 0x1e
add ecx, eax
sar ecx, 2
mov eax, dword [esp + 0x44]
add ebp, ecx
mov ecx, eax
sar ecx, 1
shr ecx, 0x1e
add ecx, eax
sar ecx, 2
add ecx, ebx
imul ecx, esi
imul ebx, esi
add ebp, ecx
jmp 0x10052f56
mov ebx, dword [esp + 0xb4]
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x28], 0
lea edx, [ebx + ebx]
mov dword [esp + 0x5c], edi
mov dword [esp + 0x24], esi
add edx, edx
add edx, edx
add edx, edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x14], edx
lea edi, [eax + eax]
add edi, edi
add edi, edi
add edi, edi
mov dword [esp + 0x18], edi
mov ecx, edi
imul ecx, esi
mov edi, dword [esp + 0x5c]
mov dword [esp + 0x90], ecx
lea eax, [ebx + ebx]
mov ebx, dword [esp + 0x60]
add eax, eax
add eax, eax
add eax, eax
neg eax
add eax, ebx
sub eax, ecx
lea ecx, [ebx + 0x20]
mov dword [esp + 0x8c], ecx
lea ecx, [ebx + 0x40]
mov dword [esp + 0xc], ecx
lea ecx, [ebx + 0x60]
mov ebx, dword [esp + 0x90]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x40]
mov edx, ebp
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x8c]
call fcn.100535c8
mov ebp, dword [esp + 0x60]
jmp 0x10052f56
mov ebx, dword [esp + 0xb4]
mov ecx, dword [esp + 0xb8]
lea eax, [ebx + ebx]
add eax, eax
add eax, eax
add eax, eax
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x40]
lea ebx, [ecx + ecx]
mov ecx, dword [esp + 0x44]
add ebx, ebx
add ebx, ebx
add ebx, ebx
and eax, 1
add eax, eax
and ecx, 1
add eax, ecx
je 0x10052f24
cmp eax, 1
jne 0x10052eb7
mov eax, dword [esp + 0x50]
add eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
add edx, 0x80000000
adc edx, 0x80000000
lea ebp, [ecx - 1]
shr ebp, 0x1f
sar edx, 1
add eax, edx
lea ebp, [ecx + ebp - 1]
sar ebp, 1
add ebp, ebx
imul ebp, esi
add ebp, eax
jmp 0x10052f53
cmp eax, 2
jne 0x10052ef1
mov eax, dword [esp + 0x54]
add eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x40]
lea ecx, [edx - 1]
shr ecx, 0x1f
lea ebp, [edx + ecx - 1]
sar ebp, 1
add eax, ebp
mov ebp, dword [esp + 0x44]
add ebp, 0x80000000
adc ebp, 0x80000000
sar ebp, 1
add ebp, ebx
imul ebp, esi
add ebp, eax
jmp 0x10052f53
mov eax, dword [esp + 0x58]
add eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x40]
lea ecx, [edx - 1]
shr ecx, 0x1f
lea ebp, [edx + ecx - 1]
mov edx, dword [esp + 0x44]
sar ebp, 1
add eax, ebp
lea ecx, [edx - 1]
shr ecx, 0x1f
lea ebp, [edx + ecx - 1]
sar ebp, 1
add ebp, ebx
imul ebp, esi
add ebp, eax
jmp 0x10052f53
add ebp, dword [esp + 0x4c]
mov eax, dword [esp + 0x40]
add eax, 0x80000000
adc eax, 0x80000000
mov ecx, dword [esp + 0x44]
sar eax, 1
add ebp, eax
add ecx, 0x80000000
adc ecx, 0x80000000
sar ecx, 1
add ecx, ebx
imul ecx, esi
add ebp, ecx
imul ebx, esi
mov eax, dword [esp + 0x4c]
add eax, dword [esp + 0x48]
push esi
add ebx, eax
push ebp
push ebx
mov ecx, dword [esp + 0xec]
push ecx
call dword [0x1031e3ac]
mov eax, dword [esp + 0xf0]
push esi
lea edx, [eax + 0x80]
lea eax, [ebx + 8]
lea ecx, [ebp + 8]
push ecx
push eax
push edx
call dword [0x1031e3ac]
lea ecx, [esi + esi]
add ecx, ecx
add ecx, ecx
lea eax, [ebx + ecx]
add ebp, ecx
mov ecx, dword [esp + 0x100]
push esi
push ebp
lea ecx, [ecx + 0x100]
push eax
push ecx
call dword [0x1031e3ac]
mov eax, dword [esp + 0x110]
push esi
lea ecx, [eax + 0x180]
lea ebx, [ebx + esi*8 + 8]
add ebp, 8
push ebp
push ebx
push ecx
call dword [0x1031e3ac]
add esp, 0x40
test edi, edi
je 0x10053000
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
add eax, 0x80000000
adc eax, 0x80000000
add edx, 0x80000000
adc edx, 0x80000000
sar eax, 1
sar edx, 1
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x44]
mov edi, dword [esp + 0xb8]
mov ecx, dword [esp + 0xbc]
mov eax, ebx
sar eax, 1
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ecx
and ebx, 3
mov edx, ebp
add eax, dword [ebx*4 + 0x1008ba40]
mov ecx, dword [esp + 0xc0]
sar edx, 1
and ebp, 3
add edx, dword [ebp*4 + 0x1008ba40]
mov dword [esp + 0x14], ecx
shr esi, 1
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0xe0]
lea ecx, [ecx + 0x200]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x20], esi
xor esi, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call fcn.100544e8
add esp, 0x98
pop ebx
pop ebp
pop esi
pop edi
ret