Function at 0x589538
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff34
mov eax, 0x69d2ab
xor edx, edx
push ebx
push esi
push edi
mov dword [ebp - 0x28], 0x6db634
mov dword [ebp - 0x24], esp
mov dword [ebp - 0x2c], eax
mov word [ebp - 0x20], 0
mov dword [ebp - 0x14], edx
mov ecx, dword fs:[0]
mov dword [ebp - 0x30], ecx
lea eax, [ebp - 0x30]
mov dword fs:[0], eax
call fcn.0042c114
mov esi, eax
mov edx, esi
shl edx, 2
lea edx, [edx + edx*2]
push edx
call fcn.0067ac68
pop ecx
mov ebx, eax
test ebx, ebx
jne 0x5895d0
lea ecx, [ebp - 0x30]
mov eax, 0x6b0470
push ecx
push 0
push 0
push 0
push 1
push 0x40487c
push 0
mov edx, 0x6b045c
mov word [ebp - 0x20], 8
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
inc dword [ebp - 0x14]
mov dword [ebp - 4], edx
inc dword [ebp - 0x14]
push ecx
push 0x404824
call fcn.006aa5c5
add esp, 0x24
mov dword [ebp - 0x34], ebx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x30]
test edx, edx
je 0x589808
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov edx, dword [ecx + 0x34]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
mov ecx, dword [ecx + 0x40]
shl ecx, 2
add edx, ecx
add edx, 0xfffffffc
cmp edx, eax
jne 0x5897a9
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x14]
sub eax, ecx
test eax, eax
jns 0x589612
add eax, 3
sar eax, 2
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
add eax, eax
add eax, 2
mov dword [ebp - 0x44], eax
mov word [ebp - 0x20], 0x14
mov esi, dword [ebp - 0x44]
shl esi, 2
push esi
call fcn.0067ac68
pop ecx
mov ebx, eax
test ebx, ebx
jne 0x58967c
lea edx, [ebp - 0x30]
mov ecx, 0x6b0470
push edx
push 0
push 0
push 0
push 1
push 0x40487c
push 0
mov eax, 0x6b045c
mov word [ebp - 0x20], 0x20
mov dword [ebp - 8], ecx
lea edx, [ebp - 8]
inc dword [ebp - 0x14]
mov dword [ebp - 8], eax
inc dword [ebp - 0x14]
push edx
push 0x404824
call fcn.006aa5c5
add esp, 0x24
mov dword [ebp - 0x48], ebx
mov word [ebp - 0x20], 0
jmp 0x5896ad
mov esi, dword [ebp - 0x44]
shr esi, 2
mov eax, esi
shl eax, 2
mov edx, dword [ebp - 0x48]
add eax, edx
push eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x2c]
add eax, 4
push eax
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x14]
push ecx
call fcn.00589950
add esp, 0xc
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x34]
push eax
call fcn.0067ac7c
mov edx, dword [ebp + 8]
mov edi, dword [ebp - 0x48]
pop ecx
mov eax, esi
mov dword [edx + 0x34], edi
mov ebx, edi
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x34]
add eax, edx
mov dword [edi + eax*4 + 4], ecx
mov eax, esi
mov edx, dword [ebp + 8]
shl eax, 2
add ebx, eax
mov ecx, dword [edx + 8]
mov dword [ebp - 0x4c], ecx
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x5c], eax
mov edx, dword [ebx]
mov dword [ebp - 0x58], edx
call fcn.0042c114
mov ecx, eax
mov eax, dword [ebx]
shl ecx, 2
lea edx, [ebp - 0x64]
lea ecx, [ecx + ecx*2]
add ecx, eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], ebx
mov ecx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov esi, edx
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov edi, dword [ebp - 0x34]
mov ebx, dword [eax + 0x34]
mov eax, dword [ebp - 0x40]
shl esi, 2
mov dword [ebp - 0x74], edi
shl eax, 2
add ebx, esi
add ebx, eax
add ebx, 4
mov edx, dword [ebx]
mov dword [ebp - 0x70], edx
call fcn.0042c114
mov ecx, eax
mov eax, dword [ebx]
shl ecx, 2
lea edx, [ebp - 0x7c]
lea ecx, [ecx + ecx*2]
add ecx, eax
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x68], ebx
mov ecx, dword [ebp + 8]
push esi
push edi
mov esi, edx
lea edi, [ecx + 0x18]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
pop edi
add eax, 0x38
mov edx, dword [ebp - 0x44]
pop esi
mov dword [eax + 8], edx
mov dword [ebp - 0x84], edx
jmp 0x58993e
mov ecx, dword [ebp + 8]
add dword [ecx + 0x2c], 4
mov eax, dword [ecx + 0x2c]
mov edx, dword [ebp - 0x34]
mov dword [eax], edx
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx + 0x2c]
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x9c], esi
mov eax, dword [ebx]
mov dword [ebp - 0x98], eax
call fcn.0042c114
mov edx, eax
shl edx, 2
lea edx, [edx + edx*2]
mov ecx, dword [ebx]
add edx, ecx
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x90], ebx
lea eax, [ebp - 0xa4]
mov edx, dword [ebp + 8]
push esi
mov esi, eax
lea edi, [edx + 0x18]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
pop esi
jmp 0x58993e
call fcn.0042c114
mov edx, eax
mov eax, dword [ebp + 8]
add eax, 0x38
mov ecx, edx
mov dword [eax + 8], ecx
mov dword [ebp - 0xac], ecx
mov word [ebp - 0x20], 0x2c
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x40]
shl esi, 2
push esi
call fcn.0067ac68
pop ecx
mov ebx, eax
test ebx, ebx
jne 0x58987c
lea edx, [ebp - 0x30]
mov ecx, 0x6b0470
push edx
push 0
push 0
push 0
push 1
push 0x40487c
push 0
mov eax, 0x6b045c
mov word [ebp - 0x20], 0x38
mov dword [ebp - 0xc], ecx
lea edx, [ebp - 0xc]
inc dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
inc dword [ebp - 0x14]
push edx
push 0x404824
call fcn.006aa5c5
add esp, 0x24
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x34], ebx
mov word [ebp - 0x20], 0
jmp 0x5898b0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x40]
mov edx, dword [eax + 0x34]
shr ecx, 1
mov eax, dword [ebp - 0x34]
mov dword [edx + ecx*4], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ebx, dword [edx + 0x34]
mov edx, dword [eax + 0x40]
shr edx, 1
shl edx, 2
add ebx, edx
call fcn.0042c114
shr eax, 1
mov esi, eax
shl esi, 2
lea esi, [esi + esi*2]
mov eax, dword [ebp - 0x34]
add esi, eax
mov dword [ebp - 0xc4], esi
mov edx, dword [ebx]
mov dword [ebp - 0xc0], edx
call fcn.0042c114
mov ecx, eax
mov eax, dword [ebx]
shl ecx, 2
lea edx, [ebp - 0xcc]
lea ecx, [ecx + ecx*2]
add ecx, eax
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 0xb8], ebx
mov ecx, dword [ebp + 8]
push esi
mov edi, ecx
mov esi, edx
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 8]
pop esi
mov eax, dword [ebp + 8]
mov ecx, 6
mov esi, eax
lea edi, [edx + 0x18]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x30]
mov dword fs:[0], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret