Function at 0x666607
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
or dword [ebp - 0x34], 0xffffffff
push ebx
mov ebx, ecx
mov dword [ebp - 0x70], edx
xor edx, edx
mov dword [ebp - 0x58], ebx
push esi
push edi
mov esi, dword [ebx]
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x7c], edx
mov byte [ebp - 5], dl
mov byte [ebp - 0xd], dl
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x84], edx
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x44], esi
cmp dword [ebx + 0x24], edx
jne 0x66727a
cmp byte [esi + 0x45], dl
jne 0x66727a
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa0], edx
mov dword [ebp - 0x24], eax
test eax, eax
je 0x666691
test dword [eax + 8], 0x200
je 0x666691
cmp dword [eax + 0x30], edx
jne 0x666691
mov ecx, dword [eax]
mov dword [ebp - 0x40], ecx
mov ecx, esi
mov dword [eax], edx
mov edx, eax
call fcn.0066c436
and dword [ebp - 0x24], 0
mov edx, dword [ebp - 0x70]
cmp dword [edx + 0x10], 0
je 0x667280
mov ecx, ebx
call fcn.006622ff
mov edi, eax
mov dword [ebp - 0x64], edi
test edi, edi
je 0x667280
mov edx, dword [edi + 0x48]
mov ecx, esi
call fcn.0066bc8a
mov ecx, eax
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x10]
add ecx, ecx
xor esi, esi
push dword [eax + ecx*8]
mov ecx, ebx
push esi
push dword [edi]
push 0x12
pop edx
call fcn.0065d74f
add esp, 0xc
test eax, eax
jne 0x667280
mov eax, dword [edi + 0x24]
mov edx, edi
shr eax, 5
mov ecx, ebx
and eax, 0xffffff01
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x88]
push eax
push esi
push 0x6c
call fcn.00672c62
mov dword [ebp - 0x68], eax
add esp, 0xc
xor eax, eax
mov edx, edi
cmp dword [edi + 0xc], esi
mov ecx, ebx
setne al
mov dword [ebp - 0x4c], eax
call fcn.0065f7c3
test eax, eax
jne 0x667280
push dword [ebp - 0x88]
mov edx, edi
mov ecx, ebx
call fcn.0066233c
pop ecx
test eax, eax
jne 0x667280
mov ecx, ebx
call fcn.0066df3f
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x667280
cmp byte [ebx + 0x12], 0
jne 0x666762
mov ecx, esi
call fcn.0064c189
cmp dword [ebp - 0x24], 0
jne 0x666772
cmp dword [ebp - 0x68], 0
jne 0x666772
xor edx, edx
jmp 0x666775
xor edx, edx
inc edx
push dword [ebp - 0x38]
mov ecx, ebx
call fcn.00661769
cmp dword [ebp + 0xc], 0
pop ecx
jne 0x6667a3
push dword [ebp - 0x38]
mov edx, edi
mov ecx, ebx
push dword [ebp + 0x10]
push dword [ebp - 0x24]
call fcn.00667f31
add esp, 0xc
test eax, eax
jne 0x66721f
mov edx, dword [ebp - 0x38]
mov ecx, ebx
push edi
call fcn.0066642c
pop ecx
mov ecx, dword [ebx + 0x2c]
mov dword [ebp - 0x3c], eax
lea eax, [ecx + 1]
mov edx, eax
mov dword [ebp - 0x5c], eax
movsx eax, word [edi + 0x2a]
inc eax
mov dword [ebp - 0xc], edx
add eax, ecx
mov dword [ebx + 0x2c], eax
cmp dword [edi + 0x38], 0
je 0x6667da
lea edx, [ecx + 2]
inc eax
mov dword [ebp - 0xc], edx
mov dword [ebx + 0x2c], eax
mov ecx, dword [edi + 0x24]
lea eax, [edx + 1]
mov edx, dword [ebp + 0xc]
shr ecx, 7
not cl
mov dword [ebp - 0x74], eax
and ecx, 0xffffff01
mov dword [ebp - 0x28], ecx
test edx, edx
je 0x6668e8
xor ecx, ecx
cmp dword [edx + 4], ecx
jle 0x666810
mov eax, dword [edx]
or dword [eax + ecx*8 + 4], 0xffffffff
inc ecx
cmp ecx, dword [edx + 4]
jl 0x666803
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dword [ebp - 0x18], edx
cmp dword [eax + 4], edx
jle 0x6668e8
movsx eax, word [edi + 0x2a]
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
test eax, eax
jle 0x6668a4
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
mov eax, dword [eax + edx*8]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x20], eax
mov edx, dword [eax]
mov ecx, dword [ebp - 0x1c]
call fcn.006345fe
test eax, eax
je 0x66686d
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
inc ecx
movsx edx, word [edi + 0x2a]
add eax, 0x10
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x20], eax
cmp ecx, edx
jl 0x666842
mov edx, dword [ebp - 0x18]
jmp 0x6668a4
mov edx, dword [ebp - 0x18]
xor esi, esi
mov ecx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x2c]
mov dword [ecx + edx*8 + 4], eax
mov ecx, dword [ebp - 0x28]
movzx eax, cl
mov ecx, dword [ebp - 0x2c]
cmp edx, ecx
cmovne eax, esi
mov esi, dword [ebp - 0x34]
mov byte [ebp - 0x28], al
movsx eax, word [edi + 0x28]
cmp ecx, eax
mov dword [ebp - 0x34], esi
mov eax, esi
mov esi, dword [ebp - 0x14]
cmove eax, edx
mov dword [ebp - 0x34], eax
movsx eax, word [edi + 0x2a]
cmp ecx, eax
jl 0x6668d8
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov ecx, dword [ecx + edx*8]
call fcn.00658201
test eax, eax
je 0x666a61
cmp byte [ebp - 0x8c], 0
jne 0x666a61
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x34], edx
mov byte [ebp - 0x28], 0
mov eax, dword [ebp + 0xc]
inc edx
mov dword [ebp - 0x18], edx
cmp edx, dword [eax + 4]
jl 0x666821
cmp dword [ebp - 0x24], 0
je 0x666a88
inc dword [ebx + 0x2c]
mov ecx, esi
mov edx, dword [ebx + 0x2c]
mov dword [ebp - 0x20], edx
call fcn.0064950e
inc eax
push eax
push 0
push edx
push 0xf
pop edx
mov dword [ebp - 0x50], eax
call fcn.0064910e
add esp, 0xc
lea ecx, [ebp - 0xa4]
push dword [ebp - 0x20]
push 0xd
pop edx
call fcn.0066c33f
mov ecx, dword [ebp - 0x28]
xor eax, eax
mov edx, dword [ebp - 0x24]
add esp, 4
test cl, cl
mov ecx, ebx
cmovne eax, dword [ebp - 0x74]
mov dword [ebp - 0x9c], eax
movsx eax, word [edi + 0x2a]
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00670d7b
pop ecx
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0x60], ecx
test eax, eax
jne 0x667280
mov eax, dword [ebp - 0x44]
cmp byte [eax + 0x45], 0
jne 0x667280
cmp dword [ebx + 0x24], 0
jne 0x667280
mov edx, dword [ebp - 0x20]
mov ecx, esi
call fcn.00649341
mov edx, dword [ebp - 0x50]
mov ecx, esi
lea edx, [edx - 1]
call fcn.00649643
cmp dword [ebp - 0x68], 0
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
jne 0x6669b9
mov edx, dword [ebp - 0x38]
mov ecx, ebx
push edi
call fcn.00666396
pop ecx
test eax, eax
je 0x666ac6
mov edx, dword [ebx + 0x28]
mov ecx, ebx
mov byte [ebp - 5], 1
mov dword [ebp - 0x30], edx
lea eax, [edx + 1]
mov dword [ebx + 0x28], eax
call fcn.0065b3fb
mov edi, eax
call fcn.0065b3fb
push dword [ebp - 0x1c]
mov ecx, esi
mov ebx, eax
push edx
push 0x6c
pop edx
call fcn.00649192
push dword [ebp - 0xa0]
mov ecx, esi
push 0x10
pop edx
call fcn.0064917e
mov ecx, dword [ebp - 0x14]
add esp, 0xc
mov esi, eax
push edi
push dword [ebp - 0x1c]
push dword [ebp - 0x60]
push 0x63
pop edx
call fcn.0064910e
mov ecx, dword [ebp - 0x14]
add esp, 0xc
push ebx
push dword [ebp - 0x30]
push 0x73
pop edx
call fcn.00649192
mov ecx, dword [ebp - 0x14]
push ebx
push edi
push dword [ebp - 0x30]
push 0x74
pop edx
call fcn.0064910e
mov ecx, dword [ebp - 0x14]
add esp, 0x14
mov edx, esi
call fcn.006491a7
mov edx, esi
mov esi, dword [ebp - 0x14]
mov ecx, esi
call fcn.00649643
mov ecx, dword [ebp - 0x58]
mov edx, edi
call fcn.0065b41a
mov edx, ebx
mov ebx, ecx
call fcn.0065b41a
mov edi, dword [ebp - 0x64]
jmp 0x666ac6
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
mov eax, dword [eax]
push dword [eax + ecx*8]
push 0
push dword [ebp - 0x70]
push 0x4acad4
push ebx
call fcn.00634527
add esp, 0x14
mov byte [ebx + 0x11], 1
jmp 0x667280
push 0x20
lea eax, [ebp - 0xc4]
push 0
push eax
call fcn.0068ab50
or dword [ebp - 0x30], 0xffffffff
add esp, 0xc
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0xc4], ebx
test ecx, ecx
je 0x666acb
mov eax, dword [ecx]
mov edx, ecx
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0x1c], eax
call fcn.0065676d
test eax, eax
jne 0x667280
mov ecx, dword [ebp - 0x1c]
jmp 0x666ad0
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x666ae2
test ecx, ecx
jle 0x666ae2
movsx ecx, word [edi + 0x28]
mov dword [ebp - 0x34], ecx
movsx ecx, word [edi + 0x2a]
test ecx, ecx
jle 0x666b09
mov edx, dword [edi + 4]
mov esi, ecx
add edx, 0xf
movzx eax, byte [edx]
lea edx, [edx + 0x10]
shr eax, 1
and eax, 1
add dword [ebp - 0x48], eax
dec esi
jne 0x666af2
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x1c]
test eax, eax
jne 0x666b34
test edx, edx
je 0x666b50
sub ecx, dword [ebp - 0x48]
cmp edx, ecx
je 0x666b50
push edx
push ecx
push eax
push dword [ebp - 0x70]
push 0x4acaf4
push ebx
call fcn.00634527
add esp, 0x18
jmp 0x667280
cmp edx, dword [eax + 4]
je 0x666b50
push dword [eax + 4]
push edx
push 0x4acb28
push ebx
call fcn.00634527
add esp, 0x10
jmp 0x667280
mov eax, dword [ebp - 0x44]
test byte [eax + 0x18], 0x80
je 0x666b74
inc dword [ebx + 0x2c]
mov ecx, esi
mov eax, dword [ebx + 0x2c]
push eax
push 0
push 0x38
pop edx
mov dword [ebp - 0x84], eax
call fcn.00649192
pop ecx
pop ecx
cmp dword [ebp - 0x4c], 0
jne 0x666be3
lea eax, [ebp - 0x80]
mov edx, edi
push eax
lea eax, [ebp - 0x54]
mov ecx, ebx
push eax
push 0
push 0xffffffffffffffff
push 0
push 0x69
call fcn.00667d5c
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x20], eax
push 0
lea eax, [eax*4 + 4]
push eax
call fcn.00632627
add esp, 0x20
mov dword [ebp - 0x6c], eax
test eax, eax
je 0x667280
mov edx, dword [edi + 8]
xor ecx, ecx
cmp dword [ebp - 0x20], ecx
jle 0x666be3
mov edi, dword [ebp - 0x20]
mov esi, eax
inc dword [ebx + 0x2c]
mov eax, dword [ebx + 0x2c]
mov dword [esi + ecx*4], eax
movzx eax, word [edx + 0x34]
add dword [ebx + 0x2c], eax
inc ecx
mov edx, dword [edx + 0x14]
cmp ecx, edi
jl 0x666bc5
mov edi, dword [ebp - 0x64]
mov esi, dword [ebp - 0x14]
cmp byte [ebp - 5], 0
je 0x666c03
push dword [ebp - 0x30]
mov ecx, esi
push 0x25
pop edx
call fcn.0064917e
pop ecx
mov ecx, esi
mov dword [ebp - 0x78], eax
call fcn.0064950e
jmp 0x666c1d
cmp dword [ebp - 0x24], 0
je 0x666c20
push dword [ebp - 0xa0]
mov ecx, esi
push 0x10
pop edx
call fcn.0064917e
pop ecx
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x7c], eax
mov ecx, esi
call fcn.0064935e
test byte [ebp - 0x88], 1
mov dword [ebp - 0x48], eax
je 0x666df5
movsx edx, word [edi + 0x2a]
mov ecx, ebx
inc edx
call fcn.0065b45d
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
push eax
test ecx, ecx
jns 0x666c5e
push 0xffffffffffffffff
push 0x38
pop edx
mov ecx, esi
call fcn.00649192
pop ecx
pop ecx
jmp 0x666cc5
cmp byte [ebp - 5], 0
je 0x666c77
push ecx
push dword [ebp - 0x30]
mov ecx, esi
push 0x60
pop edx
call fcn.0064910e
add esp, 0xc
jmp 0x666c89
mov eax, dword [ebp - 0x40]
imul edx, ecx, 0x18
mov ecx, ebx
mov edx, dword [edx + eax + 8]
call fcn.0065a4a0
pop ecx
push dword [ebp - 0x18]
mov ecx, esi
push 0x4c
pop edx
call fcn.0064917e
pop ecx
push dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov esi, eax
push 0xffffffffffffffff
push 0x38
pop edx
call fcn.00649192
mov edx, esi
mov esi, dword [ebp - 0x14]
mov ecx, esi
call fcn.00649643
push dword [ebp - 0x18]
mov ecx, esi
push 0x11
pop edx
call fcn.0064917e
add esp, 0xc
xor edx, edx
xor eax, eax
mov dword [ebp - 0x28], edx
cmp ax, word [edi + 0x2a]
jge 0x666daa
mov eax, dword [ebp - 0x18]
or dword [ebp - 0x38], 0xffffffff
and dword [ebp - 0x20], edx
sub dword [ebp - 0x38], eax
lea ecx, [eax + 1]
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x666d29
xor edx, edx
mov dword [ebp - 0x28], edx
cmp dword [eax + 4], edx
jle 0x666d29
mov ebx, dword [ebp - 0x2c]
mov esi, eax
mov edi, dword [ebp - 0x38]
mov ecx, dword [esi]
add ecx, 4
lea eax, [edi + ebx]
cmp dword [ecx], eax
je 0x666d17
inc edx
add ecx, 8
cmp edx, dword [esi + 4]
jl 0x666d07
mov ebx, dword [ebp - 0x58]
mov edi, dword [ebp - 0x64]
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], edx
cmp byte [ebp - 5], 0
jne 0x666d35
cmp dword [ebp - 0x40], 0
je 0x666d3e
test eax, eax
je 0x666d52
cmp edx, dword [eax + 4]
jl 0x666d52
mov edx, dword [edi + 4]
mov eax, dword [ebp - 0x20]
push ecx
mov ecx, ebx
mov edx, dword [edx + eax + 4]
call fcn.0065a4a0
jmp 0x666d7d
cmp byte [ebp - 5], 0
push ecx
je 0x666d6c
push edx
push dword [ebp - 0x30]
mov ecx, esi
push 0x60
pop edx
call fcn.0064910e
add esp, 0xc
jmp 0x666d7e
mov eax, dword [ebp - 0x40]
mov ecx, ebx
imul edx, edx, 0x18
mov edx, dword [edx + eax + 8]
call fcn.0065a559
pop ecx
cmp dword [ebp + 0xc], 0
mov edx, dword [ebp - 0x28]
jne 0x666d8b
inc edx
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x20], 0x10
inc eax
mov ecx, dword [ebp - 0x38]
add ecx, eax
mov dword [ebp - 0x2c], eax
movsx eax, word [edi + 0x2a]
cmp ecx, eax
mov ecx, dword [ebp - 0x2c]
jl 0x666ce9
cmp dword [ebp - 0x4c], 0
jne 0x666dbf
mov eax, dword [ebp - 0x18]
mov edx, edi
inc eax
mov ecx, esi
push eax
call fcn.006662ef
pop ecx
push dword [ebp - 0x48]
movsx eax, word [edi + 0x2a]
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x68]
sub ecx, eax
dec ecx
push ecx
push edi
push 1
push 0
push 0x6c
mov ecx, ebx
call fcn.00673133
movsx eax, word [edi + 0x2a]
add esp, 0x1c
mov edx, dword [ebp - 0x18]
inc eax
mov ecx, ebx
push eax
call fcn.0065b493
pop ecx
cmp dword [ebp - 0x4c], 0
jne 0x667183
cmp dword [edi + 0x38], 0
je 0x666e16
push dword [ebp - 0x5c]
mov ecx, esi
push 0
push 0x3b
pop edx
call fcn.00649192
pop ecx
pop ecx
mov eax, dword [ebp - 0x34]
test eax, eax
js 0x666f14
cmp byte [ebp - 5], 0
je 0x666e80
mov ecx, dword [ebp - 0xc]
push ecx
push eax
push dword [ebp - 0x30]
mov ecx, esi
push 0x60
pop edx
call fcn.0064910e
add esp, 0xc
cmp dword [edi + 0x38], 0
jne 0x666eed
push dword [ebp - 0xc]
mov ecx, esi
push 0x4c
pop edx
call fcn.0064917e
pop ecx
mov ecx, dword [ebp - 0x3c]
mov esi, eax
push ecx
push dword [ebp - 0xc]
mov ecx, dword [ebp - 0x54]
push ecx
mov ecx, dword [ebp - 0x14]
push 0x73
pop edx
call fcn.0064910e
add esp, 0xc
mov edx, esi
mov esi, dword [ebp - 0x14]
mov ecx, esi
call fcn.00649643
jmp 0x666f05
cmp dword [ebp - 0x24], 0
je 0x666e9c
mov ecx, dword [ebp - 0xc]
add eax, dword [ebp - 0x60]
push ecx
push eax
push 0x40
pop edx
mov ecx, esi
call fcn.00649192
pop ecx
pop ecx
jmp 0x666e3c
push dword [ebp - 0xc]
imul edx, eax, 0x18
mov ecx, ebx
mov eax, dword [ebp - 0x40]
mov edx, dword [edx + eax + 8]
call fcn.0065a4a0
pop ecx
or edx, 0xffffffff
mov ecx, esi
call fcn.00649912
test eax, eax
je 0x666e3c
cmp byte [eax], 0x3b
jne 0x666e3c
cmp dword [edi + 0x38], 0
jne 0x666eed
mov ecx, dword [ebp - 0x54]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0x3c]
mov byte [ebp - 0xd], 1
mov byte [eax], 0x73
mov dword [eax + 0xc], ecx
jmp 0x666f52
mov ecx, esi
call fcn.0064950e
add eax, 2
push eax
push dword [ebp - 0xc]
push 0x4b
pop edx
call fcn.00649192
pop ecx
pop ecx
push dword [ebp - 0xc]
mov ecx, esi
push 0x11
pop edx
call fcn.0064917e
jmp 0x666f51
cmp dword [edi + 0x38], 0
jne 0x666f41
cmp byte [ebp - 0x8c], 0
jne 0x666f41
mov ecx, dword [ebp - 0x3c]
push ecx
push dword [ebp - 0xc]
mov ecx, dword [ebp - 0x54]
push ecx
push 0x73
pop edx
mov ecx, esi
call fcn.0064910e
add esp, 0xc
mov byte [ebp - 0xd], 1
jmp 0x666f52
push dword [ebp - 0xc]
mov ecx, esi
push 0
push 0x3b
pop edx
call fcn.00649192
pop ecx
pop ecx
push dword [ebp - 0xc]
mov edx, dword [ebp - 0x3c]
mov ecx, ebx
call fcn.00666543
xor edx, edx
xor eax, eax
pop ecx
mov ecx, edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0xc], ecx
cmp ax, word [edi + 0x2a]
jge 0x666fdb
mov dword [ebp - 0x3c], edx
mov edx, dword [ebp - 0x74]
movsx eax, word [edi + 0x28]
add edx, ecx
mov dword [ebp - 0x50], edx
cmp ecx, eax
jne 0x666f92
push edx
push 0x3c
pop edx
mov ecx, esi
call fcn.0064917e
jmp 0x666fc5
cmp dword [ebp + 0xc], 0
jne 0x667040
mov ebx, dword [ebp - 0x3c]
mov eax, dword [edi + 4]
test byte [eax + ebx + 0xf], 2
mov ebx, dword [ebp - 0x58]
je 0x667039
inc dword [ebp - 0x4c]
mov eax, dword [ebp - 0x3c]
mov ecx, ebx
push edx
mov edx, dword [edi + 4]
mov edx, dword [edx + eax + 4]
call fcn.0065a51e
pop ecx
mov ecx, dword [ebp - 0xc]
movsx eax, word [edi + 0x2a]
inc ecx
add dword [ebp - 0x3c], 0x10
mov dword [ebp - 0xc], ecx
cmp ecx, eax
jl 0x666f75
xor edx, edx
cmp dword [edi + 0x38], edx
je 0x6670f9
mov ecx, dword [ebp - 0x44]
mov edx, edi
call fcn.0067487f
mov ecx, ebx
mov esi, eax
call fcn.00675608
movsx eax, word [edi + 0x2a]
push 0xfffffffffffffff4
push esi
push dword [ebp - 0x5c]
mov esi, dword [ebp - 0x14]
add eax, 2
push eax
push 1
push 0xc
pop edx
mov ecx, esi
call fcn.00649258
mov eax, dword [ebp + 0x10]
add esp, 0x14
movzx edx, ax
cmp eax, 0xa
mov ecx, esi
push 2
pop eax
cmove edx, eax
call fcn.0064962b
mov ecx, ebx
call fcn.006617a3
jmp 0x667183
mov eax, ecx
sub eax, dword [ebp - 0x4c]
jmp 0x667071
mov edi, dword [ebp + 0xc]
xor eax, eax
cmp dword [edi + 4], eax
mov edi, dword [ebp - 0x64]
jle 0x667079
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ecx]
add ecx, 4
cmp dword [ecx], edx
je 0x667068
inc eax
add ecx, 8
cmp eax, dword [ebx + 4]
jl 0x66705b
mov ebx, dword [ebp - 0x58]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x50]
test eax, eax
js 0x666fb3
cmp dword [ebp - 0x1c], 0
je 0x666fb3
cmp dword [ebp + 0xc], 0
mov edi, dword [ebp - 0x64]
je 0x66709b
mov esi, dword [ebp + 0xc]
cmp eax, dword [esi + 4]
mov esi, dword [ebp - 0x14]
jge 0x666fb3
cmp byte [ebp - 5], 0
je 0x6670b8
push edx
push eax
push dword [ebp - 0x30]
mov ecx, esi
push 0x60
pop edx
call fcn.0064910e
add esp, 0xc
jmp 0x666fc6
cmp dword [ebp - 0x24], 0
je 0x6670e2
mov ebx, dword [ebp - 0x60]
cmp ebx, dword [ebp - 0x74]
mov ebx, dword [ebp - 0x58]
je 0x666fc9
add eax, dword [ebp - 0x60]
mov ecx, esi
push edx
push eax
push 0x41
pop edx
call fcn.00649192
pop ecx
jmp 0x666fc5
push edx
imul edx, eax, 0x18
mov ecx, ebx
mov eax, dword [ebp - 0x40]
mov edx, dword [edx + eax + 8]
call fcn.0065a4a0
jmp 0x666fc5
cmp dword [ebp - 0x34], 0
lea eax, [ebp - 0x50]
push edx
push eax
push dword [ebp - 0x48]
setge al
mov ecx, ebx
push dword [ebp + 0x10]
movzx eax, al
push eax
push edx
push dword [ebp - 0x5c]
mov edx, edi
push dword [ebp - 0x80]
push dword [ebp - 0x54]
push dword [ebp - 0x6c]
call fcn.0066733d
xor eax, eax
mov edx, edi
push eax
push eax
push dword [ebp - 0x5c]
mov ecx, ebx
push eax
call fcn.00665732
add esp, 0x38
cmp dword [ebp - 0x50], 0
je 0x667160
cmp dword [ebp - 0x68], 0
jne 0x66715c
mov eax, dword [ebp - 0x44]
test dword [eax + 0x18], 0x4000
je 0x667160
mov ecx, edi
call fcn.006654c8
test eax, eax
je 0x667160
xor eax, eax
jmp 0x667163
xor eax, eax
inc eax
push eax
movzx eax, byte [ebp - 0xd]
mov edx, edi
push eax
push 0
push dword [ebp - 0x6c]
mov ecx, ebx
push dword [ebp - 0x5c]
push dword [ebp - 0x80]
push dword [ebp - 0x54]
call fcn.00667bcb
add esp, 0x1c
mov eax, dword [ebp - 0x44]
test byte [eax + 0x18], 0x80
je 0x6671a0
push 1
push dword [ebp - 0x84]
mov ecx, esi
push 0x45
pop edx
call fcn.00649192
pop ecx
pop ecx
mov edx, dword [ebp - 0x68]
test edx, edx
je 0x6671cc
push dword [ebp - 0x48]
movsx eax, word [edi + 0x2a]
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x74]
push 2
sub ecx, eax
pop eax
sub ecx, eax
push ecx
push edi
push eax
push 0
push 0x6c
mov ecx, ebx
call fcn.00673133
add esp, 0x1c
mov edx, dword [ebp - 0x48]
mov ecx, esi
call fcn.006493a0
cmp byte [ebp - 5], 0
je 0x667205
push dword [ebp - 0x7c]
mov edi, dword [ebp - 0x30]
push edi
push 7
pop edx
call fcn.00649192
mov edx, dword [ebp - 0x78]
mov ecx, esi
call fcn.00649643
push edi
push 0x70
pop edx
mov ecx, esi
call fcn.0064917e
add esp, 0xc
jmp 0x66721f
cmp dword [ebp - 0x24], 0
je 0x66721f
mov edx, dword [ebp - 0x7c]
mov ecx, esi
call fcn.006491a7
mov edx, dword [ebp - 0x78]
mov ecx, esi
call fcn.00649643
cmp byte [ebx + 0x12], 0
jne 0x667232
cmp dword [ebx + 0x7c], 0
jne 0x667232
mov ecx, ebx
call fcn.006665f9
mov eax, dword [ebp - 0x44]
test byte [eax + 0x18], 0x80
je 0x667280
cmp byte [ebx + 0x12], 0
jne 0x667280
cmp dword [ebx + 0x7c], 0
jne 0x667280
push 1
push dword [ebp - 0x84]
mov ecx, esi
push 0x43
pop edx
call fcn.00649192
xor edx, edx
mov ecx, esi
inc edx
call fcn.0064a444
push 0
push 0x4acb44
push 0
xor edx, edx
mov ecx, esi
call fcn.0064a4ac
add esp, 0x14
jmp 0x667280
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x44]
mov ecx, ebx
mov edx, dword [ebp - 0x70]
call fcn.00661345
mov edx, dword [ebp - 0x40]
mov ecx, ebx
call fcn.00657f14
mov edx, dword [ebp - 0x24]
mov ecx, ebx
call fcn.0066c436
mov edx, dword [ebp + 0xc]
mov ecx, ebx
call fcn.006610ed
mov edx, dword [ebp - 0x6c]
mov ecx, ebx
call fcn.00632404
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret