Function at 0x5797a0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, eax
movzx eax, byte [esi + 5]
push edi
mov edi, dword [esi + 8]
mov ecx, dword [edi + 0x2c]
lea eax, [eax + eax*4]
lea edx, [ecx + eax*4]
mov eax, dword [edi + 0x40]
mov eax, dword [eax]
cmp dword [0x805cfc], eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edx
je 0x5797e5
mov ecx, dword [0x7e43a0]
mov dword [0x805cfc], eax
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x1a0]
push ecx
call eax
mov eax, dword [edi + 0x10]
mov ebp, dword [edi]
xor ebx, ebx
cmp eax, ebx
je 0x5797f4
mov eax, dword [eax]
jmp 0x5797f6
xor eax, eax
xor ecx, ecx
cmp dword [0x805bf0], eax
setne cl
xor edx, edx
cmp dword [0x805c70], ebp
setne dl
or ecx, edx
xor edx, edx
cmp dword [0x805c30], ebx
setne dl
or ecx, edx
je 0x579843
mov ecx, dword [0x7e43a0]
push ebp
push ebx
push eax
mov dword [0x805bf0], eax
mov dword [0x805c30], ebx
mov dword [0x805c70], ebp
mov edx, dword [ecx]
mov eax, dword [edx + 0x190]
push ebx
push ecx
call eax
mov eax, dword [edi + 0x38]
cmp eax, ebx
je 0x57984e
mov eax, dword [eax]
jmp 0x579850
xor eax, eax
xor ecx, ecx
cmp dword [0x805bf4], eax
setne cl
xor edx, edx
cmp dword [0x805c34], ebx
setne dl
or ecx, edx
xor edx, edx
cmp dword [0x805c74], 4
setne dl
or ecx, edx
je 0x5798a4
mov ecx, dword [0x7e43a0]
push 4
push ebx
push eax
mov dword [0x805bf4], eax
mov dword [0x805c34], ebx
mov dword [0x805c74], 4
mov edx, dword [ecx]
mov eax, dword [edx + 0x190]
push 1
push ecx
call eax
mov eax, dword [edi + 0x3c]
cmp eax, ebx
je 0x5798af
mov eax, dword [eax]
jmp 0x5798b1
xor eax, eax
cmp dword [0x805cb0], eax
je 0x5798d0
mov ecx, dword [0x7e43a0]
mov dword [0x805cb0], eax
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x15c]
push ecx
call eax
movzx eax, byte [esi + 5]
mov edx, dword [edi + 0x2c]
xor ecx, ecx
cmp eax, ebx
jbe 0x5798ef
add edx, 6
movzx ebp, word [edx]
sub eax, 1
add ecx, ebp
add edx, 0x14
cmp eax, ebx
ja 0x5798e0
mov eax, dword [esp + 0x10]
mov ebp, dword [edi + 0x44]
movzx ebx, word [esi + 6]
imul ebp, ecx
movzx ecx, word [eax + 6]
xor edx, edx
cmp word [eax + 0xe], 2
mov eax, dword [esi + 0xc]
setne dl
mov dword [esp + 0x18], ecx
xor ecx, ecx
mov dword [esp + 0x10], eax
add edx, 4
cmp ebx, ecx
mov dword [esp + 0x1c], edx
jbe 0x57997d
jmp 0x579929
mov edi, dword [esp + 0x14]
mov esi, dword [edi + 0x44]
cmp ebx, esi
jae 0x579932
mov esi, ebx
mov eax, dword [0x7e43a0]
mov ecx, dword [eax]
lea edx, [esi*4]
push edx
mov edx, dword [esp + 0x14]
push edx
push 0x1c
push eax
mov eax, dword [ecx + 0x178]
call eax
mov ecx, dword [edi + 0x14]
mov edi, dword [esp + 0x1c]
imul ecx, esi
mov eax, esi
imul eax, dword [esp + 0x18]
push ebp
push ecx
push 0
call fcn.0058b250
sub ebx, esi
shl esi, 6
add dword [esp + 0x1c], esi
add esp, 0xc
test ebx, ebx
ja 0x579925
xor ecx, ecx
xor edx, edx
cmp dword [0x805c34], ecx
pop edi
setne dl
xor eax, eax
cmp dword [0x805c74], ecx
pop esi
setne al
pop ebp
pop ebx
or edx, eax
xor eax, eax
cmp dword [0x805bf4], ecx
setne al
or edx, eax
je 0x5799cf
mov eax, dword [0x7e43a0]
push ecx
push ecx
push ecx
mov dword [0x805bf4], ecx
mov dword [0x805c34], ecx
mov dword [0x805c74], ecx
mov edx, dword [eax]
push 1
push eax
mov eax, dword [edx + 0x190]
call eax
mov eax, 1
add esp, 0x10
ret