Function at 0x5b3620
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x136c
call fcn.00568c40
push ebx
mov ebx, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ebx
push esi
push edi
mov eax, dword [ebx + 0x510]
mov edx, dword [ebx + 0x508]
mov ebx, dword [ebx + 0x504]
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], ebx
lea esi, [ebx*4]
mov dword [esp + 0x30], esi
test ebx, ebx
jle 0x5b36c4
mov ecx, esi
lea edi, [esp + 0x50]
shr ecx, 2
mov eax, 0xffffff38
rep stosd dword es:[edi], eax
test ebx, ebx
jle 0x5b36c4
mov ecx, esi
lea edi, [esp + 0x158]
shr ecx, 2
rep stosd dword es:[edi], eax
xor eax, eax
lea edi, [esp + 0x368]
mov ecx, esi
shr ecx, 2
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
test ebx, ebx
jne 0x5b36e7
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x578]
mov ecx, dword [ebp + 0xc]
push esi
push edx
push eax
push edx
mov edx, dword [ebp + 8]
push 0
call fcn.005b28d0
add esp, 0x14
jmp 0x5b3740
lea eax, [ebx - 1]
xor esi, esi
mov dword [esp + 0xc], eax
test eax, eax
jle 0x5b3bcb
lea edi, [esp + 0x578]
xor ebx, ebx
push dword [esp + 0x18]
mov eax, dword [esp + 0x28]
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push edi
push dword [eax + esi*4 + 4]
push dword [eax + esi*4]
call fcn.005b28d0
mov edx, dword [esp + 0x30]
inc esi
add esp, 0x14
add ebx, eax
add edi, 0x38
cmp esi, dword [esp + 0xc]
jl 0x5b3701
mov esi, dword [esp + 0x18]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x5b3bcb
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0xffffff38
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], 0xffffff38
lea edx, [ebx - 1]
push eax
lea ecx, [esp + 0x584]
call fcn.005b25f0
mov eax, dword [esp + 0x1c]
mov esi, 2
mov edi, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x50], eax
mov dword [esp + 0x158], eax
mov dword [esp + 0x15c], edi
mov dword [esp + 0x54], edi
cmp ebx, esi
jle 0x5b3a25
mov edx, dword [esp + 0x24]
lea eax, [edx + 0x210]
mov dword [esp + 0x10], eax
nop
mov eax, dword [eax]
mov ecx, dword [esp + eax*4 + 0x368]
mov eax, dword [esp + eax*4 + 0x260]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x4c], eax
cmp dword [esp + ecx*4 + 0x470], eax
je 0x5b3a04
mov edi, dword [edx + ecx*4 + 0x208]
mov edx, dword [edx + eax*4 + 0x208]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x38], edi
lea edi, [esp + 0x158]
mov dword [esp + ecx*4 + 0x470], eax
mov ebx, dword [edx + ecx*4 + 0x344]
mov edx, dword [edx + eax*4 + 0x344]
mov dword [esp + 0xc], edx
mov edx, dword [esp + ecx*4 + 0x50]
lea ecx, [edi + ecx*4]
mov edi, dword [ecx]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x40], ecx
test edx, edx
js 0x5b3830
test edi, edi
jns 0x5b382c
mov edi, edx
jmp 0x5b3830
add edi, edx
sar edi, 1
mov ebx, dword [esp + eax*4 + 0x158]
lea ecx, [esp + 0x50]
lea ecx, [ecx + eax*4]
mov dword [esp + 0x48], ecx
mov ecx, dword [ecx]
test ecx, ecx
js 0x5b3854
test ebx, ebx
jns 0x5b3850
mov ebx, ecx
jmp 0x5b3854
add ebx, ecx
sar ebx, 1
cmp edi, 0xffffffff
je 0x5b3bd6
cmp ebx, 0xffffffff
je 0x5b3bd6
push dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push dword [ebp + 8]
mov ecx, dword [esp + 0x24]
push dword [ebp + 0xc]
push ebx
push edi
call fcn.005b23c0
add esp, 0x14
test eax, eax
je 0x5b39e9
push dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 0xffffff38
push eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], 0xffffff38
mov dword [esp + 0x20], 0xffffff38
mov dword [esp + 0x28], 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.005b25f0
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x28]
add esp, 0xc
mov dword [esp + 0xc], eax
push dword [esp + 0x18]
push ecx
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
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.005b25f0
add esp, 0xc
mov edx, eax
cmp dword [esp + 0xc], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
je 0x5b392d
mov ecx, eax
jmp 0x5b3935
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x2c], ecx
test edx, edx
je 0x5b3943
mov dword [esp + 0x14], ecx
jmp 0x5b3947
mov ebx, dword [esp + 0x1c]
cmp dword [esp + 0xc], 0
je 0x5b3956
test edx, edx
jne 0x5b39e9
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
test edx, edx
mov dword [eax], edi
mov eax, dword [esp + 0x50]
cmove eax, edi
mov edi, dword [esp + 0x14]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x48]
mov dword [esp + esi*4 + 0x50], ecx
mov ecx, dword [esp + 0x4c]
cmp ecx, 1
mov dword [esp + esi*4 + 0x158], edi
mov dword [eax], ebx
mov eax, dword [esp + 0x15c]
cmove eax, ebx
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x15c], eax
jge 0x5b39a5
test edi, edi
js 0x5b39fc
mov eax, dword [esp + 0x10]
mov ebx, dword [eax]
lea eax, [ebx - 1]
test eax, eax
js 0x5b39c7
cmp dword [esp + eax*4 + 0x260], ecx
jne 0x5b39c7
mov dword [esp + eax*4 + 0x260], esi
sub eax, 1
jns 0x5b39b2
lea eax, [ebx + 1]
mov ebx, dword [esp + 0x28]
cmp eax, ebx
jge 0x5b3a00
cmp dword [esp + eax*4 + 0x368], edx
jne 0x5b3a00
mov dword [esp + eax*4 + 0x368], esi
inc eax
cmp eax, ebx
jl 0x5b39d2
jmp 0x5b3a00
mov dword [esp + esi*4 + 0x158], 0xffffff38
mov dword [esp + esi*4 + 0x50], 0xffffff38
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
inc esi
add eax, 4
mov dword [esp + 0x10], eax
cmp esi, ebx
jl 0x5b37b0
mov edi, dword [esp + 0x54]
mov esi, dword [esp + 0x158]
jmp 0x5b3a29
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x20]
add ecx, 7
and ecx, 0xfffffff8
mov edx, dword [eax + 0x48]
mov dword [esp + 0xc], ecx
lea eax, [edx + ecx]
cmp eax, dword [ebx + 0x4c]
jle 0x5b3a8b
mov edx, ebx
cmp dword [edx + 0x44], 0
je 0x5b3a76
push 8
call fcn.0058552b
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 + 0xc]
mov dword [edx + 0x54], eax
push ecx
mov dword [edx + 0x4c], ecx
call fcn.0058552b
mov ecx, ebx
add esp, 4
xor edx, edx
mov dword [ecx + 0x44], eax
jmp 0x5b3a90
mov eax, ebx
mov eax, dword [eax + 0x44]
lea ecx, [eax + edx]
mov eax, dword [esp + 0xc]
add eax, edx
mov dword [esp + 0x14], ecx
cmp dword [esp + 0x50], 0
mov edx, ebx
mov dword [edx + 0x48], eax
jl 0x5b3ab9
test esi, esi
jns 0x5b3ab3
mov esi, dword [esp + 0x50]
jmp 0x5b3ab9
add esi, dword [esp + 0x50]
sar esi, 1
mov dword [ecx], esi
test edi, edi
jns 0x5b3ac8
mov edi, dword [esp + 0x15c]
jmp 0x5b3adb
cmp dword [esp + 0x15c], 0
jl 0x5b3adb
add edi, dword [esp + 0x15c]
sar edi, 1
cmp dword [esp + 0x28], 2
mov dword [ecx + 4], edi
mov dword [esp + 0xc], 2
jle 0x5b3bcd
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
add edx, 0x30c
mov dword [esp + 0x1c], edx
lea eax, [ebx + 0x34c]
mov dword [esp + 0x10], eax
nop dword [eax]
mov eax, dword [edx + 0xfc]
mov esi, dword [edx]
mov edi, dword [ebx + eax*4 + 0x344]
mov eax, dword [ecx + eax*4]
mov ebx, dword [ecx + esi*4]
and eax, 0x7fff
mov ecx, dword [esp + 0x10]
and ebx, 0x7fff
sub ebx, eax
mov dword [esp + 0x30], eax
mov eax, ebx
cdq
mov ecx, dword [ecx]
xor eax, edx
sub eax, edx
sub ecx, edi
imul eax, ecx
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + esi*4 + 0x344]
sub ecx, edi
cdq
idiv ecx
mov edx, dword [esp + 0x30]
lea ecx, [eax + edx]
sub edx, eax
test ebx, ebx
cmovns edx, ecx
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + ecx*4 + 0x50]
mov eax, dword [esp + ecx*4 + 0x158]
test esi, esi
js 0x5b3b85
test eax, eax
jns 0x5b3b81
mov eax, esi
jmp 0x5b3b85
add eax, esi
sar eax, 1
test eax, eax
js 0x5b3b8d
cmp edx, eax
jne 0x5b3b94
mov eax, edx
or eax, 0x8000
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov dword [esi + ecx*4], eax
inc ecx
mov edx, dword [esp + 0x1c]
add dword [esp + 0x10], 4
add edx, 4
cmp ecx, dword [esp + 0x28]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], edx
jl 0x5b3b10
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
push 1
call fcn.0058f70d
int3