Function at 0x5cbe40
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [edi + 0x18]
mov ebp, dword [esi + 4]
test ebp, ebp
mov ebx, dword [esi]
mov dword [esp + 0x10], esi
jne 0x5cbe6a
push edi
call dword [esi + 0xc]
add esp, 4
test al, al
je 0x5cc08e
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 0x5cbe90
push edi
call dword [esi + 0xc]
add esp, 4
test al, al
je 0x5cc08e
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 0x5cc06d
test ebp, ebp
jne 0x5cbebe
push edi
call dword [esi + 0xc]
add esp, 4
test al, al
je 0x5cc08e
mov ebx, dword [esi]
mov ebp, dword [esi + 4]
movzx esi, byte [ebx]
mov edx, dword [edi]
mov dword [edx + 0x14], 0x51
mov ecx, dword [edi]
mov eax, esi
sar eax, 4
and esi, 0xf
mov dword [ecx + 0x18], esi
mov edx, dword [edi]
mov dword [esp + 0x1c], eax
mov dword [edx + 0x1c], eax
mov eax, dword [edi]
push 1
dec ebp
push edi
inc ebx
call dword [eax + 4]
add esp, 8
cmp esi, 4
jl 0x5cbf08
mov ecx, dword [edi]
mov dword [ecx + 0x14], 0x1f
mov edx, dword [edi]
mov dword [edx + 0x18], esi
mov eax, dword [edi]
push edi
call dword [eax]
add esp, 4
mov eax, dword [edi + esi*4 + 0x90]
test eax, eax
jne 0x5cbf23
push edi
call fcn.005cde50
add esp, 4
mov dword [edi + esi*4 + 0x90], eax
mov ecx, dword [edi + esi*4 + 0x90]
mov esi, 0x670e28
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x5cbf8c
test ebp, ebp
mov esi, dword [esp + 0x10]
jne 0x5cbf5b
push edi
call dword [esi + 0xc]
add esp, 4
test al, al
je 0x5cc08e
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 0x5cbf7d
push edi
call dword [esi + 0xc]
add esp, 4
test al, al
je 0x5cc08e
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 0x5cbfac
test ebp, ebp
jne 0x5cbfa9
mov ebp, dword [esp + 0x10]
push edi
call dword [ebp + 0xc]
add esp, 4
test al, al
je 0x5cc08e
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, 0x670f28
mov dword [esp + 0x14], ecx
mov word [eax + edx*2], cx
mov dword [esp + 0x18], esi
jl 0x5cbf37
mov edx, dword [edi]
cmp dword [edx + 0x68], 2
jl 0x5cc03f
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]
mov dword [eax + 0x14], 0x5d
mov ecx, dword [edi]
push 2
push edi
call dword [ecx + 4]
mov eax, dword [esp + 0x20]
add esp, 8
add esi, 0x10
dec eax
mov dword [esp + 0x18], eax
jne 0x5cbfe2
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x1c]
sub ecx, 0x41
test eax, eax
mov dword [esp + 0xc], ecx
je 0x5cc05b
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 0x5cbea6
test eax, eax
je 0x5cc080
mov edx, dword [edi]
mov dword [edx + 0x14], 0xb
mov eax, dword [edi]
push edi
call dword [eax]
add esp, 4
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