Function at 0x1002da30
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x136c
call fcn.10005a60
mov eax, edx
mov dword [esp + 0x14], ecx
push ebx
push esi
mov dword [esp + 0x20], eax
xor edx, edx
mov ebx, dword [eax + 0x504]
mov esi, dword [eax + 0x510]
mov ecx, dword [eax + 0x508]
xor eax, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], ebx
push edi
test ebx, ebx
jle 0x1002dc2c
lea esi, [ebx*4]
mov eax, 0xffffff38
mov ecx, esi
mov dword [esp + 0x2c], esi
shr ecx, 2
lea edi, [esp + 0x158]
rep stosd dword es:[edi], eax
mov ecx, esi
lea edi, [esp + 0x50]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
lea edi, [esp + 0x368]
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, esi
lea edi, [esp + 0x260]
shr ecx, 2
mov eax, 1
rep stosd dword es:[edi], eax
mov ecx, esi
lea edi, [esp + 0x470]
shr ecx, 2
or eax, 0xffffffff
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
lea edi, [ebx - 1]
mov dword [esp + 0xc], edi
xor esi, esi
test edi, edi
jle 0x1002e023
lea edi, [esp + 0x578]
xor ebx, ebx
push dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
mov edx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp + 0xc]
push edi
push dword [eax + esi*4 + 4]
push dword [eax + esi*4]
call fcn.1002c420
mov ecx, dword [esp + 0x28]
inc esi
add esp, 0x14
add ebx, eax
add edi, 0x38
cmp esi, dword [esp + 0xc]
jl 0x1002daf2
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1002e021
push esi
lea eax, [esp + 0x10]
mov dword [esp + 0x18], 0xffffff38
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffff38
push eax
mov edx, edi
lea ecx, [esp + 0x584]
call fcn.1002c150
mov edi, dword [esp + 0x20]
mov esi, 2
mov eax, dword [esp + 0x18]
add esp, 0xc
mov dword [esp + 0x158], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], eax
mov dword [esp + 0x15c], eax
cmp ebx, esi
jle 0x1002de69
mov edx, dword [esp + 0x24]
lea eax, [edx + 0x210]
mov dword [esp + 0xc], eax
nop dword [eax]
nop word [eax + eax]
mov eax, dword [eax]
mov ecx, dword [esp + eax*4 + 0x368]
mov eax, dword [esp + eax*4 + 0x260]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x34], eax
cmp dword [esp + ecx*4 + 0x470], eax
je 0x1002de48
mov edi, dword [edx + ecx*4 + 0x208]
mov edx, dword [edx + eax*4 + 0x208]
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x1c]
mov dword [esp + ecx*4 + 0x470], eax
mov dword [esp + 0x3c], edi
mov ebx, dword [edx + ecx*4 + 0x344]
mov edx, dword [edx + eax*4 + 0x344]
mov dword [esp + 0x18], ebx
lea ebx, [esp + 0x50]
mov dword [esp + 0x10], edx
mov edx, dword [esp + ecx*4 + 0x158]
lea ecx, [ebx + ecx*4]
mov ebx, dword [ecx]
mov dword [esp + 0x44], ecx
test edx, edx
js 0x1002dc74
test ebx, ebx
jns 0x1002dc70
mov ebx, edx
jmp 0x1002dc74
lea eax, [ebx*4]
mov dword [esp + 0x2c], eax
lea edi, [ebx - 1]
mov dword [esp + 0xc], edi
test ebx, ebx
jne 0x1002dadf
mov edx, dword [ebp + 8]
lea eax, [esp + 0x578]
push esi
push ecx
push eax
push ecx
mov ecx, dword [ebp + 0xc]
push ebx
call fcn.1002c420
lea ecx, [ebx*4]
add esp, 0x14
mov dword [esp + 0x2c], ecx
jmp 0x1002db35
add ebx, edx
sar ebx, 1
mov edi, dword [esp + eax*4 + 0x50]
lea ecx, [esp + 0x158]
lea ecx, [ecx + eax*4]
mov dword [esp + 0x4c], ecx
mov ecx, dword [ecx]
test ecx, ecx
js 0x1002dc98
test edi, edi
jns 0x1002dc94
mov edi, ecx
jmp 0x1002dc98
add edi, ecx
sar edi, 1
cmp ebx, 0xffffffff
je 0x1002e02c
cmp edi, 0xffffffff
je 0x1002e02c
push dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push dword [ebp + 8]
mov ecx, dword [esp + 0x20]
push dword [ebp + 0xc]
push edi
push ebx
call fcn.1002bf10
add esp, 0x14
test eax, eax
je 0x1002de2d
push dword [esp + 0x1c]
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0x40], 0xffffff38
push eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x3c], 0xffffff38
mov dword [esp + 0x20], 0xffffff38
mov dword [esp + 0x24], 0xffffff38
mov edx, dword [eax]
lea eax, [ecx*8]
sub eax, ecx
sub edx, ecx
lea ecx, [esp + 0x584]
lea ecx, [ecx + eax*8]
call fcn.1002c150
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x10], eax
push dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
sub edx, eax
lea ecx, [eax*8]
sub ecx, eax
lea eax, [esp + 0x584]
lea ecx, [eax + ecx*8]
call fcn.1002c150
add esp, 0xc
mov edx, eax
cmp dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
je 0x1002dd71
mov ecx, eax
jmp 0x1002dd79
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x30], ecx
test edx, edx
je 0x1002dd87
mov dword [esp + 0x14], ecx
jmp 0x1002dd8b
mov edi, dword [esp + 0x18]
cmp dword [esp + 0x10], 0
je 0x1002dd9a
test edx, edx
jne 0x1002de2d
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
test edx, edx
mov dword [eax], ebx
mov eax, dword [esp + 0x158]
cmove eax, ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x158], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + esi*4 + 0x158], ecx
mov ecx, dword [esp + 0x34]
cmp ecx, 1
mov dword [esp + esi*4 + 0x50], ebx
mov dword [eax], edi
mov eax, dword [esp + 0x54]
cmove eax, edi
cmp dword [esp + 0x30], 0
mov dword [esp + 0x54], eax
jge 0x1002dde9
test ebx, ebx
js 0x1002de40
mov eax, dword [esp + 0xc]
mov ebx, dword [eax]
lea eax, [ebx - 1]
test eax, eax
js 0x1002de0b
cmp dword [esp + eax*4 + 0x260], ecx
jne 0x1002de0b
mov dword [esp + eax*4 + 0x260], esi
sub eax, 1
jns 0x1002ddf6
lea eax, [ebx + 1]
mov ebx, dword [esp + 0x28]
cmp eax, ebx
jge 0x1002de44
cmp dword [esp + eax*4 + 0x368], edx
jne 0x1002de44
mov dword [esp + eax*4 + 0x368], esi
inc eax
cmp eax, ebx
jl 0x1002de16
jmp 0x1002de44
mov dword [esp + esi*4 + 0x50], 0xffffff38
mov dword [esp + esi*4 + 0x158], 0xffffff38
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0xc]
inc esi
add eax, 4
mov dword [esp + 0xc], eax
cmp esi, ebx
jl 0x1002dbb0
mov esi, dword [esp + 0x15c]
mov edi, dword [esp + 0x50]
jmp 0x1002de6d
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
add ecx, 7
and ecx, 0xfffffff8
mov edx, dword [eax + 0x48]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], edx
lea eax, [edx + ecx]
cmp eax, dword [ebx + 0x4c]
jle 0x1002ded9
mov edx, ebx
cmp dword [edx + 0x44], 0
je 0x1002debe
push 8
call fcn.1000e58b
mov edx, ebx
add esp, 4
mov ecx, dword [edx + 0x48]
add dword [edx + 0x50], ecx
mov ecx, dword [edx + 0x54]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 0x44]
mov dword [eax], ecx
mov ecx, dword [esp + 0x10]
mov dword [edx + 0x54], eax
push ecx
mov dword [edx + 0x4c], ecx
call fcn.1000e58b
mov ecx, ebx
add esp, 4
xor edx, edx
mov dword [esp + 0x18], edx
mov dword [ecx + 0x44], eax
mov ecx, dword [esp + 0x10]
mov eax, ebx
add edx, dword [eax + 0x44]
mov eax, dword [esp + 0x18]
add eax, ecx
mov dword [esp + 0xc], edx
cmp dword [esp + 0x158], 0
mov ecx, ebx
mov dword [ecx + 0x48], eax
jl 0x1002df0d
test edi, edi
jns 0x1002df04
mov edi, dword [esp + 0x158]
jmp 0x1002df0d
add edi, dword [esp + 0x158]
sar edi, 1
mov dword [edx], edi
test esi, esi
jns 0x1002df19
mov esi, dword [esp + 0x54]
jmp 0x1002df26
cmp dword [esp + 0x54], 0
jl 0x1002df26
add esi, dword [esp + 0x54]
sar esi, 1
cmp dword [esp + 0x28], 2
mov dword [edx + 4], esi
mov dword [esp + 0x10], 2
jle 0x1002e023
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
add edx, 0x30c
mov dword [esp + 0x18], edx
lea ecx, [ebx + 0x34c]
mov dword [esp + 0x2c], ecx
nop dword [eax + eax]
mov eax, dword [edx + 0xfc]
mov esi, dword [edx]
mov edx, dword [esp + 0xc]
mov ecx, dword [ecx]
mov edi, dword [ebx + eax*4 + 0x344]
sub ecx, edi
mov eax, dword [edx + eax*4]
mov ebx, dword [edx + esi*4]
and eax, 0x7fff
mov dword [esp + 0x34], eax
and ebx, 0x7fff
sub ebx, eax
mov eax, ebx
cdq
xor eax, edx
sub eax, edx
imul eax, ecx
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + esi*4 + 0x344]
sub ecx, edi
cdq
idiv ecx
mov edx, dword [esp + 0x34]
lea ecx, [eax + edx]
sub edx, eax
test ebx, ebx
cmovns edx, ecx
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + ecx*4 + 0x158]
test eax, eax
jns 0x1002dfcb
mov eax, dword [esp + ecx*4 + 0x50]
jmp 0x1002dfd7
mov esi, dword [esp + ecx*4 + 0x50]
test esi, esi
js 0x1002dfdb
add eax, esi
sar eax, 1
test eax, eax
js 0x1002dfdf
cmp edx, eax
jne 0x1002dfe6
mov eax, edx
or eax, 0x8000
mov edx, dword [esp + 0xc]
add dword [esp + 0x2c], 4
mov ebx, dword [esp + 0x1c]
mov dword [edx + ecx*4], eax
inc ecx
mov edx, dword [esp + 0x18]
add edx, 4
mov dword [esp + 0x10], ecx
cmp ecx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x18], edx
jl 0x1002df60
mov edx, dword [esp + 0xc]
mov eax, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor edx, edx
pop edi
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
push 1
call fcn.1000f46d
int3