Function at 0x5e2b90
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x136c
call fcn.005b7160
push ebx
mov ebx, dword [edx + 0x504]
xor eax, eax
push esi
mov esi, dword [edx + 0x510]
mov dword [esp + 0x14], edx
xor edx, edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x3c], ebx
push edi
test ebx, ebx
jle 0x5e2c10
mov eax, 0xffffff38
lea edi, [esp + 0x158]
mov ecx, ebx
rep stosd dword es:[edi], eax
mov ecx, ebx
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
xor eax, eax
lea edi, [esp + 0x368]
mov ecx, ebx
rep stosd dword es:[edi], eax
test ebx, ebx
jle 0x5e2c10
mov eax, 1
lea edi, [esp + 0x260]
mov ecx, ebx
rep stosd dword es:[edi], eax
or eax, 0xffffffff
lea edi, [esp + 0x470]
mov ecx, ebx
test ebx, ebx
rep stosd dword es:[edi], eax
jne 0x5e2c39
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp + 8]
push esi
mov eax, dword [ecx + 0x508]
lea ecx, [esp + 0x57c]
push eax
push ecx
mov ecx, dword [ebp + 0xc]
push eax
push 0
call fcn.005e1720
add esp, 0x14
jmp 0x5e2c93
lea eax, [ebx - 1]
xor esi, esi
mov dword [esp + 0xc], eax
test eax, eax
jle 0x5e315e
lea edi, [esp + 0x578]
xor ebx, ebx
mov eax, dword [esp + 0x18]
push dword [esp + 0x14]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push dword [eax + 0x508]
push edi
push dword [eax + esi*4 + 4]
push dword [eax + esi*4]
call fcn.005e1720
inc esi
add esp, 0x14
add ebx, eax
add edi, 0x38
cmp esi, dword [esp + 0xc]
jl 0x5e2c53
mov esi, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x40]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x5e315c
push esi
lea eax, [esp + 0x20]
mov dword [esp + 0x14], 0xffffff38
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0xffffff38
lea edx, [ebx - 1]
push eax
lea ecx, [esp + 0x584]
call fcn.005e1460
mov eax, dword [esp + 0x1c]
mov esi, 2
mov edi, dword [esp + 0x28]
add esp, 0xc
mov dword [esp + 0x158], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edi
mov dword [esp + 0x15c], edi
cmp ebx, esi
jle 0x5e2fa5
mov edx, dword [esp + 0x18]
lea eax, [edx + 0x210]
mov dword [esp + 0x1c], 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 + 0xc], ecx
mov dword [esp + 0x4c], eax
cmp dword [esp + ecx*4 + 0x470], eax
je 0x5e2f84
mov edi, dword [edx + ecx*4 + 0x208]
mov edx, dword [edx + eax*4 + 0x208]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x44], edi
mov dword [esp + ecx*4 + 0x470], eax
mov edi, dword [edx + ecx*4 + 0x344]
mov dword [esp + 0x24], edi
mov edi, dword [edx + eax*4 + 0x344]
mov dword [esp + 0x28], edi
mov edi, dword [esp + ecx*4 + 0x158]
test edi, edi
jns 0x5e2d8b
lea edx, [esp + 0x50]
mov edi, dword [edx + ecx*4]
lea edx, [edx + ecx*4]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x14]
jmp 0x5e2d9d
lea ecx, [esp + ecx*4 + 0x50]
mov dword [esp + 0x30], ecx
mov ecx, dword [ecx]
test ecx, ecx
js 0x5e2d9d
add edi, ecx
sar edi, 1
lea ecx, [eax*4]
lea eax, [esp + 0x158]
add eax, ecx
mov dword [esp + 0x48], eax
mov eax, dword [eax]
mov dword [esp + 0x10], eax
test eax, eax
jns 0x5e2dc1
mov eax, dword [esp + ecx + 0x50]
jmp 0x5e2dcd
mov ecx, dword [esp + ecx + 0x50]
test ecx, ecx
js 0x5e2dd1
add eax, ecx
sar eax, 1
mov dword [esp + 0x10], eax
cmp edi, 0xffffffff
je 0x5e3167
cmp eax, 0xffffffff
je 0x5e3167
mov ecx, dword [esp + 0x24]
push edx
push dword [ebp + 8]
mov edx, dword [esp + 0x30]
push dword [ebp + 0xc]
push eax
push edi
call fcn.005e1240
add esp, 0x14
test eax, eax
je 0x5e2f6d
push dword [esp + 0x14]
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 0xffffff38
push eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], 0xffffff38
mov dword [esp + 0x38], 0xffffff38
mov dword [esp + 0x30], 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.005e1460
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0x30]
add esp, 0xc
mov dword [esp + 0x28], eax
push dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x28]
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.005e1460
mov ecx, eax
add esp, 0xc
cmp dword [esp + 0x28], 0
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x2c], eax
je 0x5e2eab
mov edx, eax
jmp 0x5e2eb3
mov edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x20], edx
test ecx, ecx
je 0x5e2ec5
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x2c], edx
jmp 0x5e2ec9
mov ecx, dword [esp + 0x24]
cmp dword [esp + 0x28], 0
je 0x5e2edb
cmp dword [esp + 0x38], 0
jne 0x5e2f6d
mov eax, dword [esp + 0x30]
cmp dword [esp + 0xc], 0
mov dword [eax], edi
mov eax, dword [esp + 0x158]
cmove eax, edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x158], eax
mov eax, dword [esp + 0x48]
mov dword [esp + esi*4 + 0x158], edx
mov edx, dword [esp + 0x4c]
cmp edx, 1
mov dword [esp + esi*4 + 0x50], edi
mov dword [eax], ecx
mov eax, dword [esp + 0x54]
cmove eax, ecx
cmp dword [esp + 0x20], 0
mov dword [esp + 0x54], eax
jge 0x5e2f29
test edi, edi
js 0x5e2f80
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea eax, [ecx - 1]
test eax, eax
js 0x5e2f4b
cmp dword [esp + eax*4 + 0x260], edx
jne 0x5e2f4b
mov dword [esp + eax*4 + 0x260], esi
sub eax, 1
jns 0x5e2f36
lea eax, [ecx + 1]
cmp eax, ebx
jge 0x5e2f80
mov ecx, dword [esp + 0xc]
cmp dword [esp + eax*4 + 0x368], ecx
jne 0x5e2f80
mov dword [esp + eax*4 + 0x368], esi
inc eax
cmp eax, ebx
jl 0x5e2f56
jmp 0x5e2f80
mov dword [esp + esi*4 + 0x50], 0xffffff38
mov dword [esp + esi*4 + 0x158], 0xffffff38
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
inc esi
add eax, 4
mov dword [esp + 0x1c], eax
cmp esi, ebx
jl 0x5e2d10
mov edi, dword [esp + 0x15c]
mov esi, dword [esp + 0x50]
jmp 0x5e2fa9
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x34]
lea ecx, [ebx*4 + 7]
and ecx, 0xfffffff8
mov dword [esp + 0xc], ecx
mov eax, dword [edx + 0x48]
add eax, ecx
cmp eax, dword [edx + 0x4c]
jle 0x5e300f
cmp dword [edx + 0x44], 0
je 0x5e2ff1
push 8
call fcn.005bfe50
mov edx, dword [esp + 0x38]
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.005bfe50
mov edx, dword [esp + 0x38]
add esp, 4
mov ecx, dword [esp + 0xc]
mov dword [edx + 0x44], eax
mov dword [edx + 0x48], 0
mov eax, dword [edx + 0x48]
mov edx, dword [edx + 0x44]
add edx, eax
add eax, ecx
cmp dword [esp + 0x158], 0
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x20], edx
mov dword [ecx + 0x48], eax
jl 0x5e3044
test esi, esi
jns 0x5e303b
mov esi, dword [esp + 0x158]
jmp 0x5e3044
add esi, dword [esp + 0x158]
sar esi, 1
mov dword [edx], esi
test edi, edi
jns 0x5e3050
mov edi, dword [esp + 0x54]
jmp 0x5e305d
cmp dword [esp + 0x54], 0
jl 0x5e305d
add edi, dword [esp + 0x54]
sar edi, 1
mov dword [edx + 4], edi
mov dword [esp + 0x28], 2
cmp ebx, 2
jle 0x5e315e
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add ecx, 0x30c
mov dword [esp + 0x24], ecx
lea eax, [ebx + 0x34c]
mov dword [esp + 0x10], eax
lea eax, [edx + 8]
mov dword [esp + 0x30], eax
mov eax, dword [ecx + 0xfc]
mov esi, dword [ecx]
mov ecx, dword [esp + 0x10]
mov edi, dword [ebx + eax*4 + 0x344]
mov eax, dword [edx + eax*4]
mov ebx, dword [edx + esi*4]
and eax, 0x7fff
mov ecx, dword [ecx]
and ebx, 0x7fff
sub ebx, eax
mov dword [esp + 0xc], eax
mov eax, ebx
sub ecx, edi
cdq
xor eax, edx
sub eax, edx
imul eax, ecx
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + esi*4 + 0x344]
sub ecx, edi
cdq
idiv ecx
mov ecx, eax
mov eax, dword [esp + 0xc]
test ebx, ebx
jns 0x5e30ea
sub eax, ecx
jmp 0x5e30ec
add eax, ecx
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + edx*4 + 0x158]
test ecx, ecx
jns 0x5e3101
mov ecx, dword [esp + edx*4 + 0x50]
jmp 0x5e310d
mov esi, dword [esp + edx*4 + 0x50]
test esi, esi
js 0x5e310d
add ecx, esi
sar ecx, 1
test ecx, ecx
js 0x5e311f
cmp eax, ecx
je 0x5e311f
mov eax, dword [esp + 0x30]
mov dword [eax + edx*4 - 8], ecx
jmp 0x5e312c
mov ecx, dword [esp + 0x30]
or eax, 0x8000
mov dword [ecx + edx*4 - 8], eax
mov ecx, dword [esp + 0x24]
inc edx
add dword [esp + 0x10], 4
add ecx, 4
cmp edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x24], ecx
jl 0x5e3094
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.005c0982
int3