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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x224
mov eax, dword [0x5b16b0]
xor eax, esp
mov dword [esp + 0x220], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x7c], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
mov dword [esp + 0x34], eax
mov dword [esp + 0x100], edx
mov edx, dword [eax*8 + 0x5893d0]
mov eax, dword [eax*8 + 0x5893d4]
mov dword [esp + 0x84], eax
xor eax, eax
mov dword [esp + 0xa4], edx
mov edx, dword [ecx + 0x17c]
mov dword [esp + 0xc4], eax
mov dword [esp + 0xdc], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0xa8], edx
mov edx, dword [ecx + 0x1f44]
mov dword [esp + 0x54], eax
mov eax, dword [ecx + 0x1f48]
mov dword [esp + 0xa0], edx
mov edx, dword [ecx + 0x1f4c]
mov dword [esp + 0x94], eax
mov eax, dword [ecx + 0x1f50]
mov dword [esp + 0x8c], edx
movsx edx, word [edi + 0x40]
mov dword [esp + 0x98], eax
mov eax, dword [edi + 4]
lea esi, [edx + edx]
mov ebx, esi
mov esi, eax
sub esi, ebx
movsx ebx, word [edi + 0x42]
mov dword [esp + 0x28], esi
lea esi, [ebx + ebx]
sub eax, esi
mov esi, dword [esp + 0x8c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xa0]
add eax, eax
add esi, esi
add eax, eax
add esi, esi
cmp edx, eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0xcc], 0x10000000
jge 0x511fbc
mov edx, eax
jmp 0x511fc2
cmp edx, esi
jle 0x511fc2
mov edx, esi
mov esi, dword [esp + 0x94]
mov eax, dword [esp + 0x98]
add esi, esi
add eax, eax
add esi, esi
add eax, eax
cmp ebx, esi
mov dword [esp + 0x10], edx
jl 0x511fe8
cmp ebx, eax
mov esi, eax
jg 0x511fe8
mov esi, ebx
lea eax, [edx + 2]
sar eax, 2
mov dword [esp + 0xb4], eax
lea eax, [esi + 2]
sar eax, 2
cmp dword [ecx + 0x1f08], 3
mov dword [esp + 0xac], eax
mov ebx, 0x10000000
jl 0x512257
mov ecx, dword [esp + 0x10]
movzx edx, cx
mov eax, esi
shl eax, 0x10
add eax, edx
mov edx, dword [esp + 0xa4]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x84]
push eax
mov eax, dword [edi + 0x38]
push edx
push esi
push ecx
push eax
lea eax, [edi + 0x10]
push eax
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [eax + 0x4cd0]
lea edx, [esp + 0x13c]
push edx
mov dword [esp + 0x58], 0x10
call ecx
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [edi + 0x28]
push 0x10
push eax
mov eax, dword [ecx + edx*4 + 0x4b78]
call eax
mov ecx, dword [esp + 0x50]
movsx edx, word [ecx + esi*2]
mov ecx, dword [esp + 0x58]
add eax, edx
mov edx, dword [esp + 0x40]
movsx ecx, word [ecx + edx*2]
add eax, ecx
add esp, 0x30
cmp eax, ebx
jge 0x5120b2
mov dword [esp + 0xcc], eax
mov dword [esp + 0xc4], edx
mov dword [esp + 0xdc], esi
xor ecx, ecx
cmp dword [ebp + 0x14], ecx
mov dword [esp + 0x1c], ecx
jle 0x5121e7
mov eax, dword [esp + 0x88]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x5121d7
mov edx, dword [esp + 0x68]
sub edx, eax
je 0x5121d7
mov esi, dword [esp + 0x88]
mov edx, dword [esp + 0xa0]
movsx eax, word [esi + ecx*4]
add edx, edx
add edx, edx
cmp eax, edx
jge 0x5120ff
mov dword [esp + 0x5c], edx
jmp 0x512116
mov edx, dword [esp + 0x8c]
add edx, edx
add edx, edx
cmp eax, edx
mov dword [esp + 0x5c], edx
jg 0x512116
mov dword [esp + 0x5c], eax
movsx eax, word [esi + ecx*4 + 2]
mov esi, dword [esp + 0x94]
add esi, esi
add esi, esi
cmp eax, esi
jl 0x51213b
mov esi, dword [esp + 0x98]
add esi, esi
add esi, esi
cmp eax, esi
jg 0x51213b
mov esi, eax
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0x5c]
push eax
mov eax, dword [edi + 0x38]
push ecx
push esi
push edx
push eax
lea eax, [edi + 0x10]
push eax
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [eax + 0x4cd0]
lea edx, [esp + 0x13c]
push edx
mov dword [esp + 0x58], 0x10
call ecx
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x50]
push eax
mov eax, dword [edi + 0x28]
push 0x10
push eax
mov eax, dword [edx + ecx*4 + 0x4b78]
call eax
mov ecx, dword [esp + 0x50]
movsx edx, word [ecx + esi*2]
mov ecx, dword [esp + 0x58]
add eax, edx
mov edx, dword [esp + 0x8c]
movsx ecx, word [ecx + edx*2]
add eax, ecx
mov ecx, dword [esp + 0x4c]
add esp, 0x30
cmp eax, dword [esp + 0xcc]
jge 0x5121d7
mov dword [esp + 0xcc], eax
mov dword [esp + 0xc4], edx
mov dword [esp + 0xdc], esi
add ecx, 1
cmp ecx, dword [ebp + 0x14]
mov dword [esp + 0x1c], ecx
jl 0x5120c1
mov esi, dword [esp + 0xdc]
mov eax, dword [edi + 0x38]
mov ecx, dword [esp + 0xc4]
mov edx, dword [esp + 0x34]
push eax
add esi, 2
sar esi, 2
imul eax, esi
add ecx, 2
sar ecx, 2
add eax, ecx
add eax, dword [esp + 0x58]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x30]
push eax
mov eax, dword [edi + 0x28]
push 0x10
push eax
mov eax, dword [ecx + edx*4 + 0x4b78]
call eax
mov ecx, dword [esp + 0x30]
movsx edx, word [ecx + esi*8]
mov ecx, dword [esp + 0x38]
add eax, edx
mov edx, dword [esp + 0x20]
movsx ecx, word [ecx + edx*8]
add eax, ecx
add esp, 0x10
cmp eax, 0x10000000
jge 0x5123e4
mov ebx, eax
jmp 0x5123e4
mov eax, dword [edi + 0x38]
mov ecx, dword [esp + 0xac]
mov edx, dword [esp + 0x20]
movsx edx, word [edx + ecx*8]
mov ecx, dword [esp + 0xb4]
push eax
imul eax, dword [esp + 0xb0]
add eax, ecx
add eax, dword [esp + 0x58]
mov dword [esp + 0x88], edx
mov edx, dword [esp + 0x2c]
movsx edx, word [edx + ecx*8]
mov ecx, dword [esp + 0x30]
push eax
mov eax, dword [edi + 0x28]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x3c]
push 0x10
push eax
mov eax, dword [ecx + edx*4 + 0x4b78]
call eax
add eax, dword [esp + 0x48]
add esp, 0x10
add eax, dword [esp + 0x84]
cmp eax, 0x10000000
jge 0x5122d3
mov ecx, dword [esp + 0xb4]
mov esi, dword [esp + 0xac]
mov ebx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x84]
mov edx, dword [esp + 0x38]
add edx, eax
xor eax, eax
sub ebx, edx
cmp dword [ebp + 0x14], eax
mov dword [esp + 0x1c], eax
jle 0x5123e4
jmp 0x512300
mov edx, dword [esp + 0x88]
movsx ecx, word [edx + eax*4]
movsx eax, word [edx + eax*4 + 2]
add eax, 2
sar eax, 2
add ecx, 2
sar ecx, 2
mov edx, eax
or edx, ecx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x24], eax
je 0x5123d0
sub ecx, dword [esp + 0x10]
sub eax, esi
or eax, ecx
je 0x5123d0
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0xa0]
cmp eax, ecx
jl 0x512356
mov ecx, dword [esp + 0x8c]
cmp eax, ecx
jle 0x51235a
mov dword [esp + 0x6c], ecx
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x94]
cmp eax, ecx
jl 0x512374
mov ecx, dword [esp + 0x98]
cmp eax, ecx
jle 0x512378
mov dword [esp + 0x24], ecx
mov eax, dword [edi + 0x38]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
push eax
imul eax, dword [esp + 0x28]
add eax, dword [esp + 0x70]
add eax, dword [esp + 0x58]
push eax
mov eax, dword [edi + 0x28]
push 0x10
push eax
mov eax, dword [ecx + edx*4 + 0x4b78]
call eax
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
movsx ecx, word [ecx + edx*8]
mov edx, dword [esp + 0x38]
add eax, ecx
mov ecx, dword [esp + 0x7c]
movsx edx, word [edx + ecx*8]
add eax, edx
add esp, 0x10
cmp eax, ebx
jge 0x5123d0
mov esi, dword [esp + 0x24]
mov ebx, eax
mov eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
add eax, 1
cmp eax, dword [ebp + 0x14]
mov dword [esp + 0x1c], eax
jl 0x512300
mov ecx, dword [edi + 0x38]
mov edx, dword [esp + 0x54]
mov eax, dword [edi + 0x28]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x3c]
push 0x10
push eax
mov eax, dword [ecx + edx*4 + 0x4b78]
call eax
mov ecx, dword [esp + 0x30]
movsx edx, word [ecx]
mov ecx, dword [esp + 0x38]
add eax, edx
movsx edx, word [ecx]
add eax, edx
add esp, 0x10
cmp eax, ebx
jge 0x512425
xor esi, esi
mov ebx, eax
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x1f04]
cmp eax, 4
ja case.default.0x512438
jmp dword [eax*4 + 0x515820]
mov dword [esp + 0x1c], 0
mov ecx, dword [edi + 0x38]
mov edx, dword [esp + 0x10]
mov eax, ecx
imul eax, esi
add eax, edx
add eax, dword [esp + 0x54]
mov dword [esp + 0x14], edx
lea edx, [esp + 0x3c]
push edx
push ecx
lea edx, [eax + 1]
push edx
lea edx, [eax - 1]
push edx
lea edx, [ecx + eax]
sub eax, ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [edi + 0x28]
push eax
mov eax, dword [ecx + edx*4 + 0x4bb0]
mov dword [esp + 0x34], esi
call eax
mov ecx, dword [esp + 0x3c]
movsx edx, word [ecx + esi*8 - 8]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x44]
movsx ecx, word [ecx + eax*8]
add ecx, dword [esp + 0x58]
add esp, 0x1c
add ecx, edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x3c], ecx
movsx ecx, word [edx + esi*8 + 8]
mov edx, dword [esp + 0x28]
movsx edx, word [edx + eax*8]
add edx, dword [esp + 0x40]
add edx, ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x40], edx
movsx edx, word [ecx + eax*8 - 8]
mov ecx, dword [esp + 0x20]
movsx ecx, word [ecx + esi*8]
add ecx, dword [esp + 0x44]
add ecx, edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x44], ecx
movsx eax, word [edx + eax*8 + 8]
mov edx, dword [esp + 0x20]
movsx edx, word [edx + esi*8]
add edx, dword [esp + 0x48]
add edx, eax
mov eax, dword [esp + 0x3c]
cmp eax, ebx
mov dword [esp + 0x48], edx
jge 0x51250b
mov ebx, eax
sub esi, 1
mov eax, dword [esp + 0x40]
cmp eax, ebx
jge 0x51251e
mov ebx, eax
mov eax, dword [esp + 0x18]
lea esi, [eax + 1]
jmp 0x512522
mov eax, dword [esp + 0x18]
cmp ecx, ebx
jge 0x51252f
sub dword [esp + 0x10], 1
mov ebx, ecx
mov esi, eax
cmp edx, ebx
jge 0x512542
mov ecx, dword [esp + 0x14]
add ecx, 1
mov ebx, edx
mov dword [esp + 0x10], ecx
mov esi, eax
mov ecx, dword [esp + 0x14]
xor edx, edx
cmp esi, eax
sete dl
xor eax, eax
cmp dword [esp + 0x10], ecx
sete al
test eax, edx
jne case.default.0x512438
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0xa0]
jl case.default.0x512438
cmp eax, dword [esp + 0x8c]
jg case.default.0x512438
cmp esi, dword [esp + 0x94]
jl case.default.0x512438
cmp esi, dword [esp + 0x98]
jg case.default.0x512438
mov eax, dword [esp + 0x1c]
add eax, 1
cmp eax, dword [esp + 0xa8]
mov dword [esp + 0x1c], eax
jl 0x512447
jmp case.default.0x512438
mov ecx, dword [edi + 0x38]
mov eax, ecx
imul eax, dword [esp + 0xac]
add eax, dword [esp + 0xb4]
lea edx, [esp + 0x3c]
add eax, dword [esp + 0x54]
push edx
push ecx
lea edx, [eax + 1]
push edx
lea edx, [eax - 1]
push edx
lea edx, [ecx + eax]
sub eax, ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [edi + 0x28]
push eax
mov eax, dword [ecx + edx*4 + 0x4bb0]
mov dword [esp + 0x40], 1
mov dword [esp + 0xc0], ebx
call eax
mov edx, dword [esp + 0xc8]
mov ecx, dword [esp + 0x3c]
movsx ecx, word [ecx + edx*8 - 8]
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0xd0]
movsx edx, word [eax + edx*8]
add edx, dword [esp + 0x58]
add esp, 0x1c
add edx, ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0xac]
movsx ecx, word [ecx + edx*8 + 8]
mov edx, dword [esp + 0xb4]
movsx edx, word [eax + edx*8]
add edx, dword [esp + 0x40]
add edx, ecx
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x40], edx
movsx edx, word [eax + ecx*8 - 8]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0xac]
movsx ecx, word [eax + ecx*8]
add ecx, dword [esp + 0x44]
add ecx, edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0xb4]
movsx edx, word [edx + ecx*8 + 8]
mov ecx, dword [esp + 0xac]
movsx eax, word [eax + ecx*8]
add eax, dword [esp + 0x48]
add eax, edx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x3c]
cmp eax, ebx
jge 0x5126b9
mov ebx, eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x10], eax
lea esi, [ecx - 1]
jmp 0x5126c0
mov eax, dword [esp + 0xb4]
mov edx, dword [esp + 0x40]
cmp edx, ebx
jge 0x5126d1
mov ebx, edx
mov dword [esp + 0x10], eax
lea esi, [ecx + 1]
mov edx, dword [esp + 0x44]
cmp edx, ebx
jge 0x5126e4
mov ebx, edx
lea edx, [eax - 1]
mov dword [esp + 0x10], edx
mov esi, ecx
mov edx, dword [esp + 0x48]
cmp edx, ebx
jge 0x5126f7
mov ebx, edx
lea edx, [eax + 1]
mov dword [esp + 0x10], edx
mov esi, ecx
or ecx, eax
je 0x5127d7
mov eax, dword [edi + 0x38]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x58]
push eax
lea edx, [ecx + 1]
push edx
lea edx, [ecx - 1]
push edx
lea edx, [eax + ecx]
sub ecx, eax
mov eax, dword [edi + 0x28]
push edx
mov edx, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x44]
push eax
mov eax, dword [ecx + edx*4 + 0x4bb0]
call eax
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
movsx edx, word [ecx - 8]
movsx ecx, word [eax]
add ecx, dword [esp + 0x58]
add esp, 0x1c
add ecx, edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x3c], ecx
movsx ecx, word [edx + 8]
movsx edx, word [eax]
add edx, dword [esp + 0x40]
add edx, ecx
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x20]
movsx edx, word [edx]
add edx, dword [esp + 0x44]
movsx ecx, word [eax - 8]
add ecx, edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x44], ecx
movsx edx, word [edx]
movsx eax, word [eax + 8]
add edx, dword [esp + 0x48]
add edx, eax
mov eax, dword [esp + 0x3c]
cmp eax, ebx
mov dword [esp + 0x48], edx
jge 0x5127a0
mov ebx, eax
mov dword [esp + 0x10], 0
or esi, 0xffffffff
mov eax, dword [esp + 0x40]
cmp eax, ebx
jge 0x5127b7
mov ebx, eax
mov dword [esp + 0x10], 0
mov esi, 1
cmp ecx, ebx
jge 0x5127c7
mov ebx, ecx
mov dword [esp + 0x10], 0xffffffff
xor esi, esi
cmp edx, ebx
jge 0x5127d7
mov ebx, edx
mov dword [esp + 0x10], 1
xor esi, esi
cmp dword [esp + 0x34], 6
je case.0x512438.1
mov eax, dword [esp + 0x10]
mov ecx, esi
or ecx, eax
mov dword [esp + 0x70], ebx
je 0x51290d
sub eax, dword [esp + 0xb4]
mov edx, esi
sub edx, dword [esp + 0xac]
or edx, eax
je 0x51290d
mov ecx, dword [edi + 0x38]
mov edx, dword [esp + 0x10]
mov eax, ecx
imul eax, esi
add eax, edx
add eax, dword [esp + 0x54]
mov dword [esp + 0x14], edx
lea edx, [esp + 0x3c]
push edx
push ecx
lea edx, [eax + 1]
push edx
lea edx, [eax - 1]
push edx
lea edx, [ecx + eax]
sub eax, ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [edi + 0x28]
push eax
mov eax, dword [ecx + edx*4 + 0x4bb0]
mov dword [esp + 0x34], esi
call eax
mov ecx, dword [esp + 0x3c]
movsx edx, word [ecx + esi*8 - 8]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x44]
movsx ecx, word [ecx + eax*8]
add ecx, dword [esp + 0x58]
add esp, 0x1c
add ecx, edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x3c], ecx
movsx ecx, word [edx + esi*8 + 8]
mov edx, dword [esp + 0x28]
movsx edx, word [edx + eax*8]
add edx, dword [esp + 0x40]
add edx, ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x40], edx
movsx edx, word [ecx + eax*8 - 8]
mov ecx, dword [esp + 0x20]
movsx ecx, word [ecx + esi*8]
add ecx, dword [esp + 0x44]
add ecx, edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x44], ecx
movsx eax, word [edx + eax*8 + 8]
mov edx, dword [esp + 0x20]
movsx edx, word [edx + esi*8]
add edx, dword [esp + 0x48]
add edx, eax
mov eax, dword [esp + 0x3c]
cmp eax, ebx
mov dword [esp + 0x48], edx
jge 0x5128d0
mov ebx, eax
sub esi, 1
mov eax, dword [esp + 0x40]
cmp eax, ebx
jge 0x5128e3
mov ebx, eax
mov eax, dword [esp + 0x18]
lea esi, [eax + 1]
jmp 0x5128e7
mov eax, dword [esp + 0x18]
cmp ecx, ebx
jge 0x5128f4
sub dword [esp + 0x10], 1
mov ebx, ecx
mov esi, eax
cmp edx, ebx
jge 0x512907
mov ecx, dword [esp + 0x14]
add ecx, 1
mov ebx, edx
mov dword [esp + 0x10], ecx
mov esi, eax
cmp ebx, dword [esp + 0x70]
jne 0x512915
mov dword [esp + 0x24], 3
cmp ebx, dword [esp + 0x70]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], esi
jne 0x513465
mov ecx, dword [esp + 0x34]
mov ecx, dword [ecx*4 + 0x589938]
mov eax, 0x7d0
sar eax, cl
cmp ebx, eax
jge 0x513465
mov ecx, dword [edi + 0x38]
mov eax, ecx
imul eax, esi
add eax, edx
add eax, dword [esp + 0x54]
mov edx, eax
sub edx, ecx
mov dword [esp + 0x38], edx
lea edx, [esp + 0x3c]
push edx
push ecx
lea edx, [eax - 2]
push edx
mov edx, dword [esp + 0x44]
add edx, 1
push edx
mov edx, dword [esp + 0x48]
add edx, 0xffffffff
push edx
mov edx, dword [edi + 0x28]
add ecx, ecx
sub eax, ecx
mov ecx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x44]
push edx
mov edx, dword [eax + ecx*4 + 0x4bb0]
call edx
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
movsx edx, word [edx + esi*8 - 0x10]
add ecx, ecx
add ecx, ecx
add ecx, ecx
mov dword [esp + 0x4c], ecx
lea eax, [esi - 2]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x44]
movsx ecx, word [ecx + eax]
add ecx, dword [esp + 0x58]
add esp, 0x1c
add ecx, edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x3c], ecx
lea ecx, [esi*8]
mov dword [esp + 0x58], ecx
lea ecx, [ecx + edx - 8]
mov edx, dword [esp + 0x30]
movsx edx, word [edx + eax - 8]
mov dword [esp + 0x68], ecx
movsx ecx, word [ecx]
add ecx, dword [esp + 0x40]
add ecx, edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x40], ecx
movsx ecx, word [edx + eax + 8]
mov edx, dword [esp + 0x68]
movsx edx, word [edx]
add edx, dword [esp + 0x44]
add edx, ecx
mov ecx, dword [esp + 0x10]
add ecx, 0xfffffffe
mov dword [esp + 0x44], edx
movsx eax, word [eax + ecx*8]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x58]
movsx ecx, word [ecx + edx]
add ecx, dword [esp + 0x48]
add ecx, eax
mov eax, dword [esp + 0x3c]
cmp eax, ebx
mov dword [esp + 0x48], ecx
jge 0x512a3c
mov esi, dword [esp + 0x5c]
mov ebx, eax
mov eax, dword [esp + 0x40]
cmp eax, ebx
jge 0x512a54
sub dword [esp + 0x10], 1
mov ebx, eax
mov eax, dword [esp + 0x18]
lea esi, [eax - 1]
jmp 0x512a58
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x44]
cmp edx, ebx
jge 0x512a70
mov ebx, edx
mov edx, dword [esp + 0x14]
add edx, 1
mov dword [esp + 0x10], edx
lea esi, [eax - 1]
cmp ecx, ebx
jge 0x512a80
mov ebx, ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x10], ecx
mov esi, eax
mov ecx, dword [edi + 0x38]
mov eax, ecx
imul eax, dword [esp + 0x18]
add eax, dword [esp + 0x14]
lea edx, [esp + 0x3c]
add eax, dword [esp + 0x54]
push edx
push ecx
lea edx, [eax + ecx*2]
push edx
lea edx, [ecx + eax + 1]
push edx
mov edx, dword [edi + 0x28]
lea ecx, [ecx + eax - 1]
push ecx
mov ecx, dword [esp + 0x48]
add eax, 2
push eax
mov eax, dword [esp + 0x44]
push edx
mov edx, dword [eax + ecx*4 + 0x4bb0]
call edx
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x3c]
movsx edx, word [eax + edx]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x30]
add ecx, 2
movsx ecx, word [eax + ecx*8]
add ecx, dword [esp + 0x58]
add esp, 0x1c
add ecx, edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x3c], ecx
lea ecx, [edx + eax - 8]
mov edx, dword [esp + 0x58]
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x20]
lea ecx, [edx + ecx + 8]
movsx edx, word [ecx]
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x90]
movsx ecx, word [ecx]
add ecx, dword [esp + 0x40]
add ecx, edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x40], ecx
lea ecx, [edx + eax + 8]
mov edx, dword [esp + 0x80]
movsx edx, word [edx]
mov dword [esp + 0x84], ecx
movsx ecx, word [ecx]
add ecx, dword [esp + 0x44]
add ecx, edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x18]
add ecx, 2
movsx ecx, word [edx + ecx*8]
mov edx, dword [esp + 0x30]
movsx eax, word [edx + eax]
add eax, dword [esp + 0x48]
lea edx, [eax + ecx]
mov eax, dword [esp + 0x3c]
cmp eax, ebx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x48], edx
jge 0x512b81
mov esi, dword [esp + 0x18]
mov ebx, eax
lea eax, [ecx + 2]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
cmp eax, ebx
jge 0x512b99
mov esi, dword [esp + 0x18]
mov ebx, eax
lea eax, [ecx - 1]
mov dword [esp + 0x10], eax
add esi, 1
mov eax, dword [esp + 0x44]
cmp eax, ebx
jge 0x512bb1
mov esi, dword [esp + 0x18]
mov ebx, eax
lea eax, [ecx + 1]
mov dword [esp + 0x10], eax
add esi, 1
cmp edx, ebx
jge 0x512bc2
mov esi, dword [esp + 0x18]
mov ebx, edx
mov dword [esp + 0x10], ecx
add esi, 2
cmp ebx, dword [esp + 0xa4]
jne 0x512be9
mov eax, dword [esp + 0x34]
mov ecx, dword [eax*4 + 0x589938]
mov edx, 0x1f4
sar edx, cl
cmp ebx, edx
jl case.default.0x512438
mov ecx, dword [esp + 0x14]
cmp ebx, dword [esp + 0x70]
jne 0x513465
mov eax, dword [esp + 0x8c]
mov edx, dword [esp + 0xa8]
sub eax, ecx
sub ecx, dword [esp + 0xa0]
or edx, 2
sar edx, 1
cmp eax, ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], 3
jl 0x512c21
mov eax, ecx
cmp edx, eax
jg 0x512daf
mov eax, edx
add eax, 0xfffffffe
cmp eax, 3
jle 0x512daf
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
lea eax, [ecx - 3]
lea ecx, [edx + ecx*8 + 0x28]
lea edx, [edx + eax*8]
mov dword [esp + 0x78], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x9c], edx
jmp 0x512c60
mov eax, dword [edi + 0x38]
imul eax, dword [esp + 0x18]
add eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
add eax, dword [esp + 0x54]
mov ecx, eax
sub ecx, dword [esp + 0x1c]
add eax, edx
lea edx, [esp + 0x3c]
push edx
mov edx, dword [edi + 0x38]
push edx
lea edx, [ecx - 2]
push edx
lea edx, [eax + 2]
push edx
mov edx, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x40]
push eax
mov eax, dword [edi + 0x28]
push eax
mov eax, dword [ecx + edx*4 + 0x4bb0]
call eax
mov ecx, dword [esp + 0x7c]
movsx edx, word [ecx - 0x10]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x74]
movsx ecx, word [ecx + eax]
add ecx, dword [esp + 0x58]
add esp, 0x1c
add ecx, edx
mov edx, dword [esp + 0x9c]
mov dword [esp + 0x3c], ecx
movsx ecx, word [edx]
mov edx, dword [esp + 0x58]
movsx edx, word [edx + eax]
add edx, dword [esp + 0x40]
add edx, ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x40], edx
movsx edx, word [ecx + eax]
mov ecx, dword [esp + 0x60]
movsx ecx, word [ecx]
add ecx, dword [esp + 0x44]
add ecx, edx
mov edx, dword [esp + 0x9c]
mov dword [esp + 0x44], ecx
movsx ecx, word [edx - 0x10]
mov edx, dword [esp + 0x58]
movsx eax, word [edx + eax]
add eax, dword [esp + 0x48]
add eax, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x3c]
cmp eax, ebx
jge 0x512d3c
mov ebx, eax
mov eax, dword [esp + 0x14]
add eax, 2
lea edx, [eax + ecx - 2]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], edx
mov esi, eax
jmp 0x512d40
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x40]
cmp edx, ebx
jge 0x512d54
mov ebx, edx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x10], edx
mov esi, eax
mov edx, dword [esp + 0x44]
cmp edx, ebx
jge 0x512d6d
mov ebx, edx
mov edx, dword [esp + 0x14]
add edx, 2
add edx, ecx
mov dword [esp + 0x10], edx
mov esi, eax
mov edx, dword [esp + 0x48]
cmp edx, ebx
jge 0x512d84
mov ebx, edx
mov edx, dword [esp + 0x78]
add edx, 0xfffffffe
mov dword [esp + 0x10], edx
mov esi, eax
sub dword [esp + 0x78], 4
mov eax, 0x20
add dword [esp + 0x60], eax
sub dword [esp + 0x9c], eax
mov eax, dword [esp + 0x24]
add ecx, 4
add eax, 0xfffffffe
cmp ecx, eax
mov dword [esp + 0x1c], ecx
jl 0x512c60
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
cmp ecx, edx
jge 0x512ef8
mov eax, dword [esp + 0x14]
lea edx, [eax + ecx]
sub eax, ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x78], edx
mov dword [esp + 0x9c], eax
lea edx, [ecx + edx*8]
lea eax, [ecx + eax*8]
mov dword [esp + 0x64], edx
mov dword [esp + 0x7c], eax
jmp 0x512df0
mov ecx, dword [esp + 0x78]
cmp ecx, dword [esp + 0x8c]
jg 0x512e56
mov eax, dword [edi + 0x38]
mov edx, dword [edi + 0x28]
mov ecx, dword [esp + 0x34]
push eax
imul eax, dword [esp + 0x1c]
add eax, dword [esp + 0x18]
add eax, dword [esp + 0x20]
add eax, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x34]
push 0x10
push edx
mov edx, dword [eax + ecx*4 + 0x4b78]
call edx
mov ecx, dword [esp + 0x74]
movsx edx, word [ecx]
mov ecx, dword [esp + 0x68]
add eax, edx
mov edx, dword [esp + 0x30]
movsx ecx, word [ecx + edx]
add eax, ecx
add esp, 0x10
cmp eax, ebx
jge 0x512e56
mov edx, dword [esp + 0x78]
mov esi, dword [esp + 0x18]
mov ebx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x9c]
cmp eax, dword [esp + 0xa0]
jl 0x512ec5
mov eax, dword [edi + 0x38]
mov ecx, dword [edi + 0x28]
mov edx, dword [esp + 0x2c]
push eax
imul eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x20]
add eax, dword [esp + 0x18]
add eax, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x3c]
push 0x10
push ecx
mov ecx, dword [edx + eax*4 + 0x4b78]
call ecx
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x68]
movsx edx, word [edx + ecx]
mov ecx, dword [esp + 0x8c]
add eax, edx
movsx edx, word [ecx]
add eax, edx
add esp, 0x10
cmp eax, ebx
jge 0x512ec5
mov esi, dword [esp + 0x18]
mov ebx, eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
mov edx, 0x10
add dword [esp + 0x64], edx
sub dword [esp + 0x7c], edx
mov edx, dword [esp + 0x24]
mov ecx, 2
add dword [esp + 0x78], ecx
sub dword [esp + 0x9c], ecx
add eax, ecx
cmp eax, edx
mov dword [esp + 0x1c], eax
jl 0x512df0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x98]
sub eax, ecx
sub ecx, dword [esp + 0x94]
mov dword [esp + 0x1c], 3
cmp eax, ecx
jl 0x512f1a
mov eax, ecx
cmp edx, eax
jg 0x5130c4
mov eax, dword [esp + 0x24]
add eax, 0xfffffffe
cmp eax, 3
jle 0x5130c4
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
lea eax, [ecx - 3]
lea ecx, [edx + ecx*8 + 0x28]
lea edx, [edx + eax*8]
mov dword [esp + 0x60], 5
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x9c], edx
jmp 0x512f60
mov ecx, dword [edi + 0x38]
mov edx, ecx
imul edx, dword [esp + 0x60]
mov dword [esp + 0x68], edx
mov eax, ecx
imul eax, dword [esp + 0x18]
add eax, dword [esp + 0x14]
mov edx, ecx
imul edx, dword [esp + 0x1c]
add eax, dword [esp + 0x54]
mov dword [esp + 0x64], edx
lea edx, [esp + 0x3c]
push edx
push ecx
mov ecx, dword [esp + 0x70]
mov edx, eax
sub edx, ecx
push edx
add ecx, eax
push ecx
mov ecx, dword [esp + 0x74]
mov edx, eax
sub edx, ecx
add eax, ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [edi + 0x28]
push eax
mov eax, dword [ecx + edx*4 + 0x4bb0]
call eax
mov ecx, dword [esp + 0x94]
movsx edx, word [ecx - 0x10]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x4c]
movsx ecx, word [ecx + eax]
add ecx, dword [esp + 0x58]
add esp, 0x1c
add ecx, edx
mov edx, dword [esp + 0x9c]
mov dword [esp + 0x3c], ecx
movsx ecx, word [edx]
mov edx, dword [esp + 0x30]
movsx edx, word [edx + eax]
add edx, dword [esp + 0x40]
add edx, ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x40], edx
movsx edx, word [ecx]
mov ecx, dword [esp + 0x30]
movsx ecx, word [ecx + eax]
add ecx, dword [esp + 0x44]
add ecx, edx
mov edx, dword [esp + 0x9c]
mov dword [esp + 0x44], ecx
movsx ecx, word [edx - 0x10]
mov edx, dword [esp + 0x30]
movsx eax, word [edx + eax]
add eax, dword [esp + 0x48]
add ecx, eax
mov eax, dword [esp + 0x3c]
cmp eax, ebx
mov dword [esp + 0x48], ecx
jge 0x51304f
mov edx, dword [esp + 0x5c]
mov esi, dword [esp + 0x60]
mov ebx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
add esi, edx
jmp 0x513053
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x40]
cmp edx, ebx
jge 0x513065
mov esi, dword [esp + 0x74]
mov ebx, edx
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x44]
cmp edx, ebx
jge 0x51307d
mov esi, dword [esp + 0x60]
mov ebx, edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x10], eax
add esi, edx
cmp ecx, ebx
jge 0x51308e
mov esi, dword [esp + 0x74]
mov ebx, ecx
mov dword [esp + 0x10], eax
add esi, 0xfffffffe
mov eax, dword [esp + 0x1c]
mov ecx, 0x20
add dword [esp + 0x78], ecx
sub dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0x24]
mov edx, 4
add dword [esp + 0x60], edx
sub dword [esp + 0x74], edx
add eax, edx
add ecx, 0xfffffffe
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x512f60
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x24]
jge 0x5131f9
mov eax, dword [esp + 0x18]
lea edx, [eax + ecx]
sub eax, ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x60], eax
lea ecx, [ecx + edx*8]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x20]
lea eax, [ecx + eax*8]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
mov dword [esp + 0x74], edx
sub eax, 1
shr eax, 1
add eax, 1
mov dword [esp + 0x38], eax
lea ecx, [ecx]
cmp edx, dword [esp + 0x98]
jg 0x51316e
mov eax, dword [edi + 0x38]
mov ecx, dword [edi + 0x28]
mov edx, dword [esp + 0x2c]
push eax
imul eax, dword [esp + 0x78]
add eax, dword [esp + 0x18]
add eax, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x3c]
push 0x10
push ecx
mov ecx, dword [edx + eax*4 + 0x4b78]
call ecx
mov edx, dword [esp + 0x74]
movsx ecx, word [edx]
mov edx, dword [esp + 0x40]
add eax, ecx
mov ecx, dword [esp + 0x38]
movsx edx, word [edx + ecx]
add eax, edx
add esp, 0x10
cmp eax, ebx
jge 0x51316e
mov esi, dword [esp + 0x74]
mov ebx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x60]
cmp ecx, dword [esp + 0x94]
jl 0x5131d1
mov eax, dword [edi + 0x38]
mov edx, dword [edi + 0x28]
push eax
imul eax, ecx
add eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x38]
add eax, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x34]
push 0x10
push edx
mov edx, dword [eax + ecx*4 + 0x4b78]
call edx
mov ecx, dword [esp + 0x8c]
movsx edx, word [ecx]
mov ecx, dword [esp + 0x40]
add eax, edx
mov edx, dword [esp + 0x38]
movsx ecx, word [ecx + edx]
add eax, ecx
add esp, 0x10
cmp eax, ebx
jge 0x5131d1
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x60]
mov ebx, eax
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x74]
sub dword [esp + 0x60], 2
mov eax, 0x10
add dword [esp + 0x64], eax
sub dword [esp + 0x7c], eax
add edx, 2
sub dword [esp + 0x38], 1
mov dword [esp + 0x74], edx
jne 0x513110
mov ecx, dword [edi + 0x38]
mov eax, ecx
imul eax, dword [esp + 0x18]
add eax, dword [esp + 0x14]
add eax, dword [esp + 0x54]
mov edx, eax
sub edx, ecx
mov dword [esp + 0x68], edx
lea edx, [ecx + ecx]
sub eax, edx
lea edx, [esp + 0x3c]
push edx
push ecx
mov ecx, dword [esp + 0x70]
lea edx, [ecx + 2]
push edx
mov edx, dword [edi + 0x28]
add ecx, 0xfffffffe
push ecx
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0x48]
add eax, 0xffffffff
push eax
mov eax, dword [esp + 0x44]
push edx
mov edx, dword [eax + ecx*4 + 0x4bb0]
call edx
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x78]
movsx edx, word [eax + ecx*8]
mov ecx, dword [esp + 0xac]
movsx ecx, word [ecx]
add ecx, dword [esp + 0x58]
add esp, 0x1c
add ecx, edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x3c], ecx
movsx ecx, word [eax + edx*8]
mov edx, dword [esp + 0x84]
movsx edx, word [edx]
add edx, dword [esp + 0x40]
add edx, ecx
mov ecx, dword [esp + 0x58]
lea eax, [ecx + eax - 8]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x68], eax
mov dword [esp + 0x40], edx
movsx edx, word [eax]
mov eax, dword [esp + 0x6c]
movsx eax, word [ecx + eax*8]
add eax, dword [esp + 0x44]
add eax, edx
mov edx, dword [esp + 0x68]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x14]
movsx edx, word [edx]
add eax, 2
movsx eax, word [ecx + eax*8]
add eax, dword [esp + 0x48]
lea ecx, [eax + edx]
mov eax, dword [esp + 0x3c]
cmp eax, ebx
mov dword [esp + 0x48], ecx
jge 0x5132e3
mov esi, dword [esp + 0x5c]
mov ebx, eax
mov eax, dword [esp + 0x14]
lea edx, [eax - 1]
mov dword [esp + 0x10], edx
jmp 0x5132e7
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x40]
cmp edx, ebx
jge 0x5132fc
mov esi, dword [esp + 0x5c]
mov ebx, edx
lea edx, [eax + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x44]
cmp edx, ebx
jge 0x513315
mov esi, dword [esp + 0x18]
mov ebx, edx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x10], edx
add esi, 0xffffffff
cmp ecx, ebx
jge 0x513329
mov esi, dword [esp + 0x18]
add eax, 2
mov ebx, ecx
mov dword [esp + 0x10], eax
add esi, 0xffffffff
mov ecx, dword [edi + 0x38]
mov eax, ecx
imul eax, dword [esp + 0x18]
add eax, dword [esp + 0x14]
lea edx, [esp + 0x3c]
add eax, dword [esp + 0x54]
push edx
push ecx
lea edx, [eax + ecx*2 + 1]
push edx
lea edx, [eax + ecx*2 - 1]
push edx
lea edx, [ecx + eax + 2]
lea eax, [ecx + eax - 2]
mov ecx, dword [edi + 0x28]
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x4c]
push ecx
mov ecx, dword [edx + eax*4 + 0x4bb0]
call ecx
mov edx, dword [esp + 0x9c]
movsx eax, word [edx]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x88]
movsx edx, word [ecx + edx*8]
add edx, dword [esp + 0x58]
add esp, 0x1c
add edx, eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x3c], edx
movsx edx, word [eax]
mov eax, dword [esp + 0x14]
add eax, 2
movsx eax, word [ecx + eax*8]
add eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x18]
movsx edx, word [ecx + eax*8 + 0x10]
mov ecx, dword [esp + 0x90]
movsx ecx, word [ecx]
add ecx, dword [esp + 0x44]
add eax, 2
add ecx, edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x44], ecx
movsx eax, word [edx + eax*8]
mov edx, dword [esp + 0x84]
movsx edx, word [edx]
add edx, dword [esp + 0x48]
add edx, eax
mov eax, dword [esp + 0x3c]
cmp eax, ebx
mov dword [esp + 0x48], edx
jge 0x51340a
mov ebx, eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
lea esi, [eax + 1]
jmp 0x51340e
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x40], ebx
jge 0x513426
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x40]
add esi, 2
mov dword [esp + 0x10], esi
lea esi, [eax + 1]
cmp ecx, ebx
jge 0x51343a
mov ebx, ecx
mov ecx, dword [esp + 0x14]
add ecx, 0xffffffff
mov dword [esp + 0x10], ecx
lea esi, [eax + 2]
cmp edx, ebx
jge 0x513450
mov ebx, edx
mov edx, dword [esp + 0x14]
add edx, 1
add eax, 2
mov dword [esp + 0x10], edx
mov esi, eax
cmp ebx, dword [esp + 0x70]
je case.default.0x512438
mov eax, dword [esp + 0x24]
add eax, 2
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x5135d3
cmp eax, 1
mov dword [esp + 0x70], 1
jne 0x5134c6
cmp dword [esp + 0x34], 0
jne 0x513491
mov dword [esp + 0x5c], 0x19
jmp 0x513527
mov ecx, dword [esp + 0x88]
movsx edx, word [ecx + 2]
movsx eax, word [edi + 0x42]
sub eax, edx
cdq
mov ecx, eax
mov eax, dword [esp + 0x88]
xor ecx, edx
sub ecx, edx
movsx edx, word [eax]
movsx eax, word [edi + 0x40]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
add ecx, eax
mov dword [esp + 0x5c], ecx
jmp 0x513527
add eax, 0xffffffff
cmp dword [esp + 0x34], 0
mov dword [esp + 0x70], eax
mov dword [esp + 0x5c], 0
je 0x513514
mov eax, dword [esp + 0x88]
movsx ecx, word [eax + 2]
movsx eax, word [edi + 0x42]
sub eax, ecx
cdq
mov ecx, eax
movsx eax, word [edi + 0x40]
xor ecx, edx
sub ecx, edx
mov edx, dword [esp + 0x88]
movsx edx, word [edx]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
add ecx, eax
add dword [esp + 0x70], 1
mov dword [esp + 0x5c], ecx
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x88]
call fcn.0050bd60
add dword [esp + 0x5c], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [eax*4 + 0x589938]
mov edx, 0x3e8
sar edx, cl
cmp ebx, edx
jge 0x513547
mov dword [esp + 0x64], 0
jmp 0x513571
mov eax, 0x7d0
sar eax, cl
cmp ebx, eax
jge 0x51355c
mov dword [esp + 0x64], 1
jmp 0x513571
mov edx, 0xfa0
sar edx, cl
xor eax, eax
cmp ebx, edx
setge al
add eax, 2
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x5c]
lea edx, [eax + eax*4]
add edx, edx
cmp ecx, edx
jge 0x513586
xor eax, eax
jmp 0x5135ad
lea edx, [eax + eax*4]
add edx, edx
add edx, edx
cmp ecx, edx
jge 0x513598
mov eax, 1
jmp 0x5135ad
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
add eax, eax
xor edx, edx
cmp ecx, eax
setge dl
add edx, 2
mov eax, edx
mov ecx, dword [esp + 0x64]
lea edx, [ecx + eax*4]
mov eax, dword [edx*4 + 0x589958]
imul eax, dword [esp + 0xa8]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x8c]
sub eax, ecx
sub ecx, dword [esp + 0xa0]
cmp eax, ecx
jl 0x5135f5
mov eax, ecx
cmp dword [esp + 0xa8], eax
jg 0x513786
mov eax, dword [esp + 0xa8]
add eax, 0xfffffffe
cmp dword [esp + 0x24], eax
jge 0x513786
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov eax, edx
sub eax, ecx
add edx, ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x78], eax
lea edx, [ecx + edx*8 + 0x10]
lea eax, [ecx + eax*8]
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], eax
jmp 0x513640
mov eax, dword [edi + 0x38]
imul eax, dword [esp + 0x18]
add eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
add eax, dword [esp + 0x54]
mov ecx, eax
sub ecx, dword [esp + 0x1c]
add eax, edx
lea edx, [esp + 0x3c]
push edx
mov edx, dword [edi + 0x38]
push edx
lea edx, [ecx - 2]
push edx
lea edx, [eax + 2]
push edx
mov edx, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x40]
push eax
mov eax, dword [edi + 0x28]
push eax
mov eax, dword [ecx + edx*4 + 0x4bb0]
call eax
mov ecx, dword [esp + 0x8c]
movsx edx, word [ecx - 0x10]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
movsx ecx, word [eax + ecx*8]
add ecx, dword [esp + 0x58]
add esp, 0x1c
add ecx, edx
mov edx, dword [esp + 0x74]
mov dword [esp + 0x3c], ecx
movsx ecx, word [edx]
mov edx, dword [esp + 0x18]
movsx edx, word [eax + edx*8]
add edx, dword [esp + 0x40]
add edx, ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x40], edx
movsx edx, word [ecx]
mov ecx, dword [esp + 0x18]
movsx ecx, word [eax + ecx*8]
add ecx, dword [esp + 0x44]
add ecx, edx
mov edx, dword [esp + 0x74]
mov dword [esp + 0x44], ecx
movsx ecx, word [edx - 0x10]
mov edx, dword [esp + 0x18]
movsx eax, word [eax + edx*8]
add eax, dword [esp + 0x48]
add eax, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x3c]
cmp eax, ebx
jge 0x513714
mov edx, dword [esp + 0x14]
mov ebx, eax
mov eax, dword [esp + 0x18]
add edx, ecx
mov dword [esp + 0x10], edx
mov esi, eax
jmp 0x513718
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x40]
cmp edx, ebx
jge 0x51372c
mov ebx, edx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x10], edx
mov esi, eax
mov edx, dword [esp + 0x44]
cmp edx, ebx
jge 0x513744
mov ebx, edx
mov edx, dword [esp + 0x14]
lea edx, [edx + ecx + 2]
mov dword [esp + 0x10], edx
mov esi, eax
mov edx, dword [esp + 0x48]
cmp edx, ebx
jge 0x51375b
mov ebx, edx
mov edx, dword [esp + 0x78]
add edx, 0xfffffffe
mov dword [esp + 0x10], edx
mov esi, eax
sub dword [esp + 0x78], 4
mov eax, 0x20
add dword [esp + 0x70], eax
sub dword [esp + 0x74], eax
mov eax, dword [esp + 0xa8]
add ecx, 4
add eax, 0xfffffffe
cmp ecx, eax
mov dword [esp + 0x1c], ecx
jl 0x513640
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0xa8]
cmp ecx, edx
jge 0x5138c2
mov eax, dword [esp + 0x14]
lea edx, [eax + ecx]
sub eax, ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], eax
lea edx, [ecx + edx*8]
lea eax, [ecx + eax*8]
mov dword [esp + 0x64], edx
mov dword [esp + 0x7c], eax
lea esp, [esp]
mov ecx, dword [esp + 0x70]
cmp ecx, dword [esp + 0x8c]
jg 0x513826
mov eax, dword [edi + 0x38]
mov edx, dword [edi + 0x28]
mov ecx, dword [esp + 0x34]
push eax
imul eax, dword [esp + 0x1c]
add eax, dword [esp + 0x18]
add eax, dword [esp + 0x20]
add eax, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x34]
push 0x10
push edx
mov edx, dword [eax + ecx*4 + 0x4b78]
call edx
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
movsx ecx, word [ecx + edx*8]
mov edx, dword [esp + 0x74]
add eax, ecx
movsx ecx, word [edx]
add eax, ecx
add esp, 0x10
cmp eax, ebx
jge 0x513826
mov edx, dword [esp + 0x70]
mov esi, dword [esp + 0x18]
mov ebx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x74]
cmp eax, dword [esp + 0xa0]
jl 0x51388f
mov eax, dword [edi + 0x38]
mov ecx, dword [edi + 0x28]
mov edx, dword [esp + 0x2c]
push eax
imul eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x20]
add eax, dword [esp + 0x18]
add eax, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x3c]
push 0x10
push ecx
mov ecx, dword [edx + eax*4 + 0x4b78]
call ecx
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
movsx edx, word [edx + ecx*8]
mov ecx, dword [esp + 0x8c]
add eax, edx
movsx edx, word [ecx]
add eax, edx
add esp, 0x10
cmp eax, ebx
jge 0x51388f
mov esi, dword [esp + 0x18]
mov ebx, eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
mov edx, 0x10
add dword [esp + 0x64], edx
sub dword [esp + 0x7c], edx
mov edx, dword [esp + 0xa8]
mov ecx, 2
add dword [esp + 0x70], ecx
sub dword [esp + 0x74], ecx
add eax, ecx
cmp eax, edx
mov dword [esp + 0x1c], eax
jl 0x5137c0
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x98]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x18]
sub eax, ecx
sub ecx, dword [esp + 0x94]
cmp eax, ecx
jge 0x5138e4
mov ecx, eax
mov eax, edx
cdq
sub eax, edx
sar eax, 1
cmp eax, ecx
mov dword [esp + 0x7c], eax
jg 0x513a89
add eax, 0xfffffffe
cmp dword [esp + 0x24], eax
jge 0x513a89
mov ecx, dword [esp + 0x24]
lea edx, [ecx + 2]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x18]
mov eax, edx
sub eax, ecx
add edx, ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x78], eax
lea edx, [ecx + edx*8 + 0x10]
lea eax, [ecx + eax*8]
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], eax
mov ecx, dword [edi + 0x38]
mov edx, ecx
imul edx, dword [esp + 0x60]
mov dword [esp + 0x68], edx
mov eax, ecx
imul eax, dword [esp + 0x18]
add eax, dword [esp + 0x14]
mov edx, ecx
imul edx, dword [esp + 0x1c]
add eax, dword [esp + 0x54]
mov dword [esp + 0x64], edx
lea edx, [esp + 0x3c]
push edx
push ecx
mov ecx, dword [esp + 0x70]
mov edx, eax
sub edx, ecx
push edx
add ecx, eax
push ecx
mov ecx, dword [esp + 0x74]
mov edx, eax
sub edx, ecx
add eax, ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [edi + 0x28]
push eax
mov eax, dword [ecx + edx*4 + 0x4bb0]
call eax
mov ecx, dword [esp + 0x8c]
movsx edx, word [ecx - 0x10]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x30]
movsx ecx, word [eax + ecx*8]
add ecx, dword [esp + 0x58]
add esp, 0x1c
add ecx, edx
mov edx, dword [esp + 0x74]
mov dword [esp + 0x3c], ecx
movsx ecx, word [edx]
mov edx, dword [esp + 0x14]
movsx edx, word [eax + edx*8]
add edx, dword [esp + 0x40]
add edx, ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x40], edx
movsx edx, word [ecx]
mov ecx, dword [esp + 0x14]
movsx ecx, word [eax + ecx*8]
add ecx, dword [esp + 0x44]
add ecx, edx
mov edx, dword [esp + 0x74]
mov dword [esp + 0x44], ecx
movsx ecx, word [edx - 0x10]
mov edx, dword [esp + 0x14]
movsx eax, word [eax + edx*8]
add eax, dword [esp + 0x48]
add ecx, eax
mov eax, dword [esp + 0x3c]
cmp eax, ebx
mov dword [esp + 0x48], ecx
jge 0x513a19
mov esi, dword [esp + 0x60]
mov ebx, eax
mov eax, edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x10], eax
lea esi, [esi + edx - 2]
jmp 0x513a1b
mov eax, edx
mov edx, dword [esp + 0x40]
cmp edx, ebx
jge 0x513a2d
mov esi, dword [esp + 0x78]
mov ebx, edx
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x44]
cmp edx, ebx
jge 0x513a45
mov esi, dword [esp + 0x60]
mov ebx, edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x10], eax
add esi, edx
cmp ecx, ebx
jge 0x513a56
mov esi, dword [esp + 0x78]
mov ebx, ecx
mov dword [esp + 0x10], eax
add esi, 0xfffffffe
mov eax, dword [esp + 0x1c]
mov ecx, 0x20
add dword [esp + 0x70], ecx
sub dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x7c]
mov edx, 4
add dword [esp + 0x60], edx
sub dword [esp + 0x78], edx
add eax, edx
add ecx, 0xfffffffe
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x513930
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x7c]
cmp edx, eax
jge 0x513bca
mov ecx, dword [esp + 0x18]
sub eax, dword [esp + 0x1c]
add ecx, edx
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x18]
sub ecx, edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x20]
lea edx, [ecx + edx*8]
sub eax, 1
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x68]
shr eax, 1
lea ecx, [ecx + edx*8]
add eax, 1
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x38], eax
jmp 0x513ae0
mov edx, dword [esp + 0x5c]
cmp edx, dword [esp + 0x98]
jg 0x513b40
mov eax, dword [edi + 0x38]
mov ecx, dword [esp + 0x2c]
push eax
imul eax, edx
add eax, dword [esp + 0x18]
mov edx, dword [esp + 0x38]
add eax, dword [esp + 0x58]
push eax
mov eax, dword [edi + 0x28]
push 0x10
push eax
mov eax, dword [ecx + edx*4 + 0x4b78]
call eax
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x38]
movsx ecx, word [ecx + edx*8]
mov edx, dword [esp + 0x74]
add eax, ecx
movsx ecx, word [edx]
add eax, ecx
add esp, 0x10
cmp eax, ebx
jge 0x513b40
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x5c]
mov ebx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x60]
cmp eax, dword [esp + 0x94]
jl 0x513ba5
mov eax, dword [edi + 0x38]
mov ecx, dword [edi + 0x28]
mov edx, dword [esp + 0x2c]
push eax
imul eax, dword [esp + 0x64]
add eax, dword [esp + 0x18]
add eax, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x3c]
push 0x10
push ecx
mov ecx, dword [edx + eax*4 + 0x4b78]
call ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x38]
movsx edx, word [edx + ecx*8]
mov ecx, dword [esp + 0x8c]
add eax, edx
movsx edx, word [ecx]
add eax, edx
add esp, 0x10
cmp eax, ebx
jge 0x513ba5
mov esi, dword [esp + 0x60]
mov ebx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov ecx, 0x10
add dword [esp + 0x64], ecx
sub dword [esp + 0x7c], ecx
mov eax, 2
add dword [esp + 0x5c], eax
sub dword [esp + 0x60], eax
sub dword [esp + 0x38], 1
jne 0x513ae0
mov ecx, dword [edi + 0x38]
mov eax, ecx
imul eax, dword [esp + 0x18]
add eax, dword [esp + 0x14]
add ecx, ecx
add eax, dword [esp + 0x54]
mov edx, eax
sub edx, ecx
mov dword [esp + 0x38], edx
lea edx, [esp + 0x3c]
push edx
mov edx, dword [edi + 0x38]
push edx
lea edx, [eax + ecx + 2]
push edx
mov edx, dword [esp + 0x44]
lea eax, [eax + ecx - 2]
mov ecx, dword [esp + 0x44]
add edx, 2
push edx
mov edx, dword [edi + 0x28]
push eax
mov eax, dword [esp + 0x40]
add ecx, 0xfffffffe
push ecx
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [eax + ecx*4 + 0x4bb0]
call edx
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x3c]
movsx edx, word [edx + eax*8 - 0x10]
add ecx, 0xfffffffe
mov dword [esp + 0x90], ecx
add eax, 0xfffffffe
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x44]
movsx ecx, word [eax + ecx*8]
add ecx, dword [esp + 0x58]
add esp, 0x1c
add ecx, edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x18]
add ecx, 2
mov dword [esp + 0x70], ecx
movsx ecx, word [edx + ecx*8]
mov edx, dword [esp + 0x74]
movsx edx, word [eax + edx*8]
add edx, dword [esp + 0x40]
add edx, ecx
mov ecx, dword [esp + 0x14]
add ecx, 2
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x78]
movsx edx, word [edx + ecx*8]
mov ecx, dword [esp + 0x60]
movsx ecx, word [eax + ecx*8]
add ecx, dword [esp + 0x44]
add ecx, edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x70]
movsx edx, word [edx + ecx*8]
mov ecx, dword [esp + 0x60]
movsx eax, word [eax + ecx*8]
add eax, dword [esp + 0x48]
add edx, eax
mov eax, dword [esp + 0x3c]
cmp eax, ebx
mov dword [esp + 0x48], edx
jge 0x513cdc
mov ecx, dword [esp + 0x74]
mov esi, dword [esp + 0x78]
mov ebx, eax
mov dword [esp + 0x10], ecx
jmp 0x513ce0
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x40]
cmp eax, ebx
jge 0x513cf6
mov ecx, dword [esp + 0x74]
mov esi, dword [esp + 0x70]
mov ebx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x44]
cmp eax, ebx
jge 0x513d0c
mov ecx, dword [esp + 0x60]
mov esi, dword [esp + 0x78]
mov ebx, eax
mov dword [esp + 0x10], ecx
cmp edx, ebx
jge 0x513d1e
mov ecx, dword [esp + 0x60]
mov esi, dword [esp + 0x70]
mov ebx, edx
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x8c]
sub eax, ecx
mov dword [esp + 0xf0], eax
mov eax, ecx
sub eax, dword [esp + 0xa0]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x98]
sub eax, esi
mov dword [esp + 0xfc], eax
mov eax, esi
sub eax, dword [esp + 0x94]
mov dword [esp + 0x18], esi
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xa8]
cdq
and edx, 3
add eax, edx
lea edx, [esi + 3]
mov dword [esp + 0xd8], edx
sar eax, 2
lea edx, [esi + 4]
mov dword [esp + 0xf8], edx
mov dword [esp + 0xb8], eax
lea edx, [esi + 2]
mov dword [esp + 0xd4], edx
lea edx, [ecx + 4]
mov dword [esp + 0x38], edx
mov dword [esp + 0x88], edx
lea edx, [esi - 1]
mov dword [esp + 0x80], edx
lea eax, [esi + 1]
mov dword [esp + 0x90], eax
lea eax, [ecx + 2]
add ecx, 0xfffffffe
lea edx, [esi - 3]
mov dword [esp + 0x64], edx
lea edx, [esi - 4]
mov dword [esp + 0xa4], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0xe0], ecx
lea ecx, [esi*8]
mov dword [esp + 0x58], ecx
lea ecx, [ecx + edx + 8]
mov edx, dword [esp + 0x10]
add edx, 0xfffffffc
mov dword [esp + 0xb0], edx
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0xd0], eax
lea eax, [edx + eax*8]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
lea edx, [esi + 3]
lea edx, [eax + edx*8]
mov dword [esp + 0xe4], edx
lea edx, [esi + 4]
lea eax, [eax + edx*8]
mov edx, dword [esp + 0x38]
mov dword [esp + 0xec], eax
mov eax, dword [esp + 0x28]
lea edx, [eax + edx*8]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x5c], edx
lea edx, [esi + 2]
lea edx, [eax + edx*8]
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x58]
lea edx, [edx + eax - 8]
mov dword [esp + 0x74], edx
lea edx, [esi - 3]
lea edx, [eax + edx*8]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x7c], edx
lea ecx, [esi - 2]
lea edx, [esi - 4]
mov dword [esp + 0x1c], 1
mov dword [esp + 0x24], 4
mov dword [esp + 0xc8], ecx
lea eax, [eax + edx*8]
mov edx, dword [esp + 0x6c]
mov dword [esp + 0xf4], eax
mov eax, dword [esp + 0x28]
lea edx, [eax + edx*8]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x20]
lea ecx, [edx + ecx*8]
mov edx, dword [esp + 0xb0]
lea eax, [eax + edx*8]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x6c], eax
lea ebx, [ebx]
mov ecx, dword [esp + 0xfc]
mov eax, dword [esp + 0x9c]
cmp ecx, eax
jge 0x513ed4
mov eax, ecx
mov edx, dword [esp + 0x68]
cmp edx, eax
jl 0x513ee9
mov edx, dword [esp + 0x9c]
cmp ecx, edx
jge 0x513ee9
mov edx, ecx
mov eax, dword [esp + 0xf0]
cmp eax, edx
jl 0x513f16
mov edx, dword [esp + 0x9c]
cmp ecx, edx
jge 0x513f01
mov edx, ecx
mov eax, dword [esp + 0x68]
cmp eax, edx
jl 0x513f16
mov eax, dword [esp + 0x9c]
cmp ecx, eax
jge 0x513f16
mov eax, ecx
cmp dword [esp + 0x24], eax
jle 0x514003
mov edx, 0x58999c
mov dword [esp + 0xb0], edx
lea esp, [esp]
mov eax, dword [edx - 4]
imul eax, dword [esp + 0x1c]
mov ecx, dword [edx]
imul ecx, dword [esp + 0x1c]
add eax, dword [esp + 0x14]
add ecx, dword [esp + 0x18]
cmp eax, dword [esp + 0xa0]
mov dword [esp + 0xe8], eax
mov dword [esp + 0xc0], ecx
jl 0x513fe8
cmp eax, dword [esp + 0x8c]
jg 0x513fe8
cmp ecx, dword [esp + 0x94]
jl 0x513fe8
cmp ecx, dword [esp + 0x98]
jg 0x513fe8
mov eax, dword [edi + 0x38]
mov edx, dword [esp + 0x2c]
push eax
imul eax, ecx
add eax, dword [esp + 0xec]
mov ecx, dword [edi + 0x28]
add eax, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x3c]
push 0x10
push ecx
mov ecx, dword [edx + eax*4 + 0x4b78]
call ecx
mov ecx, dword [esp + 0xd0]
mov edx, dword [esp + 0x30]
movsx edx, word [edx + ecx*8]
mov ecx, dword [esp + 0x38]
add eax, edx
mov edx, dword [esp + 0xf8]
movsx ecx, word [ecx + edx*8]
add eax, ecx
add esp, 0x10
cmp eax, ebx
jge 0x513fe1
mov esi, dword [esp + 0xc0]
mov ebx, eax
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0xb0]
add edx, 8
cmp edx, 0x589a1c
mov dword [esp + 0xb0], edx
jl 0x513f30
jmp 0x5144e2
mov ecx, dword [edi + 0x38]
mov eax, ecx
imul eax, dword [esp + 0x18]
add eax, dword [esp + 0x14]
lea edx, [esp + 0x3c]
add eax, dword [esp + 0x54]
push edx
push ecx
add ecx, 4
imul ecx, dword [esp + 0x24]
mov edx, eax
sub edx, ecx
push edx
mov ecx, eax
sub ecx, dword [esp + 0x30]
push ecx
mov ecx, dword [edi + 0x38]
lea edx, [ecx - 4]
mov ecx, dword [esp + 0x2c]
imul edx, ecx
add edx, eax
push edx
mov edx, dword [edi + 0x38]
add edx, 0xfffffffe
imul edx, ecx
mov ecx, dword [edi + 0x28]
lea eax, [eax + edx*2]
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x4c]
push ecx
mov ecx, dword [edx + eax*4 + 0x4bb0]
call ecx
mov edx, dword [esp + 0x94]
movsx eax, word [edx]
mov ecx, dword [esp + 0x88]
movsx edx, word [ecx]
add edx, dword [esp + 0x58]
add esp, 0x1c
add eax, edx
mov edx, dword [esp + 0x70]
mov dword [esp + 0x3c], eax
movsx edx, word [edx]
movsx ecx, word [ecx]
add edx, dword [esp + 0x40]
add edx, ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x20]
movsx ecx, word [ecx + edx]
mov edx, dword [esp + 0x6c]
movsx edx, word [edx]
add edx, dword [esp + 0x44]
add edx, ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x44], edx
movsx edx, word [ecx]
mov ecx, dword [esp + 0x6c]
movsx ecx, word [ecx]
add ecx, dword [esp + 0x48]
add ecx, edx
cmp eax, ebx
mov dword [esp + 0x48], ecx
jge 0x5140e2
mov esi, dword [esp + 0xd4]
mov ebx, eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x10], eax
jmp 0x5140e6
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x40]
cmp edx, ebx
jge 0x5140fb
mov esi, dword [esp + 0x90]
mov ebx, edx
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x44]
cmp edx, ebx
jge 0x51410d
mov esi, dword [esp + 0x18]
mov ebx, edx
mov dword [esp + 0x10], eax
cmp ecx, ebx
jge 0x51411e
mov esi, dword [esp + 0x80]
mov ebx, ecx
mov dword [esp + 0x10], eax
mov ecx, dword [edi + 0x38]
mov eax, ecx
imul eax, dword [esp + 0x18]
add eax, dword [esp + 0x14]
mov edx, ecx
add eax, dword [esp + 0x54]
neg edx
mov dword [esp + 0xb0], edx
lea edx, [esp + 0x3c]
push edx
push ecx
mov ecx, dword [esp + 0x2c]
lea edx, [eax + ecx]
mov ecx, dword [esp + 0xb8]
push edx
lea edx, [ecx + 4]
mov ecx, dword [esp + 0x28]
imul edx, ecx
add edx, eax
push edx
mov edx, dword [esp + 0xc0]
add edx, 2
imul edx, ecx
lea edx, [eax + edx*2]
push edx
mov edx, dword [edi + 0x38]
add edx, 2
imul edx, ecx
mov ecx, dword [esp + 0x40]
add edx, edx
sub eax, edx
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [edi + 0x28]
push eax
mov eax, dword [ecx + edx*4 + 0x4bb0]
call eax
mov eax, dword [esp + 0x88]
movsx eax, word [eax]
mov ecx, dword [esp + 0xa0]
movsx edx, word [ecx]
add eax, dword [esp + 0x58]
add esp, 0x1c
add eax, edx
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x3c], eax
movsx ecx, word [ecx]
movsx edx, word [edx]
add edx, dword [esp + 0x40]
add edx, ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x40], edx
movsx edx, word [ecx]
mov ecx, dword [esp + 0x74]
movsx ecx, word [ecx]
add ecx, dword [esp + 0x44]
add ecx, edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x20]
movsx edx, word [edx + ecx]
mov ecx, dword [esp + 0x5c]
movsx ecx, word [ecx]
add ecx, dword [esp + 0x48]
add ecx, edx
cmp eax, ebx
mov dword [esp + 0x48], ecx
jge 0x514210
mov edx, dword [esp + 0x60]
mov esi, dword [esp + 0xc8]
mov ebx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x40]
cmp eax, ebx
jge 0x51422e
mov esi, dword [esp + 0xc8]
mov ebx, eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x10], eax
jmp 0x514235
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x44]
cmp edx, ebx
jge 0x51424a
mov esi, dword [esp + 0x80]
mov ebx, edx
mov dword [esp + 0x10], eax
cmp ecx, ebx
jge 0x514258
mov esi, dword [esp + 0x18]
mov ebx, ecx
mov dword [esp + 0x10], eax
mov ecx, dword [edi + 0x38]
mov eax, ecx
imul eax, dword [esp + 0x18]
add eax, dword [esp + 0x14]
lea edx, [esp + 0x3c]
add eax, dword [esp + 0x54]
push edx
push ecx
mov edx, ecx
mov ecx, dword [esp + 0x24]
imul edx, ecx
lea edx, [eax + edx*4]
push edx
mov edx, dword [edi + 0x38]
lea edx, [edx + edx*2 + 2]
imul edx, ecx
add edx, eax
push edx
mov edx, dword [edi + 0x38]
add edx, 2
imul edx, ecx
lea edx, [eax + edx*2]
push edx
mov edx, dword [edi + 0x38]
add edx, 4
imul edx, ecx
mov ecx, dword [esp + 0x40]
add edx, eax
mov eax, dword [edi + 0x28]
push edx
mov edx, dword [esp + 0x4c]
push eax
mov eax, dword [ecx + edx*4 + 0x4bb0]
call eax
mov edx, dword [esp + 0x8c]
movsx edx, word [edx]
add edx, dword [esp + 0x58]
mov eax, dword [esp + 0x78]
movsx ecx, word [eax]
add edx, ecx
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x58], edx
movsx edx, word [ecx]
movsx eax, word [eax]
add eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x4c]
add eax, edx
mov dword [esp + 0x5c], eax
movsx edx, word [ecx]
mov eax, dword [esp + 0x100]
movsx ecx, word [eax]
add ecx, dword [esp + 0x60]
add esp, 0x1c
add ecx, edx
mov edx, dword [esp + 0xec]
mov dword [esp + 0x44], ecx
movsx eax, word [edx]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
movsx ecx, word [ecx + edx*8]
add ecx, dword [esp + 0x48]
add eax, ecx
mov ecx, dword [esp + 0x3c]
cmp ecx, ebx
mov dword [esp + 0x48], eax
jge 0x514344
mov edx, dword [esp + 0x88]
mov esi, dword [esp + 0x90]
mov ebx, ecx
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x40]
cmp ecx, ebx
jge 0x514360
mov esi, dword [esp + 0xd4]
mov ebx, ecx
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x44]
cmp ecx, ebx
jge 0x51437c
mov edx, dword [esp + 0xd0]
mov esi, dword [esp + 0xd8]
mov ebx, ecx
mov dword [esp + 0x10], edx
cmp eax, ebx
jge 0x514391
mov esi, dword [esp + 0xf8]
mov ebx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov ecx, dword [edi + 0x38]
lea edx, [ecx + ecx*2]
mov eax, ecx
imul eax, dword [esp + 0x18]
add eax, dword [esp + 0x14]
mov dword [esp + 0xb0], edx
add eax, dword [esp + 0x54]
lea edx, [esp + 0x3c]
push edx
mov edx, dword [esp + 0x20]
push ecx
mov ecx, 2
sub ecx, dword [esp + 0xb8]
imul ecx, edx
add ecx, eax
push ecx
mov ecx, dword [edi + 0x38]
imul ecx, edx
add ecx, ecx
add ecx, ecx
mov edx, eax
sub edx, ecx
mov ecx, dword [esp + 0xbc]
add ecx, 2
imul ecx, dword [esp + 0x28]
push edx
mov edx, eax
sub edx, ecx
mov ecx, dword [esp + 0xc0]
add ecx, 0xfffffffe
imul ecx, dword [esp + 0x2c]
push edx
mov edx, dword [edi + 0x28]
add ecx, eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [eax + ecx*4 + 0x4bb0]
call edx
mov edx, dword [esp + 0x100]
movsx edx, word [edx]
add edx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
movsx ecx, word [eax]
add edx, ecx
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x58], edx
movsx edx, word [ecx]
movsx eax, word [eax]
add eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x110]
add eax, edx
mov dword [esp + 0x5c], eax
movsx edx, word [ecx]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x44]
movsx eax, word [eax + ecx*8]
add eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x4c]
add eax, edx
mov dword [esp + 0x60], eax
movsx edx, word [ecx]
mov ecx, dword [esp + 0x98]
movsx ecx, word [ecx]
add ecx, dword [esp + 0x64]
add esp, 0x1c
add ecx, edx
mov edx, dword [esp + 0x3c]
cmp edx, ebx
mov dword [esp + 0x48], ecx
jge 0x51449f
mov esi, dword [esp + 0xd8]
mov ebx, edx
mov edx, dword [esp + 0xe0]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x40]
cmp edx, ebx
jge 0x5144b8
mov esi, dword [esp + 0x64]
mov ebx, edx
mov edx, dword [esp + 0xe0]
mov dword [esp + 0x10], edx
cmp eax, ebx
jge 0x5144cd
mov esi, dword [esp + 0xa4]
mov ebx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
cmp ecx, ebx
jge 0x5144e2
mov esi, dword [esp + 0x64]
mov ebx, ecx
mov ecx, dword [esp + 0xd0]
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x1c]
mov edx, 1
sub dword [esp + 0x80], edx
add dword [esp + 0x90], edx
add eax, edx
mov ecx, 8
add dword [esp + 0x70], ecx
sub dword [esp + 0x74], ecx
mov edx, 4
add dword [esp + 0x24], edx
add dword [esp + 0x88], edx
add dword [esp + 0xf8], edx
sub dword [esp + 0x60], edx
sub dword [esp + 0xa4], edx
mov ecx, 0x20
add dword [esp + 0x5c], ecx
add dword [esp + 0xec], ecx
sub dword [esp + 0x6c], ecx
sub dword [esp + 0xf4], ecx
mov edx, 0x10
add dword [esp + 0x78], edx
add dword [esp + 0x30], edx
sub dword [esp + 0x84], edx
sub dword [esp + 0x38], edx
mov ecx, 2
add dword [esp + 0xd4], ecx
sub dword [esp + 0xc8], ecx
sub dword [esp + 0xe0], ecx
add dword [esp + 0xd0], ecx
mov edx, 0x18
add dword [esp + 0xe4], edx
sub dword [esp + 0x7c], edx
mov ecx, 3
add dword [esp + 0xd8], ecx
sub dword [esp + 0x64], ecx
cmp eax, dword [esp + 0xb8]
mov dword [esp + 0x1c], eax
jle 0x513ec0
cmp esi, dword [esp + 0x98]
jg case.default.0x512438
mov ecx, dword [edi + 0x38]
mov eax, ecx
imul eax, esi
add eax, dword [esp + 0x10]
lea edx, [esp + 0x3c]
add eax, dword [esp + 0x54]
push edx
push ecx
lea edx, [eax + ecx*2 + 1]
push edx
mov edx, dword [edi + 0x28]
lea ecx, [eax + ecx*2 - 1]
push ecx
mov ecx, dword [esp + 0x44]
add eax, 0xfffffffe
push eax
mov eax, dword [esp + 0x40]
push edx
mov edx, dword [eax + ecx*4 + 0x4b94]
mov dword [esp + 0x48], 0xfffffffe
call edx
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x40]
movsx edx, word [eax + ecx*8 - 0x10]
mov eax, dword [esp + 0x38]
movsx eax, word [eax + esi*8]
add eax, dword [esp + 0x54]
add eax, edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x54], eax
lea eax, [edx + ecx*8 - 8]
mov edx, dword [esp + 0x38]
movsx edx, word [edx + esi*8 + 0x10]
mov dword [esp + 0x108], eax
movsx eax, word [eax]
add eax, dword [esp + 0x58]
add eax, edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x58], eax
lea eax, [edx + ecx*8 + 8]
mov edx, dword [esp + 0x38]
movsx edx, word [edx + esi*8 + 0x10]
mov dword [esp + 0xd0], eax
movsx eax, word [eax]
add eax, dword [esp + 0x5c]
add eax, edx
mov edx, dword [edi + 0x38]
mov dword [esp + 0x5c], eax
mov eax, edx
imul eax, esi
add eax, ecx
add eax, dword [esp + 0x6c]
add edx, edx
mov ecx, eax
sub ecx, edx
lea edx, [esp + 0x60]
push edx
mov edx, dword [edi + 0x38]
push edx
lea edx, [ecx - 1]
push edx
mov edx, dword [esp + 0x58]
add ecx, 1
push ecx
mov ecx, dword [esp + 0x54]
add eax, 2
push eax
mov eax, dword [edi + 0x28]
push eax
mov eax, dword [ecx + edx*4 + 0x4b94]
call eax
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x58]
movsx ecx, word [ecx + edx*8 + 0x10]
mov eax, dword [esp + 0x50]
movsx edx, word [eax + esi*8]
add edx, dword [esp + 0x78]
add esp, 0x30
add edx, ecx
mov dword [esp + 0x48], edx
movsx ecx, word [eax + esi*8 - 0x10]
mov edx, dword [esp + 0xb8]
movsx edx, word [edx]
add edx, dword [esp + 0x4c]
add ecx, edx
mov edx, dword [esp + 0xf0]
mov dword [esp + 0x4c], ecx
movsx edx, word [edx]
movsx eax, word [eax + esi*8 - 0x10]
add edx, dword [esp + 0x50]
add edx, eax
mov eax, dword [esp + 0x3c]
cmp eax, ebx
mov dword [esp + 0x50], edx
jge 0x51470a
mov ebx, eax
xor eax, eax
mov dword [esp + 0x30], eax
jmp 0x51470e
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x40]
cmp edx, ebx
jge 0x514721
mov eax, 1
mov ebx, edx
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x44]
cmp edx, ebx
jge 0x514734
mov eax, 2
mov ebx, edx
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x48]
cmp edx, ebx
jge 0x514747
mov eax, 3
mov ebx, edx
mov dword [esp + 0x30], eax
cmp ecx, ebx
jge 0x514756
mov eax, 4
mov ebx, ecx
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x50]
cmp ecx, ebx
jge 0x51476b
mov eax, 5
mov ebx, ecx
mov dword [esp + 0x30], eax
jmp 0x514774
cmp eax, 0xfffffffe
je 0x514975
add esi, dword [eax*8 + 0x5898c4]
mov ecx, dword [esp + 0x10]
add ecx, dword [eax*8 + 0x5898c0]
mov eax, dword [esp + 0xa8]
cdq
sub eax, edx
sar eax, 1
cmp eax, 1
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], 1
mov dword [esp + 0xb8], eax
jle 0x514975
jmp 0x5147b4
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 0xa0]
jl 0x514975
cmp ecx, dword [esp + 0x8c]
jg 0x514975
cmp esi, dword [esp + 0x94]
jl 0x514975
cmp esi, dword [esp + 0x98]
jg 0x514975
mov eax, dword [esp + 0x30]
mov ecx, dword [eax*4 + 0x58989c]
mov dword [esp + 0x24], ecx
mov ecx, dword [edi + 0x38]
mov eax, ecx
lea edx, [esp + 0x3c]
imul eax, esi
add eax, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x28]
mov edx, dword [edx*8 + 0x5898cc]
add eax, dword [esp + 0x58]
imul edx, ecx
push ecx
mov ecx, dword [esp + 0x2c]
add edx, dword [ecx*8 + 0x5898c8]
add edx, eax
push edx
mov edx, dword [ecx*8 + 0x5898c4]
imul edx, dword [edi + 0x38]
add edx, dword [ecx*8 + 0x5898c0]
mov ecx, dword [ecx*8 + 0x5898bc]
imul ecx, dword [edi + 0x38]
add edx, eax
push edx
mov edx, dword [esp + 0x34]
add ecx, dword [edx*8 + 0x5898b8]
mov edx, dword [esp + 0x44]
add ecx, eax
mov eax, dword [edi + 0x28]
push ecx
mov ecx, dword [esp + 0x40]
push eax
mov eax, dword [ecx + edx*4 + 0x4b94]
call eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax*8 + 0x5898bc]
mov edx, dword [esp + 0x38]
add ecx, esi
movsx ecx, word [edx + ecx*8]
mov edx, dword [eax*8 + 0x5898b8]
add edx, dword [esp + 0x28]
mov eax, dword [esp + 0x40]
movsx edx, word [eax + edx*8]
add edx, dword [esp + 0x54]
mov eax, dword [esp + 0x3c]
add edx, ecx
mov ecx, dword [eax*8 + 0x5898c4]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x38]
add ecx, esi
movsx ecx, word [edx + ecx*8]
mov edx, dword [eax*8 + 0x5898c0]
add edx, dword [esp + 0x28]
mov eax, dword [esp + 0x40]
movsx edx, word [eax + edx*8]
add edx, dword [esp + 0x58]
mov eax, dword [esp + 0x3c]
add edx, ecx
mov ecx, dword [eax*8 + 0x5898cc]
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x38]
add ecx, esi
movsx ecx, word [edx + ecx*8]
mov edx, dword [eax*8 + 0x5898c8]
add edx, dword [esp + 0x28]
mov eax, dword [esp + 0x40]
movsx edx, word [eax + edx*8]
add edx, dword [esp + 0x5c]
add esp, 0x18
lea eax, [edx + ecx]
mov ecx, dword [esp + 0x3c]
cmp ecx, ebx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x44], eax
mov dword [esp + 0x30], 0xfffffffe
jge 0x514925
mov ebx, ecx
lea ecx, [edx - 1]
mov dword [esp + 0x30], ecx
jmp 0x514929
mov ecx, dword [esp + 0x30]
cmp dword [esp + 0x40], ebx
jge 0x514939
mov ebx, dword [esp + 0x40]
mov ecx, edx
mov dword [esp + 0x30], ecx
cmp eax, ebx
jge 0x514946
lea ecx, [edx + 1]
mov ebx, eax
mov dword [esp + 0x30], ecx
cmp ecx, 0xfffffffe
je 0x514975
mov eax, dword [ecx*8 + 0x5898c0]
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
add esi, dword [ecx*8 + 0x5898c4]
add eax, 1
cmp eax, dword [esp + 0xb8]
mov dword [esp + 0x1c], eax
jl 0x5147b0
mov ecx, dword [edi + 0x38]
mov edx, dword [esp + 0x10]
mov eax, ecx
imul eax, esi
add eax, edx
add eax, dword [esp + 0x54]
mov dword [esp + 0x14], edx
lea edx, [esp + 0x3c]
push edx
push ecx
lea edx, [eax + 1]
push edx
lea edx, [eax - 1]
push edx
lea edx, [ecx + eax]
sub eax, ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [edi + 0x28]
push eax
mov eax, dword [ecx + edx*4 + 0x4bb0]
mov dword [esp + 0x34], esi
call eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
add ecx, ecx
add ecx, ecx
add ecx, ecx
mov dword [esp + 0x4c], ecx
lea eax, [esi*8]
movsx edx, word [eax + edx - 8]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x44]
movsx ecx, word [ecx + eax]
add ecx, dword [esp + 0x58]
add esp, 0x1c
add ecx, edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x20]
movsx edx, word [edx + ecx + 8]
mov ecx, dword [esp + 0x30]
movsx ecx, word [ecx + eax]
add ecx, dword [esp + 0x40]
add ecx, edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x40], ecx
movsx ecx, word [edx + eax - 8]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x58]
movsx edx, word [edx + eax]
add edx, dword [esp + 0x44]
add edx, ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x28]
movsx ecx, word [ecx + edx + 8]
mov edx, dword [esp + 0x58]
movsx eax, word [edx + eax]
add eax, dword [esp + 0x48]
add ecx, eax
mov eax, dword [esp + 0x3c]
cmp eax, ebx
mov dword [esp + 0x48], ecx
jge 0x514a5a
mov ebx, eax
sub esi, 1
mov eax, dword [esp + 0x40]
cmp eax, ebx
jge 0x514a6d
mov ebx, eax
mov eax, dword [esp + 0x18]
lea esi, [eax + 1]
jmp 0x514a71
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x44]
cmp edx, ebx
jge 0x514a82
sub dword [esp + 0x10], 1
mov ebx, edx
mov esi, eax
cmp ecx, ebx
jge 0x514a95
mov ebx, ecx
mov ecx, dword [esp + 0x14]
add ecx, 1
mov dword [esp + 0x10], ecx
mov esi, eax
mov ecx, dword [edi + 0x38]
mov eax, ecx
imul eax, dword [esp + 0x18]
add eax, dword [esp + 0x14]
add eax, dword [esp + 0x54]
mov edx, eax
sub edx, ecx
mov dword [esp + 0x68], edx
lea edx, [esp + 0x3c]
push edx
push ecx
lea edx, [ecx + eax + 1]
push edx
mov edx, dword [esp + 0x74]
lea eax, [ecx + eax - 1]
mov ecx, dword [esp + 0x74]
add edx, 1
push edx
mov edx, dword [edi + 0x28]
push eax
mov eax, dword [esp + 0x40]
add ecx, 0xffffffff
push ecx
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [eax + ecx*4 + 0x4bb0]
call edx
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x44]
lea eax, [eax + ecx - 8]
mov ecx, dword [esp + 0x4c]
lea ecx, [ecx + edx - 8]
movsx edx, word [eax]
mov dword [esp + 0xac], ecx
movsx ecx, word [ecx]
add ecx, dword [esp + 0x58]
add esp, 0x1c
add ecx, edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x20]
lea ecx, [edx + ecx + 8]
movsx edx, word [ecx]
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0x90]
movsx ecx, word [ecx]
add ecx, dword [esp + 0x40]
add ecx, edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x28]
lea ecx, [edx + ecx + 8]
movsx edx, word [eax]
movsx eax, word [ecx]
add eax, dword [esp + 0x44]
add edx, eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x44], edx
movsx ecx, word [ecx]
movsx eax, word [eax]
add ecx, dword [esp + 0x48]
add ecx, eax
mov eax, dword [esp + 0x3c]
cmp eax, ebx
mov dword [esp + 0x48], ecx
jge 0x514b91
mov ebx, eax
mov eax, dword [esp + 0x14]
lea esi, [eax - 1]
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x18]
add esi, 0xffffffff
jmp 0x514b95
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x40], ebx
jge 0x514bad
mov ebx, dword [esp + 0x40]
lea esi, [eax - 1]
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x18]
add esi, 1
cmp edx, ebx
jge 0x514bc1
mov esi, dword [esp + 0x18]
add eax, 1
mov ebx, edx
mov dword [esp + 0x10], eax
add esi, 0xffffffff
cmp ecx, ebx
jge case.default.0x512438
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
add edx, 1
mov ebx, ecx
mov dword [esp + 0x10], edx
add esi, 1
jmp case.default.0x512438
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xa0]
sub eax, ecx
cmp eax, edx
mov dword [esp + 0x18], eax
jg 0x514c02
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x94]
mov eax, esi
sub eax, ecx
cmp eax, edx
mov dword [esp + 0x80], eax
jg 0x514c1f
mov dword [esp + 0x80], edx
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x8c]
add eax, ecx
cmp eax, edx
jl 0x514c32
mov eax, edx
mov edx, dword [esp + 0x98]
add ecx, esi
cmp ecx, edx
mov dword [esp + 0x90], ecx
jl 0x514c4d
mov dword [esp + 0x90], edx
sub eax, dword [esp + 0x18]
mov ecx, dword [edi + 0x38]
add eax, 3
and eax, 0xfffffffc
mov dword [esp + 0x84], eax
mov edx, dword [edi + 0x34]
xor eax, eax
cmp dword [esp + 0x34], 3
mov dword [esp + 0x7c], edx
setg al
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0x4a20]
mov ecx, dword [ecx + 0x3cb0]
mov dword [esp + 0x94], edx
sub eax, 1
and eax, 0xfffffffd
add eax, 6
mov dword [esp + 0xb8], eax
mov eax, dword [eax*8 + 0x5893d0]
mov dword [esp + 0x98], eax
movsx eax, word [edi + 0x40]
neg eax
mov edx, eax
and edx, 3
lea ecx, [edx + ecx*4]
mov edx, dword [ecx*4 + 0x5d46e0]
sar eax, 2
lea eax, [edx + eax*2]
lea ecx, [esp + 0x110]
push ecx
mov ecx, dword [esp + 0x9c]
mov edx, ecx
shl edx, 4
mov dword [esp + 0xa4], eax
mov eax, dword [edi + 0x28]
add edx, eax
add edx, ecx
push 0x10
push edx
mov edx, ecx
shl edx, 4
add edx, eax
push edx
mov edx, dword [esp + 0x3c]
add ecx, eax
push ecx
push eax
mov eax, dword [esp + 0xd0]
mov ecx, dword [edx + eax*4 + 0x4c2c]
push 0x5b93a0
call ecx
add esp, 0x1c
cmp dword [esp + 0x98], 4
jne 0x514d43
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x18f4]
mov ecx, dword [eax + 0x48]
mov edx, dword [esp + 0x7c]
add ecx, 0x40
imul ecx, dword [esp + 0x8c]
lea eax, [edx + ecx*2]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x514d55
cmp eax, 2
je 0x514d55
cmp eax, 5
jne 0x514d6b
mov ecx, dword [esp + 0x98]
imul ecx, dword [esp + 0x8c]
mov dword [esp + 0x98], ecx
cmp eax, 2
je 0x514d75
cmp eax, 5
jne 0x514d83
mov edx, dword [esp + 0x118]
mov dword [esp + 0x114], edx
mov eax, dword [esp + 0x2c]
cmp dword [eax + 0x1f04], 4
jne 0x515451
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x94]
add ecx, 0xf
and ecx, 0xfffffff0
lea eax, [edx + ecx*2]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xa8]
cmp eax, 0x10
mov dword [esp + 0x58], 0
jg 0x514dd0
mov dword [esp + 0x6c], 0xa
jmp 0x514ddf
xor ecx, ecx
cmp eax, 0x18
setg cl
add ecx, 0xb
mov dword [esp + 0x6c], ecx
mov eax, dword [esp + 0x8c]
mov edx, dword [edi + 0x28]
mov ecx, dword [esp + 0x34]
push eax
imul eax, esi
add eax, dword [esp + 0x14]
add eax, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x34]
push 0x10
push edx
mov edx, dword [eax + ecx*4 + 0x4ac0]
call edx
mov ecx, dword [esp + 0x30]
movsx edx, word [ecx + esi*8]
mov ecx, dword [esp + 0x38]
add eax, edx
mov edx, dword [esp + 0x20]
movsx ecx, word [ecx + edx*8]
add eax, ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x90]
add esp, 0x10
cmp eax, dword [esp + 0x90]
mov dword [esp + 0x30], eax
jg 0x5151f7
mov eax, dword [esp + 0x8c]
imul eax, dword [esp + 0x80]
mov edx, dword [esp + 0x54]
lea ecx, [eax + edx]
mov edx, dword [esp + 0x18]
add edx, eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x64], ecx
lea ecx, [eax + edx*2]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0x20]
movsx ecx, word [edx + eax*8]
cmp dword [esp + 0x14], ecx
mov dword [esp + 0x5c], ecx
jle 0x5151cb
mov ecx, dword [esp + 0x14]
sub ecx, dword [esp + 0x5c]
mov eax, ecx
shl eax, 4
add eax, ecx
cdq
and edx, 0xf
add eax, edx
mov edx, dword [esp + 0xa0]
sar eax, 4
push eax
mov eax, dword [esp + 0x88]
push eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x9c]
push ecx
lea ecx, [edx + eax*2]
mov edx, dword [esp + 0xa4]
mov eax, dword [esp + 0x44]
push ecx
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x128]
push ecx
mov ecx, dword [edx + eax*4 + 0x4c80]
call ecx
mov dword [esp + 0x9c], eax
add eax, 0xfffffffe
add esp, 0x1c
test eax, eax
mov dword [esp + 0x1c], 0
jle 0x5150d8
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x18]
add edx, ecx
mov dword [esp + 0xb8], edx
mov edx, dword [esp + 0x94]
add edx, 4
mov dword [esp + 0x24], edx
lea ecx, [eax - 1]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
add edx, 1
mov dword [esp + 0x68], edx
lea edx, [edx + edx*2]
mov dword [esp + 0x1c], edx
mov edi, edi
mov ecx, dword [esp + 0x8c]
lea eax, [esp + 0x104]
push eax
mov eax, dword [esp + 0x28]
movsx edx, word [eax]
push ecx
mov ecx, dword [esp + 0xc0]
add edx, ecx
push edx
movsx edx, word [eax - 2]
movsx eax, word [eax - 4]
add edx, ecx
add eax, ecx
mov ecx, dword [edi + 0x28]
push edx
mov edx, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [edx + eax*4 + 0x4c10]
call ecx
mov edx, dword [esp + 0x3c]
movsx eax, word [edx - 4]
mov edx, dword [esp + 0x2c]
imul edx, dword [esp + 0x84]
mov ecx, dword [esp + 0xb8]
movzx eax, word [ecx + eax*2]
add eax, dword [esp + 0x11c]
sar edx, 3
add esp, 0x18
cmp eax, edx
jge 0x514ff8
cmp eax, dword [esp + 0x14]
jge 0x514fbe
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x5c]
lea edx, [eax + ecx]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x88]
mov dword [ecx + eax*8], edx
mov edx, dword [esp + 0x24]
movzx edx, word [edx - 4]
add dx, word [esp + 0x18]
add eax, 1
mov word [ecx + eax*8 - 4], dx
movzx edx, word [esp + 0x30]
mov word [ecx + eax*8 - 2], dx
mov dword [esp + 0x58], eax
jmp 0x514ffc
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x24]
movsx edx, word [ecx - 2]
mov ecx, dword [esp + 0xa0]
movzx ecx, word [ecx + edx*2]
mov edx, dword [esp + 0x14]
imul edx, dword [esp + 0x6c]
add ecx, dword [esp + 0x108]
sar edx, 3
cmp ecx, edx
jge 0x515063
cmp ecx, dword [esp + 0x14]
jge 0x515030
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x5c]
add edx, ecx
mov ecx, dword [esp + 0x88]
mov dword [ecx + eax*8], edx
mov edx, dword [esp + 0x24]
movzx edx, word [edx - 2]
add dx, word [esp + 0x18]
add eax, 1
mov word [ecx + eax*8 - 4], dx
movzx edx, word [esp + 0x30]
mov word [ecx + eax*8 - 2], dx
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x24]
movsx edx, word [ecx]
mov ecx, dword [esp + 0xa0]
movzx ecx, word [ecx + edx*2]
mov edx, dword [esp + 0x14]
imul edx, dword [esp + 0x6c]
add ecx, dword [esp + 0x10c]
sar edx, 3
cmp ecx, edx
jge 0x5150c8
cmp ecx, dword [esp + 0x14]
jge 0x515096
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x5c]
add edx, ecx
mov ecx, dword [esp + 0x88]
mov dword [ecx + eax*8], edx
mov edx, dword [esp + 0x24]
movzx edx, word [edx]
add dx, word [esp + 0x18]
add eax, 1
mov word [ecx + eax*8 - 4], dx
movzx edx, word [esp + 0x30]
mov word [ecx + eax*8 - 2], dx
mov dword [esp + 0x58], eax
add dword [esp + 0x24], 6
sub dword [esp + 0x68], 1
jne 0x514f40
mov eax, dword [esp + 0x80]
cmp dword [esp + 0x1c], eax
jge 0x5151bf
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x58]
lea eax, [ecx + edx*8 + 6]
mov dword [esp + 0x68], eax
lea esp, [esp]
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x1c]
movsx eax, word [ecx + edx*2]
add eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x64]
mov dword [esp + 0xb8], eax
push ecx
mov ecx, dword [esp + 0x30]
add eax, edx
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [edi + 0x28]
push 0x10
push eax
mov eax, dword [ecx + edx*4 + 0x4ac0]
call eax
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0xa4]
movsx ecx, word [ecx + edx*2]
mov edx, dword [esp + 0xb0]
movzx ecx, word [edx + ecx*2]
mov edx, dword [esp + 0x24]
imul edx, dword [esp + 0x7c]
add eax, ecx
sar edx, 3
add esp, 0x10
cmp eax, edx
jge 0x5151a7
cmp eax, dword [esp + 0x14]
jge 0x515179
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x5c]
add dword [esp + 0x58], 1
lea edx, [eax + ecx]
mov eax, dword [esp + 0x68]
mov cx, word [esp + 0xb8]
mov dword [eax - 6], edx
mov dx, word [esp + 0x30]
mov word [eax - 2], cx
mov word [eax], dx
add eax, 8
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x1c]
add eax, 1
cmp eax, dword [esp + 0x80]
mov dword [esp + 0x1c], eax
jl 0x515100
mov eax, dword [esp + 0x5c]
add dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x8c]
add ecx, ecx
add dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x8c]
add dword [esp + 0x64], ecx
add eax, 1
cmp eax, dword [esp + 0x90]
mov dword [esp + 0x30], eax
jle 0x514e70
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0x58]
cdq
sub eax, edx
mov edx, eax
sar edx, 1
lea eax, [edx + edx]
cmp ecx, eax
mov dword [esp + 0x90], edx
jle 0x5152ac
mov edx, dword [esp + 0x6c]
add edx, 8
imul edx, dword [esp + 0x14]
sar edx, 4
xor eax, eax
test ecx, ecx
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], eax
jle 0x515257
jmp 0x515245
mov edx, dword [esp + 0x14]
cmp dword [ecx + eax*8], edx
jg 0x515253
add eax, 1
cmp eax, dword [esp + 0x58]
jl 0x515241
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x58]
mov dword [esp + 0x24], eax
jge 0x51529f
mov edx, eax
mov eax, dword [ecx + edx*8]
cmp eax, dword [esp + 0x14]
jg 0x51528e
mov edx, eax
mov eax, dword [esp + 0x1c]
mov dword [ecx + eax*8], edx
mov edx, dword [esp + 0x24]
mov edx, dword [ecx + edx*8 + 4]
mov dword [ecx + eax*8 + 4], edx
mov edx, dword [esp + 0x24]
add eax, 1
mov dword [esp + 0x1c], eax
jmp 0x515292
mov eax, dword [esp + 0x1c]
add edx, 1
cmp edx, dword [esp + 0x58]
mov dword [esp + 0x24], edx
jl 0x515263
mov edx, dword [esp + 0x90]
mov dword [esp + 0x58], eax
jmp 0x5152b3
mov ecx, dword [esp + 0x88]
cmp dword [esp + 0x58], edx
jle 0x515398
xor eax, eax
cmp dword [esp + 0x90], eax
mov dword [esp + 0x1c], eax
jle 0x51538d
mov edx, dword [ecx + eax*8]
mov dword [esp + 0x80], eax
add eax, 1
cmp eax, dword [esp + 0x58]
mov dword [esp + 0x68], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], eax
jge 0x51537c
mov eax, dword [ecx + eax*8]
cmp eax, dword [esp + 0x68]
jge 0x51530d
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x80], eax
jmp 0x515311
mov eax, dword [esp + 0x24]
add eax, 1
cmp eax, dword [esp + 0x58]
mov dword [esp + 0x24], eax
jl 0x5152f3
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x80], eax
jle 0x515378
mov edx, dword [ecx + eax*8]
mov dword [esp + 0xb8], edx
mov edx, dword [ecx + eax*8 + 4]
mov dword [esp + 0xbc], edx
mov edx, dword [esp + 0x80]
mov edx, dword [ecx + edx*8]
mov dword [ecx + eax*8], edx
mov edx, dword [esp + 0x80]
mov edx, dword [ecx + edx*8 + 4]
mov dword [ecx + eax*8 + 4], edx
mov edx, dword [esp + 0xb8]
mov eax, dword [esp + 0x80]
mov dword [ecx + eax*8], edx
mov edx, dword [esp + 0xbc]
mov dword [ecx + eax*8 + 4], edx
mov eax, dword [esp + 0x38]
cmp eax, dword [esp + 0x90]
mov dword [esp + 0x1c], eax
jl 0x5152d0
mov eax, dword [esp + 0x90]
mov dword [esp + 0x58], eax
cmp dword [esp + 0x58], 0
jle case.default.0x512438
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x58]
add ecx, 6
mov dword [esp + 0x38], ecx
mov dword [esp + 0xa4], edx
lea esp, [esp]
mov ecx, dword [esp + 0x38]
movsx edx, word [ecx]
mov eax, dword [edi + 0x38]
mov dword [esp + 0x84], edx
movsx edx, word [ecx - 2]
mov dword [esp + 0x68], edx
movsx edx, word [ecx]
imul edx, eax
add edx, dword [esp + 0x54]
push eax
movsx eax, word [ecx - 2]
mov ecx, dword [edi + 0x28]
add eax, edx
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x3c]
push 0x10
push ecx
mov ecx, dword [edx + eax*4 + 0x4b78]
call ecx
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x38]
movsx edx, word [edx + ecx*8]
mov ecx, dword [esp + 0x30]
add eax, edx
mov edx, dword [esp + 0x94]
movsx ecx, word [ecx + edx*8]
add eax, ecx
add esp, 0x10
cmp eax, ebx
jge 0x515439
mov edx, dword [esp + 0x68]
mov esi, dword [esp + 0x84]
mov ebx, eax
mov dword [esp + 0x10], edx
add dword [esp + 0x38], 8
sub dword [esp + 0xa4], 1
jne 0x5153c0
jmp case.default.0x512438
mov eax, dword [esp + 0x80]
cmp eax, dword [esp + 0x90]
mov dword [esp + 0x30], eax
jg case.default.0x512438
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x20]
lea edx, [eax + ecx*8]
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x64], edx
lea edx, [eax + eax]
imul eax, ecx
add eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0xb8], edx
lea edx, [ecx + eax*2]
mov dword [esp + 0x38], edx
mov edi, edi
mov eax, dword [esp + 0x64]
movsx eax, word [eax]
cmp ebx, eax
mov dword [esp + 0xa4], eax
jle 0x5156f7
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x94]
sub ebx, eax
mov eax, dword [esp + 0xa0]
push ebx
push ecx
mov ecx, dword [esp + 0x20]
push edx
lea edx, [eax + ecx*2]
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0x44]
push edx
push eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x128]
push edx
mov edx, dword [eax + ecx*4 + 0x4c80]
call edx
mov dword [esp + 0x9c], eax
add eax, 0xfffffffe
add esp, 0x1c
test eax, eax
mov dword [esp + 0x1c], 0
jle 0x515642
mov ecx, dword [esp + 0x94]
lea edx, [eax - 1]
mov eax, 0xaaaaaaab
mul edx
add ecx, 4
shr edx, 1
add edx, 1
lea eax, [edx + edx*2]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x68], edx
mov dword [esp + 0x1c], eax
mov ecx, dword [edi + 0x38]
mov eax, ecx
imul eax, dword [esp + 0x30]
lea edx, [esp + 0x3c]
push edx
push ecx
mov ecx, dword [esp + 0x74]
movsx edx, word [ecx]
add edx, dword [esp + 0x20]
add edx, eax
add edx, dword [esp + 0x5c]
push edx
movsx edx, word [ecx - 2]
add edx, dword [esp + 0x24]
add edx, eax
add edx, dword [esp + 0x60]
push edx
movsx edx, word [ecx - 4]
add edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x3c]
add edx, eax
add edx, dword [esp + 0x64]
mov eax, dword [edi + 0x28]
push edx
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [ecx + edx*4 + 0x4b94]
call eax
mov eax, dword [esp + 0x84]
movsx ecx, word [eax - 4]
add ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x40]
movsx ecx, word [edx + ecx*8]
add dword [esp + 0x54], ecx
movsx edx, word [eax - 2]
add edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x40]
movsx ecx, word [ecx + edx*8]
mov edx, dword [esp + 0x58]
add edx, ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x58], edx
movsx eax, word [eax]
add eax, dword [esp + 0x30]
add esp, 0x18
movsx eax, word [ecx + eax*8]
add dword [esp + 0x44], eax
mov eax, dword [esp + 0x3c]
cmp eax, ebx
mov ecx, dword [esp + 0x6c]
jge 0x515601
mov esi, dword [esp + 0x30]
mov ebx, eax
movsx eax, word [ecx - 4]
add eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
cmp edx, ebx
jge 0x515617
movsx eax, word [ecx - 2]
add eax, dword [esp + 0x18]
mov esi, dword [esp + 0x30]
mov ebx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x44], ebx
jge 0x515630
movsx eax, word [ecx]
add eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x44]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x10], eax
add ecx, 6
sub dword [esp + 0x68], 1
mov dword [esp + 0x6c], ecx
jne 0x515543
mov ecx, dword [esp + 0x80]
add ebx, dword [esp + 0xa4]
cmp dword [esp + 0x1c], ecx
jge 0x5156f7
lea ebx, [ebx]
mov eax, dword [edi + 0x38]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x94]
movsx edx, word [edx + ecx*2]
mov ecx, dword [esp + 0x18]
push eax
imul eax, dword [esp + 0x34]
add eax, dword [esp + 0x1c]
add edx, ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x98]
movsx edx, word [edx + ecx*2]
mov ecx, dword [esp + 0x30]
add edx, eax
add edx, dword [esp + 0x58]
mov eax, dword [edi + 0x28]
push edx
mov edx, dword [esp + 0x3c]
push 0x10
push eax
mov eax, dword [ecx + edx*4 + 0x4b78]
call eax
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x38]
movsx ecx, word [ecx + edx*8]
mov edx, dword [esp + 0x74]
add eax, ecx
movsx ecx, word [edx]
add eax, ecx
add esp, 0x10
cmp eax, ebx
jge 0x5156df
mov edx, dword [esp + 0x68]
mov esi, dword [esp + 0x30]
mov ebx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x1c]
add eax, 1
cmp eax, dword [esp + 0x80]
mov dword [esp + 0x1c], eax
jl 0x515660
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0xb8]
add dword [esp + 0x38], ecx
add dword [esp + 0x64], 8
add eax, 1
cmp eax, dword [esp + 0x90]
mov dword [esp + 0x30], eax
jle 0x5154a0
mov eax, dword [esp + 0xcc]
cmp eax, ebx
jge 0x515743
mov dx, word [esp + 0xc4]
mov cx, word [esp + 0xdc]
mov word [edi + 0x4c], dx
mov dword [edi + 0x48], eax
jmp 0x51575c
mov edx, dword [esp + 0x10]
lea eax, [edx*4]
mov word [edi + 0x4c], ax
lea ecx, [esi*4]
mov dword [edi + 0x48], ebx
movsx edx, word [edi + 0x4c]
mov eax, dword [esp + 0x28]
mov word [edi + 0x4e], cx
movsx edx, word [eax + edx*2]
mov eax, dword [esp + 0x20]
movsx ecx, cx
movsx eax, word [eax + ecx*2]
add eax, edx
mov edx, dword [esp + 0x10]
cmp edx, dword [esp + 0xb4]
mov dword [edi + 0x44], eax
jne 0x5157a4
cmp esi, dword [esp + 0xac]
jne 0x5157a4
mov edx, dword [esp + 0x2c]
cmp dword [edx + 0x1f08], 3
jge 0x5157a8
add dword [edi + 0x48], eax
jmp 0x5157a8
mov edx, dword [esp + 0x2c]
cmp dword [edx + 0x1f08], 2
jl 0x5157f7
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 0x1f08]
mov edx, dword [esp + 0x100]
push 0
shl eax, 4
push edx
mov edx, dword [eax + 0x589804]
mov eax, dword [eax + 0x589800]
push edx
mov esi, edi
push eax
mov edi, ecx
call fcn.0050bdb0
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.00499441
mov esp, ebp
pop ebp
ret
cmp ecx, dword [edx + 0x1f40]
jle 0x51580a
mov cx, word [edx + 0x1f40]
mov word [edi + 0x4e], cx
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00499441
mov esp, ebp
pop ebp
ret