Function at 0x4bd170
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x44
push ebx
mov ebx, dword [esp + 0x54]
push ebp
push esi
push edi
mov edi, dword [esp + 0x5c]
mov dl, byte [edi + 6]
mov ecx, dword [edi + 8]
test dl, dl
jns 0x4bd1b5
lea eax, [ecx - 1]
test ecx, eax
je 0x4bd1b5
mov eax, ecx
shr eax, 1
or ecx, eax
mov eax, ecx
shr eax, 2
or ecx, eax
mov eax, ecx
shr eax, 4
or ecx, eax
mov eax, ecx
shr eax, 8
or ecx, eax
mov ebp, ecx
shr ebp, 0x10
or ebp, ecx
inc ebp
jmp 0x4bd1b7
mov ebp, ecx
push dword [esp + 0x64]
lea eax, [esp + 0x38]
mov dword [edi + 8], ebp
push eax
push dword [esp + 0x60]
and dl, 0x7f
mov byte [edi + 6], dl
call fcn.004bd980
add esp, 0xc
cmp ebx, ebp
jae 0x4bd2c7
mov al, byte [edi + 7]
mov esi, ebx
mov byte [esp + 0x5c], al
mov eax, dword [edi + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x14]
mov dword [esp + 0x1c], eax
mov al, byte [esp + 0x3b]
mov byte [edi + 7], al
mov eax, dword [esp + 0x44]
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x48]
mov dword [edi + 0x14], eax
mov eax, ebx
shl eax, 4
mov dword [edi + 8], ebx
mov ecx, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], eax
nop dword [eax + eax]
mov eax, dword [edi + 0xc]
inc esi
add eax, ecx
mov dword [esp + 0x60], eax
test byte [eax + 8], 0xf
je 0x4bd281
push 0
push esi
push edi
call fcn.004bcb40
add esp, 0xc
cmp byte [eax + 8], 0x20
jne 0x4bd265
lea eax, [esp + 0x24]
mov dword [esp + 0x24], esi
push eax
push edi
push dword [esp + 0x60]
mov dword [esp + 0x34], 0
mov byte [esp + 0x38], 3
call fcn.004bcdb0
add esp, 0xc
mov edx, dword [esp + 0x60]
mov ecx, dword [edx]
mov edx, dword [edx + 4]
mov dword [eax], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 4], edx
mov cl, byte [ecx + 8]
mov byte [eax + 8], cl
mov ecx, dword [esp + 0x10]
add ecx, 0x10
mov dword [esp + 0x10], ecx
cmp esi, ebp
jb 0x4bd220
mov ecx, dword [edi + 0x10]
mov esi, dword [esp + 0x18]
mov al, byte [edi + 7]
mov edx, dword [edi + 0x14]
mov ah, byte [esp + 0x5c]
mov dword [edi + 0x10], esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x20]
mov dword [edi + 8], ebp
mov dword [esp + 0x14], edx
mov byte [edi + 7], ah
mov dword [edi + 0x14], esi
mov byte [esp + 0x3b], al
mov dword [esp + 0x48], edx
jmp 0x4bd2e0
mov eax, dword [esp + 0x48]
mov ecx, ebx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x10], eax
mov al, byte [esp + 0x3b]
shl ecx, 4
push ecx
mov esi, ebp
mov byte [esp + 0x64], al
shl esi, 4
push esi
push dword [edi + 0xc]
push dword [esp + 0x64]
call fcn.004c3ba0
add esp, 0x10
mov dword [esp + 0x5c], eax
test eax, eax
jne 0x4bd30a
test ebx, ebx
jne 0x4bd3d1
mov eax, dword [edi + 0x14]
mov cl, byte [edi + 7]
mov edx, dword [edi + 0x10]
mov dword [esp + 0x1c], eax
mov al, byte [esp + 0x60]
mov byte [edi + 7], al
mov eax, dword [esp + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x20], edx
mov dword [edi + 0xc], eax
mov dword [edi + 8], ebx
cmp ebp, ebx
jae 0x4bd350
sub ebx, ebp
mov eax, dword [edi + 0xc]
lea esi, [esi + 0x10]
mov byte [esi + eax - 8], 0x10
sub ebx, 1
jne 0x4bd340
mov ebp, 1
shl ebp, cl
test ebp, ebp
jle 0x4bd3a8
lea esi, [edx + 8]
mov ebx, ebp
test byte [esi], 0xf
je 0x4bd39c
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x24], eax
mov al, byte [esi + 1]
mov byte [esp + 0x2c], al
lea eax, [esp + 0x24]
push eax
push edi
push dword [esp + 0x60]
mov dword [esp + 0x34], ecx
call fcn.004bd430
mov ecx, dword [esi - 8]
add esp, 0xc
mov edx, dword [esi - 4]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov cl, byte [esi]
mov byte [eax + 8], cl
add esi, 0x18
sub ebx, 1
jne 0x4bd360
mov edx, dword [esp + 0x20]
cmp dword [esp + 0x1c], 0
je 0x4bd3c9
lea eax, [ebp*2]
add eax, ebp
shl eax, 3
push eax
push edx
push dword [esp + 0x60]
call fcn.004c3a90
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
mov ebx, dword [esp + 0x58]
lea eax, [esp + 0x34]
push eax
push ebx
call fcn.004bc6c0
add esp, 8
push 4
push ebx
call fcn.004b8660
int3