Function at 0x583730
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
mov ebx, eax
mov eax, dword [esi]
mov ebp, dword [ebx + 0x40]
lea ecx, [eax + 2]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x3c]
cmp ecx, eax
push edi
mov edi, dword [ebx + 8]
mov dword [esp + 0x14], ecx
jg 0x583764
lea edx, [ecx + ebp]
sub eax, ecx
mov dword [ebx + 0x40], edx
mov dword [ebx + 0x3c], eax
jmp 0x58376f
mov eax, dword [ebx + 0x4c]
lea ebp, [eax + 1]
add eax, ecx
mov dword [ebx + 0x4c], eax
mov al, byte [ebx + 0x13]
test al, al
jne 0x583782
inc dword [ebx + 0x4c]
mov eax, dword [ebx + 0x4c]
mov dword [esp + 0x10], eax
jmp 0x583792
dec al
movzx ecx, al
mov byte [ebx + 0x13], al
mov edx, dword [ebx + ecx*4 + 0x1c]
mov dword [esp + 0x10], edx
mov edx, ebx
call fcn.005649e0
push ebp
xor cl, cl
mov edx, esi
call fcn.0057fe20
mov eax, dword [esi + 4]
mov esi, dword [edi + 0x1c]
add esp, 4
cmp dword [edi + 0x20], esi
mov dword [esp + 0x1c], eax
jg 0x5837be
call fcn.0056ce30
test eax, eax
jne 0x5837eb
mov edx, dword [edi + 4]
inc dword [edi + 0x1c]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov edx, dword [esp + 0x1c]
xor ecx, ecx
mov dword [eax + 4], edx
mov edx, dword [esp + 0x18]
add edx, ebp
mov byte [eax], 0x42
mov byte [eax + 3], cl
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x2c]
lea ecx, [eax + ebp + 1]
push 1
push ecx
call fcn.0056ec60
mov esi, dword [edi + 0x1c]
add esp, 8
cmp dword [edi + 0x20], esi
jg 0x583813
call fcn.0056ce30
test eax, eax
jne 0x583844
mov eax, dword [edi + 4]
inc dword [edi + 0x1c]
mov ecx, dword [esp + 0x14]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x10]
mov byte [eax], 0x2d
mov byte [eax + 3], 0
mov dword [eax + 4], ebp
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
jmp 0x583848
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
mov cl, byte [eax + 6]
mov eax, dword [esp + 0x24]
mov esi, dword [edi + 0x1c]
mov eax, dword [eax + 4]
not cl
movzx ecx, cl
shr ecx, 6
and ecx, 1
or ecx, 0x68
cmp dword [edi + 0x20], esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
jg 0x583885
call fcn.0056ce30
mov edx, dword [esp + 0x10]
test eax, eax
jne 0x5838ac
mov ecx, dword [esp + 0x1c]
inc dword [edi + 0x1c]
lea eax, [esi + esi*4]
mov esi, dword [edi + 4]
lea eax, [esi + eax*4]
mov byte [eax], cl
mov ecx, dword [esp + 0x18]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
test edx, edx
je 0x5838dd
cmp byte [ebx + 0x13], 8
jae 0x5838dd
xor eax, eax
lea ecx, [ebx + 0x68]
jmp 0x5838c0
cmp dword [ecx + 0x10], edx
je 0x58394c
inc eax
add ecx, 0x18
cmp eax, 0xa
jl 0x5838c0
movzx eax, byte [ebx + 0x13]
mov dword [ebx + eax*4 + 0x1c], edx
inc byte [ebx + 0x13]
mov eax, dword [esp + 0x14]
push ebp
mov esi, ebx
call fcn.00564940
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, dword [ebx + 0x3c]
jle 0x5838fb
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x40], ebp
mov eax, dword [esp + 0x28]
mov esi, dword [eax + 8]
xor ebp, ebp
cmp esi, ebp
je 0x5839c0
mov eax, dword [eax + 0xc]
cmp eax, ebp
je 0x583916
lea esi, [eax + 1]
push esi
push 0x82
mov eax, edi
call fcn.0056cf60
push 0xffffffffffffffff
mov ebx, eax
push esi
push 0x22
mov eax, edi
call fcn.0056cfb0
mov esi, dword [edi + 0x1c]
add esp, 0x14
cmp dword [edi + 0x20], esi
jg 0x583952
call fcn.0056ce30
test eax, eax
je 0x583952
mov esi, 1
jmp 0x583975
mov byte [ecx + 8], 1
jmp 0x5838dd
mov edx, dword [edi + 4]
inc dword [edi + 0x1c]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov byte [eax], 0x10
mov byte [eax + 3], 0
mov dword [eax + 4], ebp
mov dword [eax + 8], ebp
mov dword [eax + 0xc], ebp
mov dword [eax + 0x10], ebp
mov byte [eax + 1], 0
cmp ebx, ebp
jl 0x58398a
mov eax, dword [edi + 0x1c]
cmp eax, ebx
jbe 0x58398a
mov edx, dword [edi + 4]
lea ecx, [ebx + ebx*4]
mov dword [edx + ecx*4 + 8], eax
mov ebx, dword [esp + 0x24]
mov eax, dword [ebx + 4]
push eax
push 0x64
mov eax, edi
call fcn.0056cf60
mov ecx, dword [ebx + 4]
push ecx
push 0x48
mov eax, edi
call fcn.0056cf60
add esp, 0x10
cmp esi, ebp
jl 0x5839c0
mov eax, dword [edi + 0x1c]
cmp eax, esi
jbe 0x5839c0
mov ecx, dword [edi + 4]
lea edx, [esi + esi*4]
mov dword [ecx + edx*4 + 8], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret