Function at 0x5b764c
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov byte [eax], 0
movzx eax, word [esi]
and ax, 0xf000
cmp ax, 0x4000
je 0x5b767a
cmp ax, 0x8000
jne 0x5b7a75
mov eax, esi
call fcn.004cd264
test al, al
jne 0x5b7a75
mov byte [ebp - 0x19], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov word [ebp - 0x1c], 0
test byte [esi + 0x22], 8
je 0x5b7890
lea ecx, [esi + 0x28]
mov eax, ecx
cmp word [eax], 0xf30a
jne 0x5b7a75
movzx eax, word [eax + 2]
mov edx, eax
add edx, edx
add edx, edx
lea edx, [edx + edx*2]
cmp edx, 0x3c
jg 0x5b7a75
add ecx, 0xc
lea edx, [esi + 0x28]
movzx edx, word [edx + 6]
mov word [ebp - 0x1c], dx
mov edi, eax
dec edi
test edi, edi
jl 0x5b783b
inc edi
xor ebx, ebx
cmp word [ebp - 0x1c], 0
jbe 0x5b7748
movzx eax, word [ecx + 8]
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, dword [ecx + 4]
xor edx, edx
or eax, dword [esp]
or edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jne 0x5b7725
cmp dword [ebp - 0x10], 0
je 0x5b7a75
mov eax, dword [ecx]
xor edx, edx
cmp edx, dword [ebp - 0x14]
jne 0x5b7735
cmp eax, dword [ebp - 0x18]
jbe 0x5b7741
jmp 0x5b7737
jle 0x5b7741
mov eax, dword [ecx]
xor edx, edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
test ebx, ebx
jmp 0x5b780a
movzx eax, word [ecx + 6]
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, dword [ecx + 8]
xor edx, edx
or eax, dword [esp]
or edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jne 0x5b7779
cmp dword [ebp - 0x10], 0
je 0x5b7a75
cmp word [ecx + 4], 0
je 0x5b7a75
mov eax, dword [ecx]
xor edx, edx
cmp edx, dword [ebp - 0x14]
jne 0x5b7794
cmp eax, dword [ebp - 0x18]
jbe 0x5b77a0
jmp 0x5b7796
jle 0x5b77a0
mov eax, dword [ecx]
xor edx, edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
cmp word [ecx + 4], 0x8000
ja 0x5b77d4
movzx eax, word [ecx + 4]
xor edx, edx
add eax, dword [ebp - 0x10]
adc edx, dword [ebp - 0xc]
sub eax, 1
sbb edx, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
movzx eax, word [ecx + 4]
xor edx, edx
add eax, dword [ebp - 0x18]
adc edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
jmp 0x5b780a
movzx eax, word [ecx + 4]
sub eax, 0x8000
cdq
add eax, dword [ebp - 0x10]
adc edx, dword [ebp - 0xc]
sub eax, 1
sbb edx, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
movzx eax, word [ecx + 4]
sub eax, 0x8000
cdq
add eax, dword [ebp - 0x18]
adc edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov byte [ebp - 0x19], 1
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
cmp edx, dword [ebp - 0xc]
jne 0x5b781f
cmp eax, dword [ebp - 0x10]
jae 0x5b7830
jmp 0x5b7821
jge 0x5b7830
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x14], edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 0x18], edx
add ecx, 0xc
inc ebx
dec edi
jne 0x5b76ed
cmp byte [ebp - 0x19], 0
je 0x5b7862
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
jmp 0x5b7922
lea ecx, [esi + 0x28]
add ecx, 0xc
mov ebx, ecx
movzx eax, word [ebx + 6]
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, dword [ebx + 8]
xor edx, edx
or eax, dword [esp]
or edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
jmp 0x5b7922
xor ebx, ebx
mov ecx, dword [esi + ebx*4 + 0x28]
test ecx, ecx
jne 0x5b78c2
lea edi, [ebx + 1]
cmp edi, 0xf
jge 0x5b7917
mov eax, 0xf
sub eax, edi
mov edx, eax
add edx, edx
add edx, edx
lea eax, [esi + ebx*4 + 0x2c]
call fcn.00411370
test al, al
jne 0x5b7a75
jmp 0x5b7917
mov eax, ecx
xor edx, edx
mov ecx, dword [ebp - 4]
cmp edx, dword [ecx + 0x18]
jne 0x5b78d5
cmp eax, dword [ecx + 0x14]
jbe 0x5b78e6
jmp 0x5b78d7
jle 0x5b78e6
mov eax, dword [esi + ebx*4 + 0x28]
xor edx, edx
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], edx
cmp ebx, 0xb
jg 0x5b78ff
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
add eax, 1
adc edx, 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
jmp 0x5b790d
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
inc ebx
cmp ebx, 0xf
jne 0x5b7892
mov eax, dword [esi + 0x28]
xor edx, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jne 0x5b7934
cmp dword [ebp - 0x10], 0
jbe 0x5b79f3
jmp 0x5b793a
jle 0x5b79f3
mov eax, dword [ebp - 0xc]
xor edx, edx
test eax, eax
jne 0x5b79f3
cmp word [ebp - 0x1c], 0
jbe 0x5b798f
cmp word [ebp - 0x1c], 0xa
ja 0x5b798a
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
movzx eax, word [ebp - 0x1c]
dec eax
mov dword [ebp - 0x24], eax
mov word [ebp - 0x20], 0xfffe
mov edx, dword [ebp - 4]
add edx, 0xc
mov eax, dword [ebp - 4]
add eax, 8
lea ecx, [ebp - 0x28]
call fcn.004eeaf4
mov ebx, eax
cmp ebx, 0xffffffff
mov eax, dword [ebp + 8]
sete byte [eax]
jmp 0x5b79d2
or ebx, 0xffffffff
jmp 0x5b79d2
movzx eax, word [esi]
and ax, 0xf000
cmp ax, 0x4000
jne 0x5b79cf
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov word [ebp - 0x20], 0xffff
mov edx, dword [ebp - 4]
add edx, 0xc
mov eax, dword [ebp - 4]
add eax, 8
lea ecx, [ebp - 0x28]
call fcn.004eeaf4
mov ebx, eax
cmp ebx, 0xffffffff
mov eax, dword [ebp + 8]
sete byte [eax]
jmp 0x5b79d2
or ebx, 0xffffffff
test ebx, ebx
jl 0x5b79f3
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov ecx, ebx
call fcn.004eea84
test al, al
je 0x5b79f3
mov eax, dword [ebp + 8]
mov byte [eax], 1
mov eax, dword [ebp + 8]
cmp byte [eax], 0
jne 0x5b7a75
cmp dword [ebp - 0x14], 0
jne 0x5b7a09
cmp dword [ebp - 0x18], 1
ja 0x5b7a28
jmp 0x5b7a0b
jg 0x5b7a28
movzx eax, word [esi]
and ax, 0xf000
cmp ax, 0x4000
jne 0x5b7a75
cmp dword [ebp - 0x14], 0
jne 0x5b7a26
cmp dword [ebp - 0x18], 0
jbe 0x5b7a75
jmp 0x5b7a28
jle 0x5b7a75
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [esi + 4]
xor edx, edx
add eax, dword [ebp - 0x18]
adc edx, dword [ebp - 0x14]
sub eax, 1
sbb edx, 0
call fcn.0040517c
cmp eax, 0x400
jb 0x5b7a75
cmp eax, 0x20000
ja 0x5b7a75
xor ebx, ebx
dec eax
shr eax, 0xa
test eax, eax
jbe 0x5b7a63
inc ebx
shr eax, 1
test eax, eax
ja 0x5b7a5c
mov eax, dword [ebp + 0xc]
cmp word [eax + ebx*2], 0xffff
jae 0x5b7a75
mov eax, dword [ebp + 0xc]
inc word [eax + ebx*2]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8