Function at 0x592870
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [edi + 0x51]
mov ebp, dword [esi + 4]
test ebp, ebp
mov ebx, dword [esi]
mov dword [esp + 0x10], esi
jne 0x592897
push edi
call dword [esi + 0xc]
test al, al
je 0x592a8b
mov ebx, dword [esi]
mov ebp, dword [esi + 4]
xor eax, eax
mov ah, byte [ebx]
dec ebp
inc ebx
test ebp, ebp
mov dword [esp + 0xc], eax
jne 0x5928ba
push edi
call dword [esi + 0xc]
test al, al
je 0x592a8b
mov ebx, dword [esi]
mov ebp, dword [esi + 4]
mov eax, dword [esp + 0xc]
movzx ecx, byte [ebx]
add eax, ecx
dec ebp
sub eax, 2
inc ebx
test eax, eax
mov dword [esp + 0xc], eax
jle 0x592a7d
test ebp, ebp
jne 0x5928e5
push edi
call dword [esi + 0xc]
test al, al
je 0x592a8b
mov ebx, dword [esi]
mov ebp, dword [esi + 4]
movzx esi, byte [ebx]
mov edx, dword [edi]
mov dword [edx + 0x14], 0x50
mov ecx, dword [edi]
mov eax, esi
sar eax, 4
and esi, 0xf
mov dword [ecx + 0x18], esi
mov edx, dword [edi]
push 1
mov dword [esp + 0x20], eax
mov dword [edx + 0x1c], eax
mov eax, dword [edi]
dec ebp
push edi
inc ebx
call dword [eax + 4]
cmp esi, 4
jl 0x592929
mov ecx, dword [edi]
mov dword [ecx + 0x14], 0x1e
mov edx, dword [edi]
mov dword [edx + 0x18], esi
mov eax, dword [edi]
push edi
call dword [eax]
mov eax, dword [edi + esi*4 + 0xc2]
test eax, eax
jne 0x592941
push edi
call fcn.00594000
mov dword [edi + esi*4 + 0xc2], eax
mov ecx, dword [edi + esi*4 + 0xc2]
mov esi, 0x5f25e0
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x5929a4
test ebp, ebp
mov esi, dword [esp + 0x10]
jne 0x592976
push edi
call dword [esi + 0xc]
test al, al
je 0x592a8b
mov ebx, dword [esi]
mov ebp, dword [esi + 4]
xor edx, edx
mov dh, byte [ebx]
dec ebp
inc ebx
test ebp, ebp
mov dword [esp + 0x14], edx
jne 0x592995
push edi
call dword [esi + 0xc]
test al, al
je 0x592a8b
mov ebx, dword [esi]
mov ebp, dword [esi + 4]
movzx eax, byte [ebx]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
add ecx, eax
jmp 0x5929c1
test ebp, ebp
jne 0x5929be
mov ebp, dword [esp + 0x10]
push edi
call dword [ebp + 0xc]
test al, al
je 0x592a8b
mov ebx, dword [ebp]
mov ebp, dword [ebp + 4]
movzx ecx, byte [ebx]
mov edx, dword [esi]
mov eax, dword [esp + 0x20]
dec ebp
add esi, 4
inc ebx
cmp esi, 0x5f26e0
mov dword [esp + 0x14], ecx
mov word [eax + edx*2], cx
mov dword [esp + 0x18], esi
jl 0x592955
mov edx, dword [edi]
cmp dword [edx + 0x68], 2
jl 0x592a51
lea esi, [eax + 4]
mov dword [esp + 0x18], 8
mov eax, dword [edi]
movzx ecx, word [esi - 4]
add eax, 0x18
mov dword [eax], ecx
movzx edx, word [esi - 2]
mov dword [eax + 4], edx
movzx ecx, word [esi]
mov dword [eax + 8], ecx
movzx edx, word [esi + 2]
mov dword [eax + 0xc], edx
movzx ecx, word [esi + 4]
mov dword [eax + 0x10], ecx
movzx edx, word [esi + 6]
mov dword [eax + 0x14], edx
movzx ecx, word [esi + 8]
mov dword [eax + 0x18], ecx
movzx edx, word [esi + 0xa]
mov dword [eax + 0x1c], edx
mov eax, dword [edi]
push 2
mov dword [eax + 0x14], 0x5c
mov ecx, dword [edi]
push edi
call dword [ecx + 4]
mov eax, dword [esp + 0x18]
add esi, 0x10
dec eax
mov dword [esp + 0x18], eax
jne 0x5929f7
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x1c]
sub ecx, 0x41
test eax, eax
mov dword [esp + 0xc], ecx
je 0x592a6d
mov eax, ecx
sub eax, 0x40
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
test eax, eax
mov esi, dword [esp + 0x10]
jg 0x5928d0
mov dword [esi], ebx
mov dword [esi + 4], ebp
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x18
ret