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

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x7a4
mov ebx, ecx
mov ebp, eax
mov esi, dword [ebp + 0xbc]
mov dword [esp + 0x6c], edx
mov ecx, esi
shr ecx, 1
lea edi, [esi + esi]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x60], edi
lea edi, [edi + edi]
add edi, edi
mov dword [esp + 0x78], edi
mov edi, dword [edx + 0xf0]
mov edx, dword [edx + 0x164]
mov dword [esp + 0x68], edi
mov dword [esp + 0x90], edx
mov edx, dword [ebp + 0xc4]
mov dword [esp + 0x94], edx
mov edi, ebx
shl edi, 4
add edi, edx
mov edx, dword [esp + 0x7dc]
mov dword [esp + 0x7c], edi
mov eax, edx
shl eax, 4
imul eax, esi
lea edx, [edx + edx]
add edx, edx
mov dword [esp + 0x80], eax
lea edi, [edi + eax]
mov eax, dword [esp + 0x94]
mov dword [esp + 0x84], edi
lea edi, [ebx + ebx]
add edi, edi
add edi, edi
add edx, edx
imul edx, ecx
mov ecx, dword [ebp + 0xc8]
add ecx, edi
add ecx, edx
mov dword [esp + 0x88], ecx
mov ecx, dword [ebp + 0xcc]
add ecx, edi
add ecx, edx
mov edx, dword [esp + 0x6c]
mov edx, dword [edx + 0xec]
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x3c], edx
test edx, edx
jne 0x100133d6
mov ecx, dword [esp + 0x6c]
mov edx, dword [ecx]
mov edi, dword [ecx + 4]
mov dword [esp + 0x44], edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x40], edi
lea edi, [ecx + 0x168]
mov dword [esp + 0x5c], edi
mov edi, dword [ecx + 0x168]
mov dword [esp + 0x34], edi
lea edi, [ecx + 0x16c]
mov ecx, dword [ecx + 0x16c]
mov dword [esp + 0x58], edi
mov edi, dword [ebp + 0x18]
mov dword [esp + 0x2c], ecx
test edi, edi
mov dword [esp + 0x30], edi
je 0x10013379
mov edi, dword [esp + 0x34]
mov ecx, edx
add ecx, 0x80000000
adc ecx, 0x80000000
sar ecx, 1
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x38]
add ecx, 0x80000000
adc ecx, 0x80000000
add edi, 0x80000000
adc edi, 0x80000000
sar ecx, 1
sar edi, 1
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x34], edi
add ecx, 0x80000000
adc ecx, 0x80000000
sar ecx, 1
mov dword [esp + 0x2c], ecx
mov edi, dword [esp + 0x44]
mov ecx, edi
sar ecx, 1
and edi, 3
add ecx, dword [edi*4 + 0x1008ba40]
mov edi, dword [esp + 0x40]
mov dword [esp + 0x4c], ecx
mov ecx, edi
sar ecx, 1
and edi, 3
add ecx, dword [edi*4 + 0x1008ba40]
mov edi, dword [esp + 0x34]
mov dword [esp + 0x48], ecx
mov ecx, edi
sar ecx, 1
and edi, 3
add ecx, dword [edi*4 + 0x1008ba40]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x54], ecx
mov ecx, edi
sar ecx, 1
and edi, 3
add ecx, dword [edi*4 + 0x1008ba40]
mov dword [esp + 0x50], ecx
jmp 0x100136f8
cmp edx, 1
je 0x100132db
mov edx, dword [esp + 0x6c]
mov ecx, dword [ebp + 0x18]
mov edx, dword [edx]
mov dword [esp + 0x30], ecx
test ecx, ecx
je 0x10013464
mov edi, dword [esp + 0x6c]
mov ecx, dword [edi + 8]
mov dword [esp + 0x98], edx
add edx, 0x80000000
adc edx, 0x80000000
mov dword [esp + 0x94], eax
mov dword [esp + 0x9c], ebx
mov ebx, dword [edi + 0x10]
mov edi, dword [edi + 0x18]
sar edx, 1
add ecx, 0x80000000
adc ecx, 0x80000000
add ebx, 0x80000000
adc ebx, 0x80000000
sar ecx, 1
add edx, ecx
sar ebx, 1
add edx, ebx
mov ebx, dword [esp + 0x9c]
add edi, 0x80000000
adc edi, 0x80000000
sar edi, 1
add edx, edi
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x98]
jmp 0x10013477
mov edi, dword [esp + 0x6c]
mov ecx, dword [edi + 8]
add ecx, edx
add ecx, dword [edi + 0x10]
add ecx, dword [edi + 0x18]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x44]
mov edi, ecx
sar edi, 3
and ecx, 0xf
add edi, dword [ecx*4 + 0x1008b9e0]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x4c], edi
test ecx, ecx
je 0x10013511
mov edi, dword [esp + 0x6c]
mov ecx, dword [edi + 0x14]
mov dword [esp + 0x98], edx
mov edx, dword [edi + 0xc]
mov dword [esp + 0x94], eax
mov dword [esp + 0x9c], ebx
mov ebx, dword [edi + 4]
mov edi, dword [edi + 0x1c]
mov dword [esp + 0x38], ebx
add ebx, 0x80000000
adc ebx, 0x80000000
add edx, 0x80000000
adc edx, 0x80000000
sar ebx, 1
add ecx, 0x80000000
adc ecx, 0x80000000
sar edx, 1
add ebx, edx
sar ecx, 1
mov edx, dword [esp + 0x98]
add ebx, ecx
add edi, 0x80000000
adc edi, 0x80000000
sar edi, 1
add ebx, edi
mov dword [esp + 0x44], ebx
mov ebx, dword [esp + 0x9c]
jmp 0x10013539
mov dword [esp + 0x9c], ebx
mov ebx, dword [esp + 0x6c]
mov edi, dword [ebx + 4]
mov ecx, dword [ebx + 0xc]
add ecx, edi
add ecx, dword [ebx + 0x14]
add ecx, dword [ebx + 0x1c]
mov ebx, dword [esp + 0x9c]
mov dword [esp + 0x38], edi
mov dword [esp + 0x44], ecx
mov edi, dword [esp + 0x44]
mov ecx, edi
sar ecx, 3
and edi, 0xf
add ecx, dword [edi*4 + 0x1008b9e0]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x6c]
lea edi, [ecx + 0x168]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x5c], edi
test ecx, ecx
je 0x100135ed
mov ecx, dword [esp + 0x6c]
mov edi, dword [ecx + 0x170]
mov dword [esp + 0x98], edx
mov edx, dword [ecx + 0x168]
add edx, 0x80000000
adc edx, 0x80000000
mov dword [esp + 0x94], eax
mov dword [esp + 0x9c], ebx
mov ebx, dword [ecx + 0x178]
mov ecx, dword [ecx + 0x180]
sar edx, 1
add edi, 0x80000000
adc edi, 0x80000000
add ebx, 0x80000000
adc ebx, 0x80000000
sar edi, 1
add edx, edi
sar ebx, 1
add edx, ebx
mov ebx, dword [esp + 0x9c]
add ecx, 0x80000000
adc ecx, 0x80000000
sar ecx, 1
add edx, ecx
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x98]
jmp 0x1001360d
mov edi, dword [esp + 0x6c]
mov ecx, dword [edi + 0x168]
add ecx, dword [edi + 0x170]
add ecx, dword [edi + 0x178]
add ecx, dword [edi + 0x180]
mov dword [esp + 0x44], ecx
mov edi, dword [esp + 0x44]
mov ecx, edi
sar ecx, 3
and edi, 0xf
add ecx, dword [edi*4 + 0x1008b9e0]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x6c]
lea edi, [ecx + 0x16c]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x58], edi
test ecx, ecx
je 0x100136c1
mov ecx, dword [esp + 0x6c]
mov edi, dword [ecx + 0x174]
mov dword [esp + 0x98], edx
mov edx, dword [ecx + 0x16c]
add edx, 0x80000000
adc edx, 0x80000000
mov dword [esp + 0x94], eax
mov dword [esp + 0x9c], ebx
mov ebx, dword [ecx + 0x17c]
mov ecx, dword [ecx + 0x184]
sar edx, 1
add edi, 0x80000000
adc edi, 0x80000000
add ebx, 0x80000000
adc ebx, 0x80000000
sar edi, 1
add edx, edi
sar ebx, 1
add edx, ebx
mov ebx, dword [esp + 0x9c]
add ecx, 0x80000000
adc ecx, 0x80000000
sar ecx, 1
add edx, ecx
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x98]
jmp 0x100136e1
mov edi, dword [esp + 0x6c]
mov ecx, dword [edi + 0x16c]
add ecx, dword [edi + 0x174]
add ecx, dword [edi + 0x17c]
add ecx, dword [edi + 0x184]
mov dword [esp + 0x44], ecx
mov edi, dword [esp + 0x44]
mov ecx, edi
sar ecx, 3
and edi, 0xf
add ecx, dword [edi*4 + 0x1008b9e0]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x10013957
mov ecx, dword [esp + 0x3c]
test ecx, ecx
jne 0x100137a0
mov ecx, dword [esp + 0x7dc]
mov dword [esp + 0xa0], ebp
mov dword [esp + 0x9c], ebx
lea ebx, [ebx + ebx]
add ebx, ebx
mov dword [esp + 0x28], 0
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x7bc]
mov dword [esp + 0x24], esi
add ebx, ebx
add ebx, ebx
lea edi, [ecx + ecx]
mov ecx, dword [ebp + 0xf4]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x14], ebx
add edi, edi
mov ebx, dword [esp + 0x9c]
add edi, edi
add edi, edi
mov dword [esp + 0x3c], edi
lea ebp, [ecx + 0x40]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x18], edi
lea ebp, [ecx + 0x80]
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0xa0]
call fcn.10015b10
mov edx, esi
imul edx, dword [esp + 0x3c]
mov dword [esp + 0x38], edx
jmp 0x100140ce
cmp ecx, 1
je 0x10013710
mov dword [esp + 0xa0], ebp
mov dword [esp + 0x28], 0
lea ecx, [ebx + ebx]
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x7bc]
mov dword [esp + 0x24], esi
add ecx, ecx
add ecx, ecx
lea ebx, [ecx + ecx]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x7dc]
mov dword [esp + 0x34], ebx
lea ecx, [ecx + ecx]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x9c]
add ecx, ecx
add ecx, ecx
lea edi, [ecx + ecx]
mov dword [esp + 0x40], ecx
mov ecx, dword [ebp + 0xf4]
mov dword [esp + 0x3c], edi
lea ebp, [ecx + 0x40]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x18], edi
lea ebp, [ecx + 0x80]
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x20], ebp
mov ebp, dword [esp + 0xa0]
call fcn.100155d0
mov edi, dword [esp + 0x44]
mov ecx, dword [ebp + 0xf4]
mov dword [esp + 0x28], 0
lea edi, [edi + ebx*8 + 8]
mov dword [esp + 0x14], edi
mov dword [esp + 0x24], esi
lea edx, [ecx + 0x40]
mov dword [esp + 0xc], edx
lea edx, [ecx + 0x80]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x6c]
mov eax, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xc4]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x7bc]
call fcn.100155d0
mov edx, dword [esp + 0x7dc]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x28], 0
lea edx, [ecx + edx*8 + 8]
mov ecx, dword [ebp + 0xf4]
mov dword [esp + 0x44], edx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x24], esi
lea eax, [ecx + 0x40]
mov dword [esp + 0xc], eax
lea eax, [ecx + 0x80]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x10]
mov edx, dword [edx + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xc4]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x7bc]
call fcn.100155d0
mov ecx, dword [ebp + 0xf4]
mov eax, dword [ebp + 0xc4]
mov dword [esp + 0x28], 0
lea edx, [ecx + 0x40]
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], edi
lea edx, [ecx + 0x80]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x6c]
mov edi, dword [edx + 0x18]
mov dword [esp + 0x1c], edi
mov edi, dword [edx + 0x1c]
mov edx, dword [esp + 0x7bc]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], esi
call fcn.100155d0
mov edx, esi
imul edx, dword [esp + 0x3c]
mov dword [esp + 0x38], edx
jmp 0x100140ce
mov edi, dword [esp + 0x38]
lea ecx, [ebx + ebx]
add ecx, ecx
add ecx, ecx
mov dword [esp + 0x40], ecx
lea ecx, [ecx + ecx]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x7dc]
lea ecx, [ecx + ecx]
add ecx, ecx
add ecx, ecx
mov dword [esp + 0x64], ecx
lea ecx, [ecx + ecx]
mov dword [esp + 0x3c], ecx
mov ecx, edx
and ecx, 1
add ecx, ecx
and edi, 1
add ecx, edi
mov dword [esp + 0x44], ecx
je 0x10013ad7
cmp ecx, 1
jne 0x10013a10
mov edi, dword [esp + 0x7bc]
mov dword [esp + 0xa0], ebp
mov dword [esp + 0x9c], ebx
add edx, 0x80000000
adc edx, 0x80000000
mov ebx, dword [esp + 0x38]
lea ecx, [ebx - 1]
sar edx, 1
shr ecx, 0x1f
lea ebp, [ebx + ecx - 1]
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x3c]
sar ebp, 1
imul ebp, esi
add eax, ecx
imul ebx, esi
lea edi, [edi + ecx]
add eax, ebx
push 0
push esi
add edi, ebx
add edi, edx
add edi, ebp
push edi
push eax
mov ebx, dword [esp + 0xac]
mov ebp, dword [esp + 0xb0]
call dword [0x1031e3c4]
add esp, 0x10
jmp 0x10013b41
add eax, dword [esp + 0x34]
lea ecx, [edx - 1]
shr ecx, 0x1f
lea edi, [edx + ecx - 1]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
sar edi, 1
mov dword [esp + 0x2c], edi
imul ecx, esi
cmp edx, 2
mov dword [esp + 0x30], ecx
jne 0x10013a8a
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov dword [esp + 0x9c], ebx
add ecx, 0x80000000
adc ecx, 0x80000000
mov ebx, dword [esp + 0x7bc]
add eax, edx
sar ecx, 1
imul ecx, esi
lea ebx, [ebx + edi]
add ebx, edx
add ebx, dword [esp + 0x2c]
push 0
add ebx, ecx
push esi
push ebx
push eax
mov ebx, dword [esp + 0xac]
call dword [0x1031e3c0]
add esp, 0x10
jmp 0x10013b41
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
mov dword [esp + 0x9c], ebx
mov ebx, dword [esp + 0x7bc]
lea edx, [ecx - 1]
shr edx, 0x1f
lea ecx, [ecx + edx - 1]
mov edx, dword [esp + 0x30]
sar ecx, 1
imul ecx, esi
add eax, edx
lea ebx, [ebx + edi]
add ebx, edx
add ebx, dword [esp + 0x2c]
push 0
push esi
add ebx, ecx
push ebx
push eax
mov ebx, dword [esp + 0xac]
call dword [0x1031e3c8]
add esp, 0x10
jmp 0x10013b41
mov ecx, dword [esp + 0x34]
mov edi, dword [esp + 0x7bc]
mov dword [esp + 0xa0], ebp
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x9c], ebx
mov ebx, dword [esp + 0x3c]
push esi
add edx, 0x80000000
adc edx, 0x80000000
add ebp, 0x80000000
adc ebp, 0x80000000
sar edx, 1
add eax, ecx
sar ebp, 1
imul ebp, esi
imul ebx, esi
lea edi, [edi + ecx]
add eax, ebx
add edi, ebx
add edi, edx
add edi, ebp
push edi
push eax
mov ebx, dword [esp + 0xa8]
mov ebp, dword [esp + 0xac]
call dword [0x1031e3bc]
add esp, 0xc
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x6c]
mov ecx, dword [ebp + 0xc4]
mov eax, dword [edi + 0xc]
lea edx, [edx + ebx*8 + 8]
mov dword [esp + 0x2c], edx
mov edx, dword [edi + 8]
mov dword [esp + 0x30], eax
mov edi, edx
and edi, 1
add edi, edi
and eax, 1
add edi, eax
mov dword [esp + 0x44], edi
je 0x10013cb5
cmp edi, 1
jne 0x10013bf0
mov edi, dword [esp + 0x2c]
mov dword [esp + 0xa0], ebp
mov ebp, dword [esp + 0x7bc]
mov dword [esp + 0x9c], ebx
mov ebx, dword [esp + 0x30]
add edx, 0x80000000
adc edx, 0x80000000
lea eax, [ebx - 1]
shr eax, 0x1f
sar edx, 1
lea ebx, [ebx + eax - 1]
sar ebx, 1
imul ebx, esi
mov eax, esi
imul eax, dword [esp + 0x3c]
add ecx, edi
lea ebp, [ebp + edi]
mov dword [esp + 0x38], eax
push 0
add ecx, eax
add ebp, eax
push esi
add ebp, edx
add ebp, ebx
push ebp
push ecx
mov ebx, dword [esp + 0xac]
mov ebp, dword [esp + 0xb0]
call dword [0x1031e3c4]
add esp, 0x10
jmp 0x10013d24
add ecx, dword [esp + 0x2c]
lea edi, [edx - 1]
shr edi, 0x1f
lea edx, [edx + edi - 1]
sar edx, 1
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x44]
mov edi, esi
imul edi, dword [esp + 0x3c]
cmp edx, 2
mov dword [esp + 0x38], edi
jne 0x10013c68
mov edx, edi
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x7bc]
mov dword [esp + 0x9c], ebx
add ecx, edx
lea edi, [eax + edi]
mov ebx, dword [esp + 0x30]
add ebx, 0x80000000
adc ebx, 0x80000000
add edi, edx
add edi, dword [esp + 0x40]
push 0
sar ebx, 1
imul ebx, esi
add edi, ebx
push esi
push edi
push ecx
mov ebx, dword [esp + 0xac]
call dword [0x1031e3c0]
add esp, 0x10
jmp 0x10013d24
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x7bc]
mov dword [esp + 0x9c], ebx
mov ebx, dword [esp + 0x30]
lea edx, [ebx - 1]
shr edx, 0x1f
lea ebx, [ebx + edx - 1]
mov edx, dword [esp + 0x38]
sar ebx, 1
imul ebx, esi
add ecx, edx
lea edi, [eax + edi]
add edi, edx
add edi, dword [esp + 0x40]
push 0
push esi
add edi, ebx
push edi
push ecx
mov ebx, dword [esp + 0xac]
call dword [0x1031e3c8]
add esp, 0x10
jmp 0x10013d24
mov edi, dword [esp + 0x2c]
mov dword [esp + 0xa0], ebp
mov ebp, dword [esp + 0x7bc]
mov dword [esp + 0x9c], ebx
mov ebx, dword [esp + 0x30]
add edx, 0x80000000
adc edx, 0x80000000
add ebx, 0x80000000
adc ebx, 0x80000000
sar edx, 1
mov eax, esi
imul eax, dword [esp + 0x3c]
add ecx, edi
mov dword [esp + 0x38], eax
push esi
sar ebx, 1
imul ebx, esi
add ecx, eax
lea ebp, [ebp + edi]
add ebp, eax
add ebp, edx
add ebp, ebx
push ebp
push ecx
mov ebx, dword [esp + 0xa8]
mov ebp, dword [esp + 0xac]
call dword [0x1031e3bc]
add esp, 0xc
mov edi, dword [esp + 0x64]
mov edx, dword [esp + 0x7dc]
mov ecx, dword [ebp + 0xc4]
lea edx, [edi + edx*8 + 8]
mov edi, dword [esp + 0x6c]
mov eax, dword [edi + 0x14]
mov dword [esp + 0x40], edx
mov edx, dword [edi + 0x10]
mov dword [esp + 0x30], eax
mov edi, edx
and edi, 1
add edi, edi
and eax, 1
add edi, eax
mov dword [esp + 0x44], edi
je 0x10013e9f
cmp edi, 1
jne 0x10013dda
mov edi, dword [esp + 0x34]
mov dword [esp + 0xa0], ebp
mov ebp, dword [esp + 0x7bc]
mov dword [esp + 0x9c], ebx
mov ebx, dword [esp + 0x30]
add edx, 0x80000000
adc edx, 0x80000000
lea eax, [ebx - 1]
shr eax, 0x1f
sar edx, 1
lea ebx, [ebx + eax - 1]
sar ebx, 1
imul ebx, esi
add ecx, edi
lea ebp, [ebp + edi]
mov eax, dword [esp + 0x40]
imul eax, esi
add ecx, eax
mov dword [esp + 0x40], eax
push 0
push esi
add ebp, eax
add ebp, edx
add ebp, ebx
push ebp
push ecx
mov ebx, dword [esp + 0xac]
mov ebp, dword [esp + 0xb0]
call dword [0x1031e3c4]
add esp, 0x10
jmp 0x10013f0e
add ecx, dword [esp + 0x34]
lea edi, [edx - 1]
shr edi, 0x1f
lea edx, [edx + edi - 1]
mov edi, dword [esp + 0x40]
imul edi, esi
sar edx, 1
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x40], edi
cmp edx, 2
jne 0x10013e52
mov edx, edi
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x7bc]
mov dword [esp + 0x9c], ebx
add ecx, edx
lea edi, [eax + edi]
mov ebx, dword [esp + 0x30]
add ebx, 0x80000000
adc ebx, 0x80000000
add edi, edx
add edi, dword [esp + 0x64]
push 0
sar ebx, 1
imul ebx, esi
add edi, ebx
push esi
push edi
push ecx
mov ebx, dword [esp + 0xac]
call dword [0x1031e3c0]
add esp, 0x10
jmp 0x10013f0e
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x7bc]
mov dword [esp + 0x9c], ebx
mov ebx, dword [esp + 0x30]
lea edx, [ebx - 1]
shr edx, 0x1f
lea ebx, [ebx + edx - 1]
mov edx, dword [esp + 0x40]
sar ebx, 1
imul ebx, esi
add ecx, edx
lea edi, [eax + edi]
add edi, edx
add edi, dword [esp + 0x64]
push 0
push esi
add edi, ebx
push edi
push ecx
mov ebx, dword [esp + 0xac]
call dword [0x1031e3c8]
add esp, 0x10
jmp 0x10013f0e
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x40]
imul eax, esi
mov dword [esp + 0xa0], ebp
mov ebp, dword [esp + 0x7bc]
mov dword [esp + 0x9c], ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x40], eax
push esi
add edx, 0x80000000
adc edx, 0x80000000
add ebx, 0x80000000
adc ebx, 0x80000000
sar edx, 1
add ecx, edi
sar ebx, 1
imul ebx, esi
add ecx, eax
lea ebp, [ebp + edi]
add ebp, eax
add ebp, edx
add ebp, ebx
push ebp
push ecx
mov ebx, dword [esp + 0xa8]
mov ebp, dword [esp + 0xac]
call dword [0x1031e3bc]
add esp, 0xc
mov edi, dword [esp + 0x6c]
mov ecx, dword [ebp + 0xc4]
mov edx, dword [edi + 0x18]
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x30], eax
mov edi, edx
and edi, 1
add edi, edi
and eax, 1
add edi, eax
mov dword [esp + 0x44], edi
je 0x10014066
cmp edi, 1
jne 0x10013faa
mov edi, dword [esp + 0x2c]
mov dword [esp + 0xa0], ebp
mov ebp, dword [esp + 0x7bc]
mov dword [esp + 0x9c], ebx
mov ebx, dword [esp + 0x30]
add edx, 0x80000000
adc edx, 0x80000000
lea eax, [ebx - 1]
shr eax, 0x1f
sar edx, 1
lea ebx, [ebx + eax - 1]
sar ebx, 1
imul ebx, esi
add ecx, edi
lea ebp, [ebp + edi]
mov eax, dword [esp + 0x40]
push 0
push esi
add ecx, eax
add ebp, eax
add ebp, edx
add ebp, ebx
push ebp
push ecx
mov ebx, dword [esp + 0xac]
mov ebp, dword [esp + 0xb0]
call dword [0x1031e3c4]
add esp, 0x10
jmp 0x100140ce
lea edi, [edx - 1]
shr edi, 0x1f
lea edi, [edx + edi - 1]
mov edx, dword [esp + 0x44]
sar edi, 1
cmp edx, 2
mov dword [esp + 0x64], edi
jne 0x10014017
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x7bc]
mov dword [esp + 0x9c], ebx
add ecx, edi
add ecx, edx
mov ebx, dword [esp + 0x30]
add ebx, 0x80000000
adc ebx, 0x80000000
lea edi, [eax + edi]
add edi, edx
add edi, dword [esp + 0x64]
push 0
push esi
sar ebx, 1
imul ebx, esi
add edi, ebx
push edi
push ecx
mov ebx, dword [esp + 0xac]
call dword [0x1031e3c0]
add esp, 0x10
jmp 0x100140ce
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x7bc]
mov dword [esp + 0x9c], ebx
mov ebx, dword [esp + 0x30]
lea edx, [ebx - 1]
shr edx, 0x1f
lea ebx, [ebx + edx - 1]
mov edx, dword [esp + 0x40]
sar ebx, 1
imul ebx, esi
add ecx, edi
add ecx, edx
lea edi, [eax + edi]
add edi, edx
add edi, dword [esp + 0x64]
add edi, ebx
push 0
push esi
push edi
push ecx
mov ebx, dword [esp + 0xac]
call dword [0x1031e3c8]
add esp, 0x10
jmp 0x100140ce
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x40]
mov dword [esp + 0xa0], ebp
mov ebp, dword [esp + 0x7bc]
mov dword [esp + 0x9c], ebx
mov ebx, dword [esp + 0x30]
push esi
add edx, 0x80000000
adc edx, 0x80000000
add ebx, 0x80000000
adc ebx, 0x80000000
sar edx, 1
add ecx, edi
sar ebx, 1
imul ebx, esi
add ecx, eax
lea ebp, [ebp + edi]
add ebp, eax
add ebp, edx
add ebp, ebx
push ebp
push ecx
mov ebx, dword [esp + 0xa8]
mov ebp, dword [esp + 0xac]
call dword [0x1031e3bc]
add esp, 0xc
mov edi, dword [esp + 0x7dc]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov edx, dword [ebp + 0xc8]
add ebx, ebx
add ebx, ebx
add ebx, ebx
lea edi, [edi + edi]
add edi, edi
add edi, edi
and ecx, 1
add ecx, ecx
and eax, 1
add ecx, eax
mov dword [esp + 0x30], ecx
je 0x10014262
cmp ecx, 1
jne 0x10014183
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0xa0], ebp
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x98], edi
mov dword [esp + 0x70], esi
mov esi, dword [esp + 0x7c0]
add ecx, 0x80000000
adc ecx, 0x80000000
lea eax, [ebp - 1]
shr eax, 0x1f
sar ecx, 1
lea ebp, [ebp + eax - 1]
mov eax, dword [esp + 0x74]
push 0
sar ebp, 1
imul ebp, eax
add edx, ebx
imul edi, eax
lea esi, [esi + ebx]
add edx, edi
push eax
add esi, edi
add esi, ecx
add esi, ebp
push esi
push edx
mov esi, dword [esp + 0x80]
mov edi, dword [esp + 0xa8]
mov ebp, dword [esp + 0xb0]
call dword [0x1031e3c4]
add esp, 0x10
jmp 0x100142d4
mov eax, dword [esp + 0x4c]
lea ecx, [eax - 1]
shr ecx, 0x1f
lea ecx, [eax + ecx - 1]
sar ecx, 1
add edx, ebx
mov dword [esp + 0x40], ecx
mov ecx, edi
imul ecx, dword [esp + 0x74]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x30]
cmp ecx, 2
jne 0x1001420a
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x7c0]
mov dword [esp + 0x70], esi
mov esi, dword [esp + 0x48]
mov dword [esp + 0x98], edi
mov edi, dword [esp + 0x74]
add esi, 0x80000000
adc esi, 0x80000000
add edx, ecx
lea eax, [eax + ebx]
sar esi, 1
imul esi, edi
add eax, ecx
add eax, dword [esp + 0x40]
push 0
add eax, esi
push edi
push eax
push edx
mov edi, dword [esp + 0xa8]
mov esi, dword [esp + 0x80]
call dword [0x1031e3c0]
add esp, 0x10
jmp 0x100142d4
mov eax, dword [esp + 0x7c0]
mov dword [esp + 0x70], esi
mov esi, dword [esp + 0x48]
lea ecx, [esi - 1]
shr ecx, 0x1f
mov dword [esp + 0x98], edi
mov edi, dword [esp + 0x74]
lea esi, [esi + ecx - 1]
sar esi, 1
imul esi, edi
lea eax, [eax + ebx]
mov ecx, dword [esp + 0x44]
add edx, ecx
add eax, ecx
add eax, dword [esp + 0x40]
push 0
push edi
add eax, esi
push eax
push edx
mov edi, dword [esp + 0xa8]
mov esi, dword [esp + 0x80]
call dword [0x1031e3c8]
add esp, 0x10
jmp 0x100142d4
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x74]
mov dword [esp + 0xa0], ebp
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x70], esi
mov esi, dword [esp + 0x7c0]
mov dword [esp + 0x98], edi
add ecx, 0x80000000
adc ecx, 0x80000000
push eax
sar ecx, 1
add ebp, 0x80000000
adc ebp, 0x80000000
add edx, ebx
imul edi, eax
sar ebp, 1
imul ebp, eax
add edx, edi
lea esi, [esi + ebx]
add esi, edi
add esi, ecx
add esi, ebp
push esi
push edx
mov edi, dword [esp + 0xa4]
mov esi, dword [esp + 0x7c]
mov ebp, dword [esp + 0xac]
call dword [0x1031e3bc]
add esp, 0xc
mov edx, dword [esp + 0x30]
mov ecx, dword [ebp + 0xcc]
test edx, edx
je 0x1001441c
cmp edx, 1
jne 0x10014355
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xa0], ebp
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x70], esi
mov esi, dword [esp + 0x7c4]
add eax, 0x80000000
adc eax, 0x80000000
lea edx, [ebp - 1]
shr edx, 0x1f
sar eax, 1
lea edx, [ebp + edx - 1]
sar edx, 1
add ecx, ebx
mov ebp, dword [esp + 0x74]
imul edi, ebp
imul edx, ebp
lea esi, [esi + ebx]
add ecx, edi
push 0
push ebp
add esi, edi
add esi, eax
add esi, edx
push esi
push ecx
mov esi, dword [esp + 0x80]
mov ebp, dword [esp + 0xb0]
call dword [0x1031e3c4]
add esp, 0x10
jmp 0x1001447e
imul edi, dword [esp + 0x74]
mov eax, dword [esp + 0x4c]
lea edx, [eax - 1]
shr edx, 0x1f
lea edx, [eax + edx - 1]
sar edx, 1
mov eax, dword [esp + 0x30]
add ecx, ebx
cmp eax, 2
jne 0x100143ca
mov eax, dword [esp + 0x48]
mov dword [esp + 0xa0], ebp
mov ebp, dword [esp + 0x74]
mov dword [esp + 0x70], esi
mov esi, dword [esp + 0x7c4]
push 0
add eax, 0x80000000
adc eax, 0x80000000
push ebp
add ecx, edi
sar eax, 1
imul eax, ebp
lea esi, [esi + ebx]
add esi, edi
add esi, edx
add esi, eax
push esi
push ecx
mov esi, dword [esp + 0x80]
mov ebp, dword [esp + 0xb0]
call dword [0x1031e3c0]
add esp, 0x10
jmp 0x1001447e
mov dword [esp + 0xa0], ebp
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x70], esi
lea eax, [ebp - 1]
mov esi, dword [esp + 0x7c4]
shr eax, 0x1f
lea eax, [ebp + eax - 1]
mov ebp, dword [esp + 0x74]
sar eax, 1
imul eax, ebp
add ecx, edi
lea esi, [esi + ebx]
push 0
push ebp
add esi, edi
add esi, edx
add esi, eax
push esi
push ecx
mov esi, dword [esp + 0x80]
mov ebp, dword [esp + 0xb0]
call dword [0x1031e3c8]
add esp, 0x10
jmp 0x1001447e
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov dword [esp + 0xa0], ebp
mov ebp, dword [esp + 0x74]
imul edi, ebp
mov dword [esp + 0x70], esi
mov esi, dword [esp + 0x7c4]
push ebp
add eax, 0x80000000
adc eax, 0x80000000
add edx, 0x80000000
adc edx, 0x80000000
sar eax, 1
add ecx, ebx
sar edx, 1
imul edx, ebp
add ecx, edi
lea esi, [esi + ebx]
add esi, edi
add esi, eax
add esi, edx
push esi
push ecx
mov esi, dword [esp + 0x7c]
mov ebp, dword [esp + 0xac]
call dword [0x1031e3bc]
add esp, 0xc
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x1001467d
mov edx, dword [esp + 0x6c]
mov edx, dword [edx + 0xec]
test edx, edx
jne 0x100144f5
mov ecx, dword [ebp + 0xf4]
mov eax, dword [ebp + 0xe8]
mov dword [esp + 0x28], 0
lea edx, [ecx + 0x40]
mov dword [esp + 0xc], edx
mov dword [esp + 0x24], esi
lea edx, [ecx + 0x80]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x5c]
mov edx, dword [edx]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x58]
mov edx, dword [edx]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x7c8]
call fcn.10015b10
jmp 0x10014ea9
cmp edx, 1
je 0x10014497
mov ecx, dword [ebp + 0xf4]
mov eax, dword [ebp + 0xe8]
mov dword [esp + 0x28], 0
lea edx, [ecx + 0x40]
mov dword [esp + 0xc], edx
mov dword [esp + 0x24], esi
lea edx, [ecx + 0x80]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x5c]
mov edx, dword [edx]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x58]
mov edx, dword [edx]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x7c8]
call fcn.100155d0
mov edx, dword [esp + 0x34]
mov ecx, dword [ebp + 0xf4]
mov dword [esp + 0x28], 0
lea edx, [edx + 8]
mov dword [esp + 0x44], edx
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x24], esi
lea eax, [ecx + 0x40]
mov dword [esp + 0xc], eax
lea eax, [ecx + 0x80]
mov dword [esp + 0x10], eax
mov eax, dword [edx + 0x170]
mov edx, dword [edx + 0x174]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xe8]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x7c8]
call fcn.100155d0
mov edx, dword [esp + 0x3c]
mov ecx, dword [ebp + 0xf4]
mov dword [esp + 0x28], 0
add edx, 8
mov dword [esp + 0x3c], edx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x24], esi
lea eax, [ecx + 0x40]
mov dword [esp + 0xc], eax
lea eax, [ecx + 0x80]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x178]
mov edx, dword [edx + 0x17c]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xe8]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x7c8]
call fcn.100155d0
mov ecx, dword [ebp + 0xf4]
mov dword [esp + 0x28], 0
lea edx, [ecx + 0x40]
mov dword [esp + 0xc], edx
mov dword [esp + 0x24], esi
lea edx, [ecx + 0x80]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x6c]
mov eax, dword [edx + 0x180]
mov edx, dword [edx + 0x184]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xe8]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x7c8]
call fcn.100155d0
jmp 0x10014ea9
mov edx, dword [esp + 0x5c]
mov ecx, dword [ebp + 0xe8]
mov eax, dword [edx]
mov edx, dword [esp + 0x58]
mov edx, dword [edx]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x40], edx
and eax, 1
add eax, eax
and edx, 1
add eax, edx
mov dword [esp + 0x44], eax
je 0x100147ef
mov edx, eax
cmp edx, 1
jne 0x10014735
mov edx, dword [esp + 0x2c]
mov dword [esp + 0xa0], ebp
mov ebp, dword [esp + 0x7c8]
add edx, 0x80000000
adc edx, 0x80000000
mov dword [esp + 0x9c], ebx
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x98], edi
mov edi, dword [esp + 0x34]
sar edx, 1
lea eax, [ebx - 1]
shr eax, 0x1f
lea ebx, [ebx + eax - 1]
mov eax, dword [esp + 0x38]
push 0
sar ebx, 1
imul ebx, esi
add ecx, edi
add ecx, eax
push esi
lea ebp, [ebp + edi]
add ebp, eax
add ebp, edx
add ebp, ebx
push ebp
push ecx
mov edi, dword [esp + 0xa8]
mov ebx, dword [esp + 0xac]
mov ebp, dword [esp + 0xb0]
call dword [0x1031e3c4]
add esp, 0x10
jmp 0x10014869
add ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
lea edx, [eax - 1]
shr edx, 0x1f
lea edx, [eax + edx - 1]
sar edx, 1
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x44]
cmp edx, 2
jne 0x100147a5
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x98], edi
mov edi, dword [esp + 0x40]
add edi, 0x80000000
adc edi, 0x80000000
add ecx, edx
add eax, dword [esp + 0x7c8]
sar edi, 1
imul edi, esi
add eax, edx
add eax, dword [esp + 0x5c]
push 0
add eax, edi
push esi
push eax
push ecx
mov edi, dword [esp + 0xa8]
call dword [0x1031e3c0]
add esp, 0x10
jmp 0x10014869
mov eax, dword [esp + 0x34]
mov dword [esp + 0x98], edi
mov edi, dword [esp + 0x40]
lea edx, [edi - 1]
shr edx, 0x1f
lea edi, [edi + edx - 1]
mov edx, dword [esp + 0x38]
sar edi, 1
imul edi, esi
add ecx, edx
add eax, dword [esp + 0x7c8]
add eax, edx
add eax, dword [esp + 0x5c]
push 0
push esi
add eax, edi
push eax
push ecx
mov edi, dword [esp + 0xa8]
call dword [0x1031e3c8]
add esp, 0x10
jmp 0x10014869
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x38]
mov dword [esp + 0xa0], ebp
mov ebp, dword [esp + 0x7c8]
mov dword [esp + 0x9c], ebx
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x98], edi
add edx, 0x80000000
adc edx, 0x80000000
mov edi, dword [esp + 0x34]
add ebx, 0x80000000
adc ebx, 0x80000000
push esi
sar edx, 1
sar ebx, 1
imul ebx, esi
add ecx, edi
add ecx, eax
lea ebp, [ebp + edi]
add ebp, eax
add ebp, edx
add ebp, ebx
push ebp
push ecx
mov edi, dword [esp + 0xa4]
mov ebx, dword [esp + 0xa8]
mov ebp, dword [esp + 0xac]
call dword [0x1031e3bc]
add esp, 0xc
mov edx, dword [esp + 0x34]
mov ecx, dword [ebp + 0xe8]
lea edx, [edx + 8]
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x6c]
mov eax, dword [edx + 0x170]
mov edx, dword [edx + 0x174]
mov dword [esp + 0x40], eax
and eax, 1
mov dword [esp + 0x30], edx
add eax, eax
and edx, 1
add eax, edx
mov dword [esp + 0x44], eax
je 0x10014a0c
mov edx, eax
cmp edx, 1
jne 0x10014930
mov edx, dword [esp + 0x40]
mov dword [esp + 0xa0], ebp
mov ebp, dword [esp + 0x7c8]
add edx, 0x80000000
adc edx, 0x80000000
mov dword [esp + 0x9c], ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x98], edi
mov edi, dword [esp + 0x5c]
sar edx, 1
lea eax, [ebx - 1]
shr eax, 0x1f
lea ebx, [ebx + eax - 1]
mov eax, dword [esp + 0x38]
push 0
sar ebx, 1
imul ebx, esi
add ecx, edi
add ecx, eax
push esi
lea ebp, [ebp + edi]
add ebp, eax
add ebp, edx
add ebp, ebx
push ebp
push ecx
mov edi, dword [esp + 0xa8]
mov ebx, dword [esp + 0xac]
mov ebp, dword [esp + 0xb0]
call dword [0x1031e3c4]
add esp, 0x10
jmp 0x10014a86
add ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x40]
lea edx, [eax - 1]
shr edx, 0x1f
lea edx, [eax + edx - 1]
sar edx, 1
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x44]
cmp edx, 2
jne 0x100149b1
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x7c8]
mov dword [esp + 0x9c], ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x98], edi
mov edi, dword [esp + 0x5c]
add ebx, 0x80000000
adc ebx, 0x80000000
add ecx, edx
lea edi, [eax + edi]
sar ebx, 1
imul ebx, esi
add edi, edx
add edi, dword [esp + 0x58]
push 0
add edi, ebx
push esi
push edi
push ecx
mov edi, dword [esp + 0xa8]
mov ebx, dword [esp + 0xac]
call dword [0x1031e3c0]
add esp, 0x10
jmp 0x10014a86
mov eax, dword [esp + 0x7c8]
mov dword [esp + 0x9c], ebx
mov ebx, dword [esp + 0x30]
lea edx, [ebx - 1]
shr edx, 0x1f
mov dword [esp + 0x98], edi
mov edi, dword [esp + 0x5c]
lea ebx, [ebx + edx - 1]
sar ebx, 1
imul ebx, esi
lea edi, [eax + edi]
mov edx, dword [esp + 0x38]
add ecx, edx
add edi, edx
add edi, dword [esp + 0x58]
push 0
push esi
add edi, ebx
push edi
push ecx
mov edi, dword [esp + 0xa8]
mov ebx, dword [esp + 0xac]
call dword [0x1031e3c8]
add esp, 0x10
jmp 0x10014a86
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov dword [esp + 0xa0], ebp
mov ebp, dword [esp + 0x7c8]
mov dword [esp + 0x9c], ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x98], edi
add edx, 0x80000000
adc edx, 0x80000000
mov edi, dword [esp + 0x5c]
add ebx, 0x80000000
adc ebx, 0x80000000
push esi
sar edx, 1
sar ebx, 1
imul ebx, esi
add ecx, edi
add ecx, eax
lea ebp, [ebp + edi]
add ebp, eax
add ebp, edx
add ebp, ebx
push ebp
push ecx
mov edi, dword [esp + 0xa4]
mov ebx, dword [esp + 0xa8]
mov ebp, dword [esp + 0xac]
call dword [0x1031e3bc]
add esp, 0xc
mov edx, dword [esp + 0x6c]
mov ecx, dword [ebp + 0xe8]
mov eax, dword [edx + 0x178]
mov edx, dword [edx + 0x17c]
mov dword [esp + 0x40], eax
add dword [esp + 0x3c], 8
and eax, 1
add eax, eax
mov dword [esp + 0x30], edx
and edx, 1
add eax, edx
mov dword [esp + 0x44], eax
je 0x10014c16
mov edx, eax
cmp edx, 1
jne 0x10014b4e
mov edx, dword [esp + 0x40]
mov dword [esp + 0xa0], ebp
mov ebp, dword [esp + 0x7c8]
add edx, 0x80000000
adc edx, 0x80000000
mov dword [esp + 0x9c], ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x98], edi
mov edi, dword [esp + 0x34]
sar edx, 1
lea eax, [ebx - 1]
shr eax, 0x1f
lea ebx, [ebx + eax - 1]
mov eax, dword [esp + 0x3c]
imul eax, esi
mov dword [esp + 0x3c], eax
push 0
push esi
sar ebx, 1
imul ebx, esi
add ecx, edi
add ecx, eax
lea ebp, [ebp + edi]
add ebp, eax
add ebp, edx
add ebp, ebx
push ebp
push ecx
mov edi, dword [esp + 0xa8]
mov ebx, dword [esp + 0xac]
mov ebp, dword [esp + 0xb0]
call dword [0x1031e3c4]
add esp, 0x10
jmp 0x10014c97
add ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x40]
lea edx, [eax - 1]
shr edx, 0x1f
lea edx, [eax + edx - 1]
sar edx, 1
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x3c]
imul edx, esi
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x44]
cmp edx, 2
jne 0x10014bc9
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x98], edi
mov edi, dword [esp + 0x30]
add edi, 0x80000000
adc edi, 0x80000000
add ecx, edx
add eax, dword [esp + 0x7c8]
sar edi, 1
imul edi, esi
add eax, edx
add eax, dword [esp + 0x58]
push 0
add eax, edi
push esi
push eax
push ecx
mov edi, dword [esp + 0xa8]
call dword [0x1031e3c0]
add esp, 0x10
jmp 0x10014c97
mov eax, dword [esp + 0x34]
mov dword [esp + 0x98], edi
mov edi, dword [esp + 0x30]
lea edx, [edi - 1]
shr edx, 0x1f
lea edi, [edi + edx - 1]
mov edx, dword [esp + 0x3c]
sar edi, 1
imul edi, esi
add ecx, edx
add eax, dword [esp + 0x7c8]
add eax, edx
add eax, dword [esp + 0x58]
push 0
push esi
add eax, edi
push eax
push ecx
mov edi, dword [esp + 0xa8]
call dword [0x1031e3c8]
add esp, 0x10
jmp 0x10014c97
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
imul eax, esi
mov dword [esp + 0xa0], ebp
mov ebp, dword [esp + 0x7c8]
mov dword [esp + 0x9c], ebx
mov ebx, dword [esp + 0x30]
add edx, 0x80000000
adc edx, 0x80000000
mov dword [esp + 0x98], edi
mov edi, dword [esp + 0x34]
mov dword [esp + 0x3c], eax
push esi
sar edx, 1
add ebx, 0x80000000
adc ebx, 0x80000000
add ecx, edi
add ecx, eax
sar ebx, 1
imul ebx, esi
lea ebp, [ebp + edi]
add ebp, eax
add ebp, edx
add ebp, ebx
push ebp
push ecx
mov edi, dword [esp + 0xa4]
mov ebx, dword [esp + 0xa8]
mov ebp, dword [esp + 0xac]
call dword [0x1031e3bc]
add esp, 0xc
mov edx, dword [esp + 0x6c]
mov ecx, dword [ebp + 0xe8]
mov eax, dword [edx + 0x180]
mov edx, dword [edx + 0x184]
mov dword [esp + 0x40], eax
mov dword [esp + 0x30], edx
and eax, 1
add eax, eax
and edx, 1
add eax, edx
mov dword [esp + 0x44], eax
je 0x10014e2f
mov edx, eax
cmp edx, 1
jne 0x10014d53
mov edx, dword [esp + 0x40]
mov dword [esp + 0xa0], ebp
mov ebp, dword [esp + 0x7c8]
add edx, 0x80000000
adc edx, 0x80000000
mov dword [esp + 0x9c], ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x98], edi
mov edi, dword [esp + 0x5c]
sar edx, 1
lea eax, [ebx - 1]
shr eax, 0x1f
lea ebx, [ebx + eax - 1]
mov eax, dword [esp + 0x3c]
push 0
sar ebx, 1
imul ebx, esi
add ecx, edi
add ecx, eax
push esi
lea ebp, [ebp + edi]
add ebp, eax
add ebp, edx
add ebp, ebx
push ebp
push ecx
mov edi, dword [esp + 0xa8]
mov ebx, dword [esp + 0xac]
mov ebp, dword [esp + 0xb0]
call dword [0x1031e3c4]
add esp, 0x10
jmp 0x10014ea9
mov eax, dword [esp + 0x40]
lea edx, [eax - 1]
shr edx, 0x1f
lea edx, [eax + edx - 1]
sar edx, 1
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x44]
cmp edx, 2
jne 0x10014dd2
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x7c8]
mov dword [esp + 0x9c], ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x98], edi
mov edi, dword [esp + 0x5c]
add ebx, 0x80000000
adc ebx, 0x80000000
add ecx, edi
add ecx, edx
sar ebx, 1
imul ebx, esi
lea edi, [eax + edi]
add edi, edx
add edi, dword [esp + 0x58]
push 0
add edi, ebx
push esi
push edi
push ecx
mov edi, dword [esp + 0xa8]
mov ebx, dword [esp + 0xac]
call dword [0x1031e3c0]
add esp, 0x10
jmp 0x10014ea9
mov eax, dword [esp + 0x7c8]
mov dword [esp + 0x9c], ebx
mov ebx, dword [esp + 0x30]
lea edx, [ebx - 1]
shr edx, 0x1f
mov dword [esp + 0x98], edi
mov edi, dword [esp + 0x5c]
lea ebx, [ebx + edx - 1]
sar ebx, 1
imul ebx, esi
add ecx, edi
lea edi, [eax + edi]
mov edx, dword [esp + 0x3c]
add ecx, edx
add edi, edx
add edi, dword [esp + 0x58]
push 0
push esi
add edi, ebx
push edi
push ecx
mov edi, dword [esp + 0xa8]
mov ebx, dword [esp + 0xac]
call dword [0x1031e3c8]
add esp, 0x10
jmp 0x10014ea9
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xa0], ebp
mov ebp, dword [esp + 0x7c8]
mov dword [esp + 0x9c], ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x98], edi
add edx, 0x80000000
adc edx, 0x80000000
mov edi, dword [esp + 0x5c]
add ebx, 0x80000000
adc ebx, 0x80000000
push esi
sar edx, 1
sar ebx, 1
imul ebx, esi
add ecx, edi
add ecx, eax
lea ebp, [ebp + edi]
add ebp, eax
add ebp, edx
add ebp, ebx
push ebp
push ecx
mov edi, dword [esp + 0xa4]
mov ebx, dword [esp + 0xa8]
mov ebp, dword [esp + 0xac]
call dword [0x1031e3bc]
add esp, 0xc
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov edx, dword [ebp + 0xec]
and ecx, 1
add ecx, ecx
and eax, 1
add ecx, eax
mov dword [esp + 0x30], ecx
je 0x10014fe7
cmp ecx, 1
jne 0x10014f37
mov eax, dword [esp + 0x54]
mov dword [esp + 0xa0], ebp
mov ebp, dword [esp + 0x50]
mov dword [esp + 0x70], esi
mov esi, dword [esp + 0x7cc]
add eax, 0x80000000
adc eax, 0x80000000
lea ecx, [ebp - 1]
shr ecx, 0x1f
sar eax, 1
lea ecx, [ebp + ecx - 1]
mov ebp, dword [esp + 0x74]
push 0
sar ecx, 1
imul ecx, ebp
add edx, ebx
add edx, edi
push ebp
lea esi, [esi + ebx]
add esi, edi
add esi, eax
add esi, ecx
push esi
push edx
mov esi, dword [esp + 0x80]
mov ebp, dword [esp + 0xb0]
call dword [0x1031e3c4]
add esp, 0x10
jmp 0x10015046
mov eax, dword [esp + 0x54]
lea ecx, [eax - 1]
shr ecx, 0x1f
lea ecx, [eax + ecx - 1]
sar ecx, 1
add edx, ebx
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x30]
cmp ecx, 2
jne 0x10014fa1
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x7cc]
mov dword [esp + 0x70], esi
mov esi, dword [esp + 0x74]
add ecx, 0x80000000
adc ecx, 0x80000000
add edx, edi
lea eax, [eax + ebx]
sar ecx, 1
imul ecx, esi
add eax, edi
add eax, dword [esp + 0x44]
push 0
push esi
add eax, ecx
push eax
push edx
mov esi, dword [esp + 0x80]
call dword [0x1031e3c0]
add esp, 0x10
jmp 0x10015046
mov eax, dword [esp + 0x7cc]
mov dword [esp + 0x70], esi
mov esi, dword [esp + 0x50]
lea ecx, [esi - 1]
shr ecx, 0x1f
lea ecx, [esi + ecx - 1]
mov esi, dword [esp + 0x74]
sar ecx, 1
imul ecx, esi
add edx, edi
lea eax, [eax + ebx]
add eax, edi
add eax, dword [esp + 0x44]
push 0
push esi
add eax, ecx
push eax
push edx
mov esi, dword [esp + 0x80]
call dword [0x1031e3c8]
add esp, 0x10
jmp 0x10015046
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0xa0], ebp
mov ebp, dword [esp + 0x74]
mov dword [esp + 0x70], esi
mov esi, dword [esp + 0x7cc]
push ebp
add eax, 0x80000000
adc eax, 0x80000000
add ecx, 0x80000000
adc ecx, 0x80000000
sar eax, 1
add edx, ebx
sar ecx, 1
imul ecx, ebp
add edx, edi
lea esi, [esi + ebx]
add esi, edi
add esi, eax
add esi, ecx
push esi
push edx
mov esi, dword [esp + 0x7c]
mov ebp, dword [esp + 0xac]
call dword [0x1031e3bc]
add esp, 0xc
mov edx, dword [esp + 0x30]
mov ecx, dword [ebp + 0xf0]
test edx, edx
je 0x10015186
cmp edx, 1
jne 0x100150c4
mov eax, dword [esp + 0x54]
mov dword [esp + 0xa0], ebp
mov ebp, dword [esp + 0x50]
mov dword [esp + 0x70], esi
mov esi, dword [esp + 0x7d0]
add eax, 0x80000000
adc eax, 0x80000000
lea edx, [ebp - 1]
shr edx, 0x1f
sar eax, 1
lea edx, [ebp + edx - 1]
sar edx, 1
add ecx, ebx
mov ebp, dword [esp + 0x74]
imul edx, ebp
add ecx, edi
push 0
push ebp
lea esi, [esi + ebx]
add esi, edi
add esi, eax
add esi, edx
push esi
push ecx
mov esi, dword [esp + 0x80]
mov ebp, dword [esp + 0xb0]
call dword [0x1031e3c4]
add esp, 0x10
jmp 0x100151e5
mov eax, dword [esp + 0x54]
lea edx, [eax - 1]
shr edx, 0x1f
lea edx, [eax + edx - 1]
sar edx, 1
add ecx, ebx
mov eax, dword [esp + 0x30]
cmp eax, 2
jne 0x10015134
mov eax, dword [esp + 0x50]
mov dword [esp + 0xa0], ebp
mov ebp, dword [esp + 0x74]
mov dword [esp + 0x70], esi
mov esi, dword [esp + 0x7d0]
push 0
add eax, 0x80000000
adc eax, 0x80000000
push ebp
add ecx, edi
sar eax, 1
imul eax, ebp
lea esi, [esi + ebx]
add esi, edi
add esi, edx
add esi, eax
push esi
push ecx
mov esi, dword [esp + 0x80]
mov ebp, dword [esp + 0xb0]
call dword [0x1031e3c0]
add esp, 0x10
jmp 0x100151e5
mov dword [esp + 0xa0], ebp
mov ebp, dword [esp + 0x50]
mov dword [esp + 0x70], esi
lea eax, [ebp - 1]
mov esi, dword [esp + 0x7d0]
shr eax, 0x1f
lea eax, [ebp + eax - 1]
mov ebp, dword [esp + 0x74]
sar eax, 1
imul eax, ebp
add ecx, edi
lea esi, [esi + ebx]
push 0
push ebp
add esi, edi
add esi, edx
add esi, eax
push esi
push ecx
mov esi, dword [esp + 0x80]
mov ebp, dword [esp + 0xb0]
call dword [0x1031e3c8]
add esp, 0x10
jmp 0x100151e5
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
mov dword [esp + 0xa0], ebp
mov ebp, dword [esp + 0x74]
mov dword [esp + 0x70], esi
mov esi, dword [esp + 0x7d0]
push ebp
add eax, 0x80000000
adc eax, 0x80000000
add edx, 0x80000000
adc edx, 0x80000000
sar eax, 1
add ecx, ebx
sar edx, 1
imul edx, ebp
add ecx, edi
lea esi, [esi + ebx]
add esi, edi
add esi, eax
add esi, edx
push esi
push ecx
mov esi, dword [esp + 0x7c]
mov ebp, dword [esp + 0xac]
call dword [0x1031e3bc]
add esp, 0xc
mov eax, dword [esp + 0x34]
mov edx, dword [ebp + 0xc4]
mov ecx, dword [ebp + 0xe8]
mov dword [esp + 0x98], edi
add edx, eax
add ecx, eax
mov edi, dword [esp + 0x38]
push 8
push 1
add edx, edi
push esi
add ecx, edi
push ecx
push edx
push edx
mov edi, dword [esp + 0xb0]
call dword [0x1031e3cc]
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov eax, dword [ebp + 0xe8]
mov dword [esp + 0xb0], edi
mov edi, dword [ebp + 0xc4]
push 8
push 1
add edi, edx
lea edi, [edi + ecx + 8]
push esi
add eax, edx
lea edx, [eax + ecx + 8]
push edx
push edi
push edi
mov edi, dword [esp + 0xc8]
call dword [0x1031e3cc]
mov eax, dword [esp + 0x64]
mov edx, dword [ebp + 0xc4]
mov ecx, dword [ebp + 0xe8]
mov dword [esp + 0xcc], ebx
mov ebx, dword [esp + 0xa8]
mov dword [esp + 0xc8], edi
mov edi, dword [esp + 0x68]
add edx, eax
add edx, edi
push 8
push 1
add edx, ebx
add ecx, eax
push esi
add ecx, edi
add ecx, ebx
push ecx
push edx
push edx
mov edi, dword [esp + 0xe0]
mov ebx, dword [esp + 0xe4]
call dword [0x1031e3cc]
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x80]
mov eax, dword [ebp + 0xe8]
mov dword [esp + 0xe4], ebx
mov ebx, dword [esp + 0xa8]
mov dword [esp + 0xe0], edi
push 8
mov edi, dword [ebp + 0xc4]
push 1
push esi
add edi, ecx
add edi, edx
lea edi, [edi + ebx*4 + 8]
add eax, ecx
add eax, edx
lea edx, [eax + ebx*4 + 8]
push edx
push edi
push edi
mov edi, dword [esp + 0xf8]
mov ebx, dword [esp + 0xfc]
call dword [0x1031e3cc]
push 8
push 1
mov edx, dword [ebp + 0xc8]
mov ecx, dword [ebp + 0xec]
mov eax, dword [esp + 0xdc]
push eax
add edx, ebx
add edx, edi
add ecx, ebx
add ecx, edi
push ecx
push edx
push edx
call dword [0x1031e3cc]
add esp, 0x78
push 8
push 1
mov edx, dword [ebp + 0xcc]
mov ecx, dword [ebp + 0xf0]
add edx, ebx
add edx, edi
add ecx, ebx
mov ebx, dword [esp + 0x7c]
add ecx, edi
push ebx
push ecx
push edx
push edx
call dword [0x1031e3cc]
add esp, 0x18
mov dword [esp + 0x70], esi
xor edi, edi
mov bl, 5
mov edx, dword [ebp + 0x88]
test edx, edx
je 0x10015370
mov edx, 2
jmp 0x10015372
xor edx, edx
mov eax, dword [esp + 0x90]
mov esi, 1
mov cl, bl
shl esi, cl
test esi, eax
je 0x10015467
lea ecx, [esp + 0xe3]
and ecx, 0xffffffc0
lea esi, [edi + edi]
add esi, esi
add esi, esi
add esi, esi
add esi, esi
add esi, esi
add esi, esi
add ecx, esi
xor eax, eax
mov dword [ecx], eax
mov dword [esp + 0x64], ecx
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], eax
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], eax
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x2c], eax
mov dword [ecx + 0x30], eax
mov dword [ecx + 0x34], eax
mov dword [ecx + 0x38], eax
mov dword [ecx + 0x3c], eax
mov dword [ecx + 0x40], eax
mov dword [ecx + 0x44], eax
mov dword [ecx + 0x48], eax
mov dword [ecx + 0x4c], eax
mov dword [ecx + 0x50], eax
mov dword [ecx + 0x54], eax
mov dword [ecx + 0x58], eax
mov dword [ecx + 0x5c], eax
mov dword [ecx + 0x60], eax
mov dword [ecx + 0x64], eax
mov dword [ecx + 0x68], eax
mov dword [ecx + 0x6c], eax
mov dword [ecx + 0x70], eax
mov dword [ecx + 0x74], eax
mov dword [ecx + 0x78], eax
mov dword [ecx + 0x7c], eax
push edx
mov edx, ecx
push edx
push dword [esp + 0x7e8]
call fcn.10038f5c
add esp, 0xc
lea eax, [esp + 0x463]
mov edx, dword [ebp + 0x14]
test edx, edx
jne 0x10015446
mov edx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x68]
and eax, 0xffffffc0
add esi, eax
push edx
push esi
call dword [0x1031e448]
add esp, 0xc
jmp 0x1001545f
mov edx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x68]
and eax, 0xffffffc0
add esi, eax
push edx
push esi
call dword [0x1031e434]
add esp, 0xc
push esi
call dword [0x1031e450]
pop ecx
add bl, 0xff
add edi, 1
cmp edi, 6
jb 0x1001535f
mov esi, dword [esp + 0x70]
mov eax, dword [ebp + 0x80]
test eax, eax
je 0x10015498
mov edx, dword [esp + 0x6c]
mov eax, dword [edx + 0xf4]
test eax, eax
je 0x10015498
mov dword [esp + 0x78], esi
add esi, esi
mov eax, dword [esp + 0x90]
test al, 0x20
je 0x100154c0
lea edx, [esp + 0x463]
push esi
and edx, 0xffffffc0
push edx
mov eax, dword [esp + 0x8c]
push eax
call dword [0x1031e3b8]
add esp, 0xc
mov eax, dword [esp + 0x90]
test al, 0x10
je 0x100154f6
mov ecx, dword [esp + 0x80]
mov ebx, dword [esp + 0x7c]
lea edx, [esp + 0x463]
push esi
lea eax, [ebx + ecx + 8]
and edx, 0xffffffc0
add edx, 0x80
push edx
push eax
call dword [0x1031e3b8]
add esp, 0xc
mov eax, dword [esp + 0x90]
test al, 8
je 0x1001552b
mov ebx, dword [esp + 0x84]
mov ecx, dword [esp + 0x78]
lea edx, [esp + 0x463]
push esi
lea eax, [ebx + ecx]
and edx, 0xffffffc0
add edx, 0x100
push edx
push eax
call dword [0x1031e3b8]
add esp, 0xc
mov eax, dword [esp + 0x90]
test al, 4
je 0x10015561
mov ebx, dword [esp + 0x84]
mov ecx, dword [esp + 0x78]
lea edx, [esp + 0x463]
push esi
lea eax, [ebx + ecx + 8]
and edx, 0xffffffc0
add edx, 0x180
push edx
push eax
call dword [0x1031e3b8]
add esp, 0xc
mov eax, dword [esp + 0x90]
test al, 2
je 0x10015593
mov ecx, dword [esp + 0x74]
lea edx, [esp + 0x463]
push ecx
and edx, 0xffffffc0
add edx, 0x200
push edx
mov eax, dword [esp + 0x90]
push eax
call dword [0x1031e3b8]
add esp, 0xc
mov eax, dword [esp + 0x90]
test al, 1
je 0x100155c5
mov ecx, dword [esp + 0x74]
lea edx, [esp + 0x463]
push ecx
and edx, 0xffffffc0
add edx, 0x280
push edx
mov eax, dword [esp + 0x94]
push eax
call dword [0x1031e3b8]
add esp, 0xc
add esp, 0x7a4
pop ebx
pop ebp
pop esi
pop edi
ret