Function at 0x5813b0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
cmp dword [eax + 8], 6
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
je 0x5813c8
mov edi, eax
call fcn.00580f90
mov edx, dword [esi + 0x20]
mov ecx, dword [esi + 0x14]
mov ebp, eax
mov eax, dword [eax]
sub ebp, edx
mov edx, dword [esi + 0x18]
mov dword [ecx + 0xc], edx
mov cl, byte [eax + 6]
mov edx, dword [esi + 8]
test cl, cl
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x14], ebp
jne 0x5814e0
push ebx
mov ebx, dword [eax + 0x10]
movzx eax, byte [ebx + 0x4b]
sub ecx, edx
mov edx, eax
shl edx, 4
cmp ecx, edx
jg 0x58141b
mov ecx, dword [esi + 0x2c]
cmp eax, ecx
jg 0x58140f
lea eax, [ecx + ecx]
push eax
jmp 0x581412
add ecx, eax
push ecx
push esi
call fcn.00580c30
add esp, 8
mov edi, dword [esi + 0x20]
mov al, byte [ebx + 0x4a]
add edi, ebp
test al, al
jne 0x58143e
movzx ecx, byte [ebx + 0x49]
shl ecx, 4
lea ebp, [edi + 0x10]
lea eax, [ecx + ebp]
cmp dword [esi + 8], eax
jbe 0x58145d
mov dword [esi + 8], eax
jmp 0x58145d
mov eax, dword [esi + 8]
sub eax, edi
sar eax, 4
dec eax
push eax
mov ecx, ebx
call fcn.00580e30
mov edi, dword [esi + 0x20]
mov ebp, eax
mov eax, dword [esp + 0x1c]
add esp, 4
add edi, eax
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0x24]
jne 0x58146c
call fcn.00581370
jmp 0x581472
add eax, 0x18
mov dword [esi + 0x14], eax
mov dword [eax + 4], edi
mov dword [eax], ebp
mov dword [esi + 0xc], ebp
movzx edx, byte [ebx + 0x4b]
shl edx, 4
add edx, ebp
mov dword [eax + 8], edx
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0x18], ecx
mov ecx, dword [esp + 0x1c]
mov edi, dword [eax + 8]
xor edx, edx
mov dword [eax + 0x14], edx
mov dword [eax + 0x10], ecx
mov ecx, dword [esi + 8]
cmp ecx, edi
pop ebx
jae 0x5814b0
mov dword [ecx + 8], edx
mov edi, dword [eax + 8]
add ecx, 0x10
cmp ecx, edi
jb 0x5814a3
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
test byte [esi + 0x36], 1
je 0x5814da
mov ebp, dword [esi + 0x18]
push 0xffffffffffffffff
push edx
add ebp, 4
push esi
mov dword [esi + 0x18], ebp
call fcn.00580d40
mov eax, dword [esi + 0x18]
add esp, 0xc
add eax, 0xfffffffc
mov dword [esi + 0x18], eax
pop edi
pop esi
xor eax, eax
pop ebp
ret
sub ecx, edx
cmp ecx, 0x140
jg 0x581505
mov eax, dword [esi + 0x2c]
cmp eax, 0x14
jl 0x5814f8
lea edx, [eax + eax]
push edx
jmp 0x5814fc
add eax, 0x14
push eax
push esi
call fcn.00580c30
add esp, 8
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0x24]
jne 0x581514
call fcn.00581370
jmp 0x58151a
add eax, 0x18
mov dword [esi + 0x14], eax
mov ecx, dword [esi + 0x20]
add ecx, ebp
mov dword [eax + 4], ecx
add ecx, 0x10
mov dword [eax], ecx
mov edx, dword [esi + 8]
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x18]
add edx, 0x140
mov dword [eax + 8], edx
mov dword [eax + 0x10], ecx
test byte [esi + 0x36], 1
je 0x581550
push 0xffffffffffffffff
push 0
push esi
call fcn.00580d40
add esp, 0xc
mov edx, dword [esi + 0x14]
mov eax, dword [edx + 4]
mov ecx, dword [eax]
push esi
call dword [ecx + 0x10]
add esp, 4
test eax, eax
jge 0x58156c
pop edi
pop esi
mov eax, 2
pop ebp
ret
mov edx, dword [esi + 8]
shl eax, 4
sub edx, eax
push edx
push esi
call fcn.00581090
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebp
ret