Function at 0x56d406
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
inc dword [edi + 0x48]
mov esi, dword [edi + 0x48]
mov ebx, dword [edi + 0xc]
push esi
push 0x1a
pop eax
mov ecx, ebx
mov dword [ebp - 0x18], ebx
call fcn.0055c33b
push esi
push 1
mov dword [ebp - 0x1c], eax
push 7
pop eax
mov ecx, ebx
call fcn.0055c34c
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0xc]
and dword [ebp - 4], 0
and dword [ebp - 0x24], 0
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ecx + 0x14]
mov edx, dword [ecx + 0x1c]
imul ebx, ebx, 0x28
add ebx, edx
xor ecx, ecx
mov esi, edx
add esp, 0xc
mov dword [ebp - 0x20], ecx
cmp esi, ebx
jae 0x56d4c1
push dword [ebp + 0x18]
mov ecx, esi
push dword [ebp + 0x14]
call fcn.0055f74e
pop ecx
pop ecx
test eax, eax
je 0x56d4b4
mov ecx, dword [esi + 0xc]
cmp ecx, 0x40
jl 0x56d48c
and dword [ebp - 0x34], 0
mov edx, 0x80000000
jmp 0x56d499
xor eax, eax
inc eax
xor edx, edx
call fcn.00598570
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
and ecx, dword [ebp - 0x24]
mov eax, edx
and eax, dword [ebp - 0x20]
or ecx, eax
jne 0x56d4b4
mov eax, dword [ebp - 0x34]
inc dword [ebp - 4]
or dword [ebp - 0x24], eax
or dword [ebp - 0x20], edx
mov eax, dword [ebp + 0x10]
add esi, 0x28
cmp esi, ebx
jb 0x56d466
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
mov esi, dword [ebp + 0x1c]
mov dword [esi + 4], edx
mov edx, dword [eax + 0x28]
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
not eax
and eax, edx
mov edx, dword [ebp - 0x28]
not ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
or ecx, 0x80000000
and ecx, edx
cmp eax, 0x3f
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0x3f
jge 0x56d505
mov dword [ebp - 0xc], eax
and dword [ebp - 8], 0
cmp dword [ebp - 0xc], 0
jle 0x56d53a
mov ecx, dword [ebp - 8]
xor eax, eax
inc eax
xor edx, edx
call fcn.00598570
and eax, dword [ebp - 0x34]
and edx, dword [ebp - 0x30]
or eax, edx
je 0x56d529
inc dword [ebp - 4]
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jl 0x56d50f
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
and edx, 0x80000000
xor ecx, ecx
or ecx, edx
je 0x56d550
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax - 0x3f]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
or dword [esi], 0x810002
imul eax, eax, 9
add eax, 0x34
push eax
mov eax, dword [edi]
call fcn.005601cb
mov edi, eax
pop ecx
test edi, edi
je 0x56d77c
mov ecx, dword [ebp - 4]
mov dword [esi + 0x10], edi
lea eax, [edi + 0x34]
mov dword [edi + 0x2c], eax
lea eax, [eax + ecx*4]
mov dword [edi + 8], eax
lea eax, [eax + ecx*4]
mov dword [edi + 0x28], eax
mov eax, dword [ebp - 0x10]
mov dword [edi + 0x10], eax
xor eax, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [edi], str.auto_index
mov dword [edi + 4], ecx
mov eax, dword [eax + 0x1c]
mov dword [ebp + 0xc], eax
cmp eax, ebx
jae 0x56d65f
push dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
push dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
call fcn.0055f74e
pop ecx
pop ecx
test eax, eax
je 0x56d652
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp ecx, 0x40
mov dword [ebp - 0x14], ecx
jl 0x56d5eb
and dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0x80000000
jmp 0x56d5fe
xor eax, eax
inc eax
xor edx, edx
call fcn.00598570
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
and eax, dword [ebp - 0x24]
and edx, dword [ebp - 0x20]
or eax, edx
jne 0x56d652
mov edx, dword [ebp - 0x2c]
or dword [ebp - 0x24], edx
mov edx, dword [ebp - 0x28]
or dword [ebp - 0x20], edx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edx, dword [edi + 8]
mov esi, dword [ebp - 8]
mov dword [edx + esi*4], ecx
mov esi, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov ecx, dword [ebp + 8]
call fcn.0056831a
test eax, eax
je 0x56d63e
mov eax, dword [eax]
jmp 0x56d643
mov eax, 0x5ca300
mov edx, dword [ebp - 8]
mov ecx, dword [edi + 0x2c]
inc dword [ebp - 8]
mov esi, dword [ebp + 0x1c]
mov dword [ecx + edx*4], eax
add dword [ebp + 0xc], 0x28
cmp dword [ebp + 0xc], ebx
jb 0x56d5b5
xor ebx, ebx
cmp dword [ebp - 0xc], ebx
jle 0x56d69b
xor eax, eax
inc eax
xor edx, edx
mov ecx, ebx
call fcn.00598570
and eax, dword [ebp - 0x34]
and edx, dword [ebp - 0x30]
or eax, edx
je 0x56d695
mov eax, dword [ebp - 8]
mov ecx, dword [edi + 8]
shl eax, 2
inc dword [ebp - 8]
mov dword [eax + ecx], ebx
mov ecx, dword [edi + 0x2c]
mov dword [eax + ecx], 0x5ca300
inc ebx
cmp ebx, dword [ebp - 0xc]
jl 0x56d666
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x2c]
and ecx, 0x80000000
xor eax, eax
or eax, ecx
je 0x56d6d7
mov edx, dword [ebp - 0x10]
push 0x3f
pop ecx
cmp dword [edx + 8], ecx
jle 0x56d6d7
mov eax, dword [ebp - 8]
shl eax, 2
mov ebx, dword [edi + 8]
mov dword [eax + ebx], ecx
mov ebx, dword [edi + 0x2c]
mov dword [eax + ebx], 0x5ca300
add eax, 4
inc ecx
cmp ecx, dword [edx + 8]
jl 0x56d6be
push edi
push dword [ebp + 8]
call fcn.00568fbb
mov ebx, dword [ebp - 0x18]
push 0xfffffffffffffff0
push eax
mov eax, dword [ebp - 4]
push 0
inc eax
push eax
push dword [esi + 0x20]
push ebx
push 0x28
pop eax
call fcn.00560b2c
push dword [esi + 0x1c]
mov ecx, ebx
push 0x41
pop eax
call fcn.0055c33b
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
call fcn.00556ac9
push 1
push eax
push dword [esi + 0x1c]
mov dword [ebp + 0x10], eax
push edi
push dword [ebp + 8]
call fcn.0056c9b8
push dword [ebp + 0x10]
mov ecx, ebx
push dword [esi + 0x20]
push 0x46
pop eax
call fcn.0055c34c
add esp, 0x40
mov dl, 0x10
mov ecx, ebx
call fcn.00555aea
mov edi, dword [ebp + 0xc]
lea eax, [edi + 1]
push eax
push dword [esi + 0x1c]
mov ecx, ebx
push 0x43
pop eax
call fcn.0055c34c
pop ecx
pop ecx
mov dl, 3
mov ecx, ebx
call fcn.00555aea
mov eax, edi
mov ecx, ebx
call fcn.00555afc
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
call fcn.00556ae4
mov eax, dword [ebp - 0x1c]
mov ecx, ebx
call fcn.00555afc
pop edi
pop esi
pop ebx
leave
ret