Function at 0x5060320
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x24
push ebx
mov ebx, dword [esp + 0x2c]
push esi
mov esi, dword [ebx + 0x10]
mov ecx, esi
shr ecx, 3
and cl, 1
mov byte [esp + 0xa], cl
mov edx, esi
mov ecx, esi
shr edx, 4
shr ecx, 7
and dl, 1
and cl, 1
test esi, 0xffffff67
mov byte [esp + 0xb], dl
je 0x506035c
pop esi
xor al, al
pop ebx
add esp, 0x24
ret
test dl, dl
je 0x5060364
test cl, cl
je 0x5060354
cmp byte [esp + 0xa], 0
je 0x5060371
cmp dword [ebx + 0xc], 2
jne 0x5060354
mov esi, dword [ebx + 0xc]
xor edx, edx
cmp esi, 4
sete dl
push edi
movzx edi, cl
cmp edi, edx
jne 0x506061c
cmp dword [ebx + 0x28], 0
jne 0x506061c
cmp dword [ebx + 0x38], 0
jne 0x506061c
cmp dword [ebx + 0x48], 0
jne 0x506061c
test cl, cl
push ebp
je 0x5060465
mov ecx, dword [ebx + 0x1c]
mov dword [esp + 0x38], ecx
mov ecx, dword [ebx + 0x24]
sar ecx, 2
cmp dword [esp + 0x3c], 0
mov dword [esp + 0x24], ecx
je 0x5060612
mov dl, byte [esp + 0x13]
nop
mov ebp, dword [esp + 0x40]
sub dword [esp + 0x3c], 1
test ebp, ebp
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x14], ecx
je 0x506043f
jmp 0x50603f0
movzx ecx, word [eax + 2]
movzx edi, word [eax + 4]
movzx esi, word [eax + 6]
sub ebp, 1
add eax, 8
shr ecx, 6
shr edi, 6
shr esi, 6
test dl, dl
je 0x506041d
shl esi, 0xa
add esi, edi
shl esi, 0xa
add esi, ecx
mov ecx, esi
jmp 0x5060427
shl ecx, 0xa
add ecx, edi
shl ecx, 0xa
add ecx, esi
mov esi, dword [esp + 0x14]
mov dword [esi], ecx
mov ecx, dword [esp + 0x24]
add ecx, ecx
add ecx, ecx
add esi, ecx
test ebp, ebp
mov dword [esp + 0x14], esi
jne 0x50603f0
mov ecx, dword [ebx + 0x20]
mov esi, dword [esp + 0x38]
sar ecx, 2
cmp dword [esp + 0x3c], 0
lea ecx, [esi + ecx*4]
mov dword [esp + 0x38], ecx
jne 0x50603d0
pop ebp
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x24
ret
cmp esi, 1
jne 0x5060517
cmp dword [esp + 0x3c], 0
mov edx, dword [ebx + 0x24]
mov esi, dword [ebx + 0x1c]
mov edi, dword [ebx + 0x2c]
mov ebp, dword [ebx + 0x3c]
mov ecx, dword [ebx + 0x34]
mov dword [esp + 0x20], edx
mov edx, dword [ebx + 0x44]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
je 0x5060612
mov ecx, dword [esp + 0x40]
sub dword [esp + 0x3c], 1
test ecx, ecx
je 0x50604e5
movzx ebx, word [eax + 4]
movzx edx, word [eax + 2]
mov dword [esp + 0x24], ebx
movzx ebx, word [eax + 6]
mov dl, byte [esp + 0x25]
mov byte [esi], dh
add esi, dword [esp + 0x20]
mov byte [edi], dl
add edi, dword [esp + 0x28]
sub ecx, 1
mov byte [ebp], bh
add ebp, dword [esp + 0x2c]
add eax, 8
test ecx, ecx
jne 0x50604b0
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
add esi, dword [ebx + 0x20]
add edi, dword [ebx + 0x30]
add ebp, dword [ebx + 0x40]
cmp dword [esp + 0x3c], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebp
jne 0x50604a3
pop ebp
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x24
ret
mov edi, dword [ebx + 0x24]
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x2c]
mov esi, dword [ebx + 0x3c]
sar edi, 1
mov dword [esp + 0x2c], edi
mov edi, dword [ebx + 0x34]
sar edi, 1
mov dword [esp + 0x28], edi
mov edi, dword [ebx + 0x44]
sar edi, 1
cmp dword [esp + 0x3c], 0
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x30], edi
je 0x5060612
mov ebp, dword [esp + 0x40]
sub dword [esp + 0x3c], 1
test ebp, ebp
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], esi
je 0x50605e3
jmp 0x5060570
movzx ecx, word [eax + 2]
movzx esi, word [eax + 4]
movzx edi, word [eax + 6]
sub ebp, 1
add eax, 8
cmp byte [esp + 0x12], 0
je 0x506059e
rol cx, 8
rol si, 8
rol di, 8
movzx ecx, cx
movzx esi, si
movzx edi, di
mov word [edx], cx
mov ecx, dword [esp + 0x1c]
mov word [ecx], si
mov esi, dword [esp + 0x18]
mov word [esi], di
mov edi, dword [esp + 0x2c]
add edi, edi
add edx, edi
mov edi, dword [esp + 0x28]
add edi, edi
add ecx, edi
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x30]
add ecx, ecx
add esi, ecx
test ebp, ebp
mov dword [esp + 0x18], esi
jne 0x5060570
mov ebx, dword [esp + 0x38]
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov edi, dword [ebx + 0x20]
sar edi, 1
lea edx, [edx + edi*2]
mov edi, dword [ebx + 0x30]
sar edi, 1
lea ecx, [ecx + edi*2]
mov edi, dword [ebx + 0x40]
sar edi, 1
cmp dword [esp + 0x3c], 0
lea esi, [esi + edi*2]
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], esi
jne 0x5060552
pop ebp
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x24
ret
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x24
ret