Function at 0x10017694
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd48
mov edx, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push ebx
mov eax, dword [edx + 0x508]
mov ebx, dword [edx + 0x510]
push esi
mov esi, dword [edx + 0x504]
test esi, esi
push edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], esi
jle 0x10017714
mov ecx, esi
mov eax, 0xffffff38
lea edi, [ebp - 0x23c]
rep stosd dword es:[edi], eax
jle 0x100176e2
mov ecx, esi
lea edi, [ebp - 0x138]
rep stosd dword es:[edi], eax
test esi, esi
jle 0x10017714
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x340]
test esi, esi
rep stosd dword es:[edi], eax
jle 0x10017714
push 1
mov ecx, esi
pop eax
lea edi, [ebp - 0x444]
rep stosd dword es:[edi], eax
jle 0x10017712
mov ecx, esi
or eax, 0xffffffff
lea edi, [ebp - 0x548]
rep stosd dword es:[edi], eax
test esi, esi
jne 0x10017739
push ebx
lea eax, [ebp - 0xd48]
push dword [ebp - 0x10]
push eax
push dword [ebp - 0x10]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call fcn.10017af8
add esp, 0x1c
mov dword [ebp - 4], eax
jmp 0x1001777c
lea ecx, [esi - 1]
test ecx, ecx
jle 0x10017aae
mov eax, edx
lea edx, [ebp - 0xd48]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], ecx
push ebx
lea edi, [eax + 4]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push dword [edi]
push dword [eax]
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call fcn.10017af8
add dword [ebp - 4], eax
add dword [ebp - 0xc], 0x20
add esp, 0x1c
dec dword [ebp - 0x14]
mov eax, edi
jne 0x10017752
cmp dword [ebp - 4], 0
je 0x10017aae
mov eax, 0xffffff38
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [esi - 1]
push eax
lea eax, [ebp - 0xd48]
push eax
call fcn.10017c70
mov eax, dword [ebp - 0x14]
add esp, 0x10
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x10]
push 2
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x238], eax
pop eax
cmp esi, eax
mov dword [ebp - 4], eax
jle 0x100179ba
mov eax, dword [ebp + 0xc]
add eax, 0x210
and dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov ecx, eax
mov dword [ebp - 0x30], eax
shl ecx, 2
mov eax, dword [ebp + ecx - 0x340]
mov esi, dword [ebp + ecx - 0x444]
mov dword [ebp - 0x2c], eax
cmp dword [ebp + eax*4 - 0x548], esi
lea ecx, [ebp + eax*4 - 0x548]
je 0x100179a0
mov edx, dword [ebp + 0xc]
mov dword [ecx], esi
mov ecx, dword [ebx + eax*4 + 0x344]
push eax
mov edi, dword [edx + eax*4 + 0x208]
mov edx, dword [edx + esi*4 + 0x208]
lea eax, [ebp - 0x138]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebx + esi*4 + 0x344]
push eax
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x34], edx
push eax
mov dword [ebp - 0x24], ecx
call fcn.10017f9d
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x138]
push esi
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.10017f9d
add esp, 0x18
cmp dword [ebp - 0x1c], 0xffffffff
je 0x10017a29
cmp eax, 0xffffffff
je 0x10017a29
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
push dword [ebp - 0x20]
call fcn.10017dd8
add esp, 0x1c
test eax, eax
je 0x1001798a
mov eax, 0xffffff38
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x30]
sub eax, edi
shl edi, 5
push eax
lea eax, [ebp + edi - 0xd48]
push eax
call fcn.10017c70
mov edi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x34]
sub eax, edi
push eax
mov eax, edi
shl eax, 5
lea eax, [ebp + eax - 0xd48]
push eax
call fcn.10017c70
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
add esp, 0x20
test ecx, ecx
mov dword [ebp + ecx*4 - 0x138], eax
jne 0x10017911
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
cmp esi, 1
mov dword [ebp + eax - 0x234], ecx
mov dword [ebp + eax - 0x130], edx
mov eax, dword [ebp - 0x24]
mov dword [ebp + esi*4 - 0x23c], eax
jne 0x1001793d
mov dword [ebp - 0x134], eax
test ecx, ecx
jge 0x10017945
test edx, edx
jl 0x100179a0
lea ecx, [edi - 1]
test ecx, ecx
jl 0x10017964
lea eax, [ebp + ecx*4 - 0x444]
cmp dword [eax], esi
jne 0x10017964
mov edx, dword [ebp - 4]
dec ecx
mov dword [eax], edx
sub eax, 4
test ecx, ecx
jge 0x10017953
lea ecx, [edi + 1]
cmp ecx, dword [ebp - 0x18]
jge 0x100179a0
lea eax, [ebp + ecx*4 - 0x340]
mov edx, dword [ebp - 0x2c]
cmp dword [eax], edx
jne 0x100179a0
mov edx, dword [ebp - 4]
inc ecx
mov dword [eax], edx
add eax, 4
cmp ecx, dword [ebp - 0x18]
jl 0x10017973
jmp 0x100179a0
mov eax, dword [ebp - 8]
mov ecx, 0xffffff38
mov dword [ebp + eax - 0x234], ecx
mov dword [ebp + eax - 0x130], ecx
inc dword [ebp - 4]
add dword [ebp - 0xc], 4
mov eax, dword [ebp - 4]
add dword [ebp - 8], 4
cmp eax, dword [ebp - 0x18]
jl 0x100177e7
mov esi, dword [ebp - 0x18]
mov eax, esi
shl eax, 2
push eax
push dword [ebp + 8]
call fcn.10014348
mov edi, eax
lea eax, [ebp - 0x138]
push 0
push eax
lea eax, [ebp - 0x23c]
mov dword [ebp - 8], edi
push eax
call fcn.10017f9d
mov dword [edi], eax
lea eax, [ebp - 0x138]
push 1
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.10017f9d
add esp, 0x20
mov dword [edi + 4], eax
push 2
pop eax
cmp esi, eax
mov dword [ebp - 4], eax
jle 0x10017aae
mov edx, edi
lea eax, [edx + 8]
mov dword [ebp + 0x10], eax
lea eax, [ebx + 0x34c]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0xc]
lea esi, [eax + 0x30c]
jmp 0x10017a34
push 1
call dword [sym.imp.MSVCRT.dll_exit]
mov edx, dword [ebp - 8]
mov eax, dword [esi + 0xfc]
mov ecx, dword [esi]
mov edi, dword [ebx + eax*4 + 0x344]
mov eax, dword [edx + eax*4]
mov dword [ebp + 0xc], edi
mov edi, dword [ebx + ecx*4 + 0x344]
mov ecx, dword [edx + ecx*4]
mov edx, dword [ebp + 0x14]
push dword [edx]
push ecx
push eax
push edi
push dword [ebp + 0xc]
call fcn.10017ab6
push dword [ebp - 4]
mov edi, eax
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.10017f9d
add esp, 0x20
test eax, eax
jl 0x10017a8d
cmp edi, eax
je 0x10017a8d
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x10017a98
mov eax, dword [ebp + 0x10]
or edi, 0x8000
mov dword [eax], edi
inc dword [ebp - 4]
add dword [ebp + 0x14], 4
mov eax, dword [ebp - 4]
add dword [ebp + 0x10], 4
add esi, 4
cmp eax, dword [ebp - 0x18]
jl 0x10017a31
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret