Function at 0x585240
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, edx
push edi
mov edi, ecx
movzx eax, byte [esi + 4]
add eax, 0xfffffffc
cmp eax, 0x22
ja case.default.0x585262
movzx eax, byte [eax + 0x585490]
push ebx
jmp dword [eax*4 + 0x58546c]
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x30]
shl eax, 2
push 0
push eax
call fcn.0058b160
mov eax, dword [esi + 0x1c]
mov ecx, edi
mov edx, dword [esi + 0x34]
shl eax, 2
push 0
push eax
call fcn.0058b160
mov eax, dword [esi + 0x10]
mov ecx, edi
mov edx, dword [esi + 0x2c]
shl eax, 4
push 0
push eax
call fcn.0058b160
mov eax, dword [esi + 0x18]
mov ecx, edi
mov edx, dword [esi + 0x38]
shl eax, 2
push 0
push eax
call fcn.0058b160
mov eax, dword [esi + 0x20]
mov ecx, edi
mov edx, dword [esi + 0x3c]
push 0
lea eax, [eax + eax*2]
shl eax, 2
push eax
call fcn.0058b160
mov eax, dword [esi + 0xc]
mov ecx, edi
mov edx, dword [esi + 0x40]
shl eax, 3
push 0
push eax
call fcn.0058b160
push 0
push 0x50
mov edx, esi
mov ecx, edi
call fcn.0058b160
add esp, 0x38
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dl, byte [esi + 6]
xor ecx, ecx
mov dword [ebp - 4], ecx
test dl, dl
je 0x585337
lea ebx, [esi + 0x10]
mov edx, dword [ebx]
test edx, edx
je 0x585326
add dword [edx + 4], 0xffffffff
jne 0x585326
lea eax, [edx + 8]
cmp dword [edx], eax
jne 0x585326
push 0
push 0x18
mov ecx, edi
call fcn.0058b160
mov ecx, dword [ebp - 4]
add esp, 8
mov dl, byte [esi + 6]
inc ecx
movzx eax, dl
add ebx, 4
mov dword [ebp - 4], ecx
cmp ecx, eax
jl 0x585302
movzx eax, dl
mov ecx, edi
push 0
mov edx, esi
lea eax, [eax*4 + 0x10]
push eax
call fcn.0058b160
add esp, 8
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
movzx eax, byte [esi + 6]
inc eax
shl eax, 4
push 0
push eax
call fcn.0058b160
add esp, 8
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 0
je 0x585394
mov cl, byte [esi + 7]
mov eax, 1
mov edx, dword [esi + 0x10]
shl eax, cl
mov ecx, edi
shl eax, 5
push 0
push eax
call fcn.0058b160
add esp, 8
mov eax, dword [esi + 8]
mov ecx, edi
mov edx, dword [esi + 0xc]
shl eax, 4
push 0
push eax
call fcn.0058b160
push 0
push 0x20
mov edx, esi
mov ecx, edi
call fcn.0058b160
add esp, 0x10
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x20]
mov ecx, esi
call fcn.00584580
cmp dword [esi + 0x20], 0
je 0x5853f1
lea eax, [esi + 0x34]
mov ecx, esi
mov dword [esi + 0x14], eax
call fcn.005928b0
mov eax, dword [esi + 0x60]
mov ecx, esi
mov edx, dword [esi + 0x20]
shl eax, 4
push 0
push eax
call fcn.0058b160
add esp, 8
push 0
push 0x7c
lea edx, [esi - 4]
mov ecx, edi
call fcn.0058b160
add esp, 8
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xc]
add eax, 0x18
push 0
push eax
call fcn.0058b160
add esp, 8
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x10]
mov ecx, dword [edx + 0x20]
mov eax, dword [edx + 0x18]
dec ecx
and ecx, dword [esi + 8]
lea ecx, [eax + ecx*4]
mov eax, dword [ecx]
cmp eax, esi
je 0x585440
lea ecx, [eax + 0xc]
mov eax, dword [ecx]
cmp eax, esi
jne 0x585437
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
mov ecx, edi
dec dword [edx + 0x1c]
mov edx, esi
movzx eax, byte [esi + 7]
jmp 0x585455
mov eax, dword [esi + 0xc]
add eax, 0x11
push 0
push eax
call fcn.0058b160
add esp, 8
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret