Function at 0x583700
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2c]
push edi
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x48]
test eax, eax
je 0x583997
xor eax, eax
mov dword [esi + 0x60], 0
mov ax, word [ecx + 4]
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x18], eax
shl eax, 4
add eax, ecx
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x48]
xor ecx, ecx
mov cx, word [eax + 6]
mov eax, dword [esi + 0x18]
cmp eax, ecx
jge 0x5839f1
mov eax, dword [esi + 0x10]
mov edx, dword [eax + 4]
mov edi, dword [eax]
mov ecx, dword [edx + 8]
lea ecx, [ecx + edi - 1]
mov edi, 1
shl edi, cl
imul edi, dword [eax + 8]
mov dword [esi + 0x30], edi
mov edx, dword [edx + 0xc]
mov ecx, dword [eax]
mov edi, 1
lea ecx, [edx + ecx - 1]
mov edx, 1
shl edx, cl
imul edx, dword [eax + 0xc]
mov dword [esi + 0x34], edx
mov ebx, dword [eax + 4]
mov ecx, dword [eax]
add ebx, 0x14
cmp ecx, edi
jle 0x5837db
add ebx, 0xc
mov edx, dword [ebx - 4]
sub edx, edi
lea ecx, [edx + ecx - 1]
mov edx, 1
shl edx, cl
mov ecx, dword [esi + 0x30]
imul edx, dword [eax + 8]
cmp ecx, edx
jge 0x5837ad
mov edx, ecx
mov dword [esi + 0x30], edx
mov ecx, dword [eax]
mov edx, dword [ebx]
sub ecx, edi
lea ecx, [ecx + edx - 1]
mov edx, 1
shl edx, cl
mov ecx, dword [esi + 0x34]
imul edx, dword [eax + 0xc]
cmp ecx, edx
jge 0x5837ce
mov edx, ecx
mov dword [esi + 0x34], edx
mov ecx, dword [eax]
inc edi
add ebx, 0x14
cmp edi, ecx
jl 0x583790
mov eax, dword [esi + 0x3c]
mov dword [esi + 0x2c], eax
mov ecx, dword [esi + 0x2c]
mov eax, dword [esi + 0x44]
cmp ecx, eax
jge 0x5839df
mov edx, dword [esi + 0x38]
mov dword [esi + 0x28], edx
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x40]
cmp eax, ecx
jge 0x5839c8
mov eax, dword [esi + 0x48]
mov edx, dword [esi + 0x10]
xor ecx, ecx
mov cl, byte [eax + 1]
mov eax, ecx
mov dword [esi + 0x1c], eax
mov ecx, dword [edx + 4]
lea eax, [eax + eax*4]
lea edx, [ecx + eax*4]
mov dword [esi + 0x14], edx
mov ebp, dword [esi + 0x10]
mov eax, dword [esi + 0x1c]
mov edi, dword [ebp]
cmp eax, edi
jge 0x5839b1
mov ecx, dword [esi + 0x48]
xor edx, edx
mov dl, byte [ecx + 2]
cmp eax, edx
jge 0x5839b1
mov ecx, dword [esi + 0x14]
cmp dword [ecx], 0
je 0x58399c
mov ebx, dword [ebp + 8]
sub edi, eax
mov eax, dword [esi + 0x38]
dec edi
mov ecx, edi
mov dword [esp + 0x20], ebx
shl ebx, cl
mov ebp, dword [ebp + 0xc]
mov dword [esp + 0x24], ebp
shl ebp, cl
lea eax, [ebx + eax - 1]
cdq
idiv ebx
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x3c]
lea eax, [eax + ebp - 1]
cdq
idiv ebp
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x14]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x28], eax
add eax, edi
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x28]
cmp eax, dword [esi + 0x38]
mov dword [esp + 0x14], ecx
lea edx, [ecx + edi]
jne 0x5838c8
mov eax, dword [esp + 0x18]
mov ecx, edi
shl eax, cl
mov ecx, 1
mov dword [esp + 0x1c], ecx
mov ecx, edx
mov edx, dword [esp + 0x1c]
shl edx, cl
mov ecx, edx
xor edx, edx
div ecx
test edx, edx
jne 0x5838e4
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 0x28]
add ecx, edi
shl edx, cl
mov dword [esp + 0x20], edx
cdq
idiv dword [esp + 0x20]
test edx, edx
jne 0x58399c
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x3c]
cmp eax, ecx
jne 0x583909
mov eax, dword [esp + 0x10]
mov ecx, edi
shl eax, cl
mov ecx, dword [esp + 0x30]
mov edi, 1
shl edi, cl
xor edx, edx
div edi
test edx, edx
jne 0x58391d
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x24]
mov eax, dword [esi + 0x2c]
shl edi, cl
cdq
idiv edi
test edx, edx
jne 0x58399c
mov eax, dword [esi + 0x2c]
mov ecx, dword [esp + 0x28]
lea eax, [eax + ebp - 1]
cdq
idiv ebp
mov edi, eax
mov eax, dword [esp + 0x10]
sar edi, cl
shr eax, cl
mov ecx, dword [esp + 0x14]
sub edi, eax
mov eax, dword [esi + 0x14]
imul edi, dword [eax + 0x10]
mov eax, dword [esi + 0x28]
mov dword [esi + 0x24], 0
lea eax, [ebx + eax - 1]
cdq
idiv ebx
sar eax, cl
add edi, eax
mov eax, dword [esp + 0x18]
shr eax, cl
sub edi, eax
mov dword [esi + 0x20], edi
mov edx, dword [esi + 0x24]
mov eax, dword [esi]
cmp edx, eax
jge 0x58399c
mov eax, dword [esi + 0x48]
xor ecx, ecx
mov cx, word [eax + 8]
cmp edx, ecx
jge 0x58399c
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x20]
mov ecx, dword [ecx + 4]
lea eax, [ecx + eax*4]
mov ecx, dword [eax]
cmp edx, ecx
jl 0x583997
inc ecx
pop edi
pop esi
mov dword [eax], ecx
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
inc dword [esi + 0x24]
jmp 0x583962
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x14]
inc ecx
add eax, 0x14
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x14], eax
jmp 0x58381f
mov ecx, dword [esi + 0x28]
mov edi, dword [esi + 0x30]
mov eax, ecx
cdq
idiv edi
sub ecx, edx
add ecx, edi
mov dword [esi + 0x28], ecx
jmp 0x5837f5
mov ecx, dword [esi + 0x2c]
mov edi, dword [esi + 0x34]
mov eax, ecx
cdq
idiv edi
sub ecx, edx
add ecx, edi
mov dword [esi + 0x2c], ecx
jmp 0x5837e1
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x10]
inc ecx
add eax, 0x10
mov dword [esi + 0x18], ecx
jmp 0x583731
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret