Function at 0x568530
Capabilities:
Enumerate pe sections
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [ebx]
push edi
mov ecx, dword [esi + 0x1c]
mov edi, ebx
sub edi, ecx
cmp eax, 6
mov dword [ebp - 8], edi
je 0x568626
push 0xe
push ebx
push esi
call fcn.00579ca0
mov edx, dword [esi + 0x1c]
mov ecx, eax
mov edi, ebx
add esp, 0xc
mov eax, dword [ecx]
sub edi, edx
cmp eax, 6
mov dword [ebp + 8], ecx
je 0x568585
push 0x77907c
push ebx
push esi
call fcn.00567cc0
mov ecx, dword [ebp + 8]
add esp, 0xc
mov eax, dword [esi + 8]
cmp eax, ebx
jbe 0x5685a4
mov edx, dword [eax - 0x10]
mov dword [eax], edx
mov edx, dword [eax - 8]
mov dword [eax + 8], edx
mov edx, dword [eax - 4]
mov dword [eax + 0xc], edx
add eax, 0xfffffff0
cmp eax, ebx
ja 0x56858c
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 8]
sub eax, ebx
cmp eax, 0x10
jg 0x568603
mov eax, dword [esi + 0x20]
cmp eax, 1
jl 0x5685f3
mov ecx, dword [esi + 0x1c]
lea ebx, [eax + eax]
mov edx, ebx
mov dword [ebp + 0xc], ecx
shl edx, 4
shl eax, 4
push edx
push eax
push ecx
push esi
call fcn.0056ef10
mov dword [esi + 0x20], ebx
add ebx, 0xfffffffa
shl ebx, 4
mov dword [esi + 0x1c], eax
add ebx, eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x18], ebx
push eax
push esi
call fcn.00568910
add esp, 0x18
jmp 0x568600
add eax, 6
push eax
push esi
call fcn.005680b0
add esp, 8
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x1c]
add edx, 0x10
add edi, eax
mov dword [esi + 8], edx
mov edx, dword [ecx]
mov ebx, edi
mov edi, dword [ebp - 8]
mov dword [ebx], edx
mov eax, dword [ecx + 8]
mov dword [ebx + 8], eax
mov ecx, dword [ecx + 0xc]
mov dword [ebx + 0xc], ecx
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x24]
add edx, 0x18
cmp edx, eax
jne 0x568691
mov ax, word [esi + 0x2c]
cmp ax, 0x1000
jbe 0x56866a
mov eax, dword [esi + 0x58]
test eax, eax
je 0x568659
mov dword [eax + 0x44], 5
mov eax, dword [esi + 0x58]
add eax, 4
push 1
push eax
call fcn.007154a8
mov ecx, dword [esi + 0x10]
push esi
call dword [ecx + 0x28]
add esp, 4
push 1
call fcn.00715395
and eax, 0xffff
shl eax, 1
push eax
push esi
call fcn.00568160
add esp, 8
cmp word [esi + 0x2c], 0x1000
jbe 0x568691
push 0x7792d8
push esi
call fcn.00567f80
add esp, 8
mov eax, dword [ebx + 8]
mov cl, byte [eax + 6]
test cl, cl
jne 0x568880
mov ecx, dword [eax + 0xc]
mov dword [ebp + 0xc], ecx
mov al, byte [ecx + 0x46]
test al, al
je 0x5687dd
mov edi, dword [esi + 8]
xor eax, eax
mov al, byte [ecx + 0x45]
sub edi, ebx
sub edi, 0x10
mov dword [ebp + 8], eax
sar edi, 4
cmp edi, eax
jge 0x568700
mov edx, dword [esi + 0x18]
mov ecx, dword [esi + 8]
mov ebx, eax
sub edx, ecx
sub ebx, edi
mov ecx, ebx
shl ecx, 4
cmp edx, ecx
jg 0x5686e9
push ebx
push esi
call fcn.005681d0
mov eax, dword [ebp + 8]
add esp, 8
add edi, ebx
mov edx, dword [esi + 8]
mov dword [edx], 0
mov edx, dword [esi + 8]
add edx, 0x10
dec ebx
mov dword [esi + 8], edx
jne 0x5686eb
sub edi, eax
push 1
push edi
push esi
mov dword [ebp - 0x14], edi
call fcn.005783b0
xor ecx, ecx
add esp, 0xc
mov ebx, eax
cmp edi, ecx
mov dword [ebp - 4], ebx
jle 0x56876f
mov edx, edi
mov dword [ebp + 8], ecx
shl edx, 4
mov dword [ebp - 0xc], edx
jmp 0x56872c
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov ebx, dword [esi + 8]
sub eax, edx
add eax, ebx
mov ebx, eax
lea eax, [ecx + 1]
mov dword [ebp - 0x10], eax
push eax
mov eax, dword [ebp - 4]
push eax
push esi
call fcn.00579300
mov ecx, dword [ebx]
add esp, 0xc
mov dword [eax], ecx
mov edx, dword [ebx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebp + 8]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x10]
add edx, 0x10
cmp ecx, edi
mov dword [ebp + 8], edx
jl 0x568729
mov ebx, dword [ebp - 4]
push 1
push 0x778a9c
push esi
mov dword [ebp - 0x24], 4
call fcn.00575e30
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
push edx
push ebx
push esi
call fcn.00578830
fild dword [ebp - 0x14]
neg edi
mov dword [eax], 3
add esp, 0x18
fstp qword [eax + 8]
mov eax, dword [esi + 8]
shl edi, 4
add eax, edi
mov dword [esi + 8], eax
mov dword [eax], 5
mov dword [eax + 8], ebx
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 8]
sub eax, edx
cmp eax, 0x10
jg 0x5687ce
push 1
push esi
call fcn.005681d0
add esp, 8
mov eax, dword [esi + 8]
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp - 8]
add eax, 0x10
mov dword [esi + 8], eax
mov edx, dword [esi + 0x18]
mov ebx, dword [esi + 8]
xor eax, eax
sub edx, ebx
mov al, byte [ecx + 0x47]
mov ebx, eax
shl ebx, 4
cmp edx, ebx
jg 0x568811
mov ecx, dword [esi + 0x20]
cmp eax, ecx
jg 0x568800
lea eax, [ecx + ecx]
push eax
jmp 0x568805
lea ecx, [ecx + eax + 5]
push ecx
push esi
call fcn.005680b0
mov ecx, dword [ebp + 0xc]
add esp, 8
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x1c]
add eax, 0x18
lea edx, [edi + edx + 0x10]
mov dword [esi + 0x14], eax
mov dword [eax], edx
mov edx, dword [esi + 0x14]
mov edi, dword [edx]
xor edx, edx
mov dword [esi + 0xc], edi
mov dl, byte [ecx + 0x47]
shl edx, 4
add edx, edi
mov dword [eax + 4], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [eax + 4]
mov dword [eax + 0x14], 0
mov dword [eax + 8], 8
mov edx, dword [esi + 8]
cmp edx, ecx
jae 0x568871
mov ecx, dword [esi + 8]
mov dword [ecx], 0
mov edi, dword [esi + 8]
add edi, 0x10
mov dword [esi + 8], edi
mov edx, dword [eax + 4]
mov ecx, edi
cmp ecx, edx
jb 0x568856
mov edx, dword [eax + 4]
pop edi
mov dword [esi + 8], edx
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 8]
sub eax, edx
cmp eax, 0x140
jg 0x5688aa
mov eax, dword [esi + 0x20]
cmp eax, 0x14
jl 0x56889d
lea ecx, [eax + eax]
push ecx
jmp 0x5688a1
add eax, 0x19
push eax
push esi
call fcn.005680b0
add esp, 8
mov edx, dword [esi + 0x14]
add edx, 0x18
mov dword [esi + 0x14], edx
mov eax, edx
mov edx, dword [esi + 0x1c]
lea ecx, [edi + edx + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x14]
mov ecx, dword [edx]
mov edx, dword [esi + 8]
add edx, 0x140
mov dword [esi + 0xc], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], 1
test byte [esi + 0x30], 1
je 0x5688ec
push 0xffffffffffffffff
push 0
push esi
call fcn.00568330
add esp, 0xc
mov eax, dword [esi + 0xc]
push esi
mov ecx, dword [eax - 8]
call dword [ecx + 0xc]
add esp, 4
shl eax, 4
mov edx, eax
mov eax, dword [esi + 8]
pop edi
pop esi
sub eax, edx
pop ebx
mov esp, ebp
pop ebp
ret