Function at 0x5656f0
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 0x5657e6
push 0xe
push ebx
push esi
call fcn.00576e60
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 0x565745
push str.call
push ebx
push esi
call fcn.00564e80
mov ecx, dword [ebp + 8]
add esp, 0xc
mov eax, dword [esi + 8]
cmp eax, ebx
jbe 0x565764
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 0x56574c
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 8]
sub eax, ebx
cmp eax, 0x10
jg 0x5657c3
mov eax, dword [esi + 0x20]
cmp eax, 1
jl 0x5657b3
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.0056c0d0
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.00565ad0
add esp, 0x18
jmp 0x5657c0
add eax, 6
push eax
push esi
call fcn.00565270
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 0x565851
mov ax, word [esi + 0x2c]
cmp ax, 0x1000
jbe 0x56582a
mov eax, dword [esi + 0x58]
test eax, eax
je 0x565819
mov dword [eax + 0x44], 5
mov eax, dword [esi + 0x58]
add eax, 4
push 1
push eax
call fcn.00711318
mov ecx, dword [esi + 0x10]
push esi
call dword [ecx + 0x28]
add esp, 4
push 1
call fcn.00711204
and eax, 0xffff
shl eax, 1
push eax
push esi
call fcn.00565320
add esp, 8
cmp word [esi + 0x2c], 0x1000
jbe 0x565851
push str.stack_overflow
push esi
call fcn.00565140
add esp, 8
mov eax, dword [ebx + 8]
mov cl, byte [eax + 6]
test cl, cl
jne 0x565a40
mov ecx, dword [eax + 0xc]
mov dword [ebp + 0xc], ecx
mov al, byte [ecx + 0x46]
test al, al
je 0x56599d
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 0x5658c0
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 0x5658a9
push ebx
push esi
call fcn.00565390
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 0x5658ab
sub edi, eax
push 1
push edi
push esi
mov dword [ebp - 0x14], edi
call fcn.00575570
xor ecx, ecx
add esp, 0xc
mov ebx, eax
cmp edi, ecx
mov dword [ebp - 4], ebx
jle 0x56592f
mov edx, edi
mov dword [ebp + 8], ecx
shl edx, 4
mov dword [ebp - 0xc], edx
jmp 0x5658ec
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.005764c0
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 0x5658e9
mov ebx, dword [ebp - 4]
push 1
push 0x774a04
push esi
mov dword [ebp - 0x24], 4
call fcn.00572ff0
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
push edx
push ebx
push esi
call fcn.005759f0
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 0x56598e
push 1
push esi
call fcn.00565390
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 0x5659d1
mov ecx, dword [esi + 0x20]
cmp eax, ecx
jg 0x5659c0
lea eax, [ecx + ecx]
push eax
jmp 0x5659c5
lea ecx, [ecx + eax + 5]
push ecx
push esi
call fcn.00565270
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 0x565a31
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 0x565a16
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 0x565a6a
mov eax, dword [esi + 0x20]
cmp eax, 0x14
jl 0x565a5d
lea ecx, [eax + eax]
push ecx
jmp 0x565a61
add eax, 0x19
push eax
push esi
call fcn.00565270
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 0x565aac
push 0xffffffffffffffff
push 0
push esi
call fcn.005654f0
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