Function at 0x4c26680
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
mov cx, word [ebp + 0x28]
movzx edx, word [ebp + 0x2a]
push esi
mov esi, dword [esp + 0x1c]
mov word [ebp + 0x2a], cx
mov eax, dword [esi + 4]
test eax, eax
push edi
je 0x4c266b9
mov edi, 0xffffffe5
cmp word [eax + 4], di
je 0x4c266b4
mov eax, dword [eax]
test eax, eax
jne 0x4c266a6
jmp 0x4c266b9
inc ecx
mov word [ebp + 0x2a], cx
mov eax, dword [ebp + 0x3c]
test eax, eax
je 0x4c266d8
movzx ecx, word [ebp + 0x2a]
cmp ecx, edx
je 0x4c266d8
push eax
call fcn.04c33f10
add esp, 4
mov dword [ebp + 0x3c], 0
mov eax, dword [ebp + 0x3c]
test eax, eax
jne 0x4c266f7
mov edx, dword [ebp + 0x1c]
or edx, 0x20
mov edi, ebp
mov dword [ebp + 0x1c], edx
call fcn.04c25910
test eax, eax
jne 0x4c268fa
push ebx
mov ebx, dword [esi + 4]
xor edi, edi
test ebx, ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x10], ebx
je 0x4c26850
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], edi
jmp 0x4c26720
mov ebx, dword [esp + 0x10]
nop
mov esi, dword [ebp + 0x3c]
mov ecx, dword [esp + 0x14]
mov eax, dword [ebx + 0x20]
add esi, ecx
test eax, eax
jne 0x4c267df
mov ecx, dword [esi + 0x14]
xor edx, edx
mov dx, word [esi + 2]
xor eax, eax
mov ax, word [esi]
and ecx, 0xfffffffd
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], 0
push edx
push eax
call fcn.04c29d30
add esp, 8
cmp ax, 0x7d00
je 0x4c267c0
movsx ecx, word [esi]
mov al, byte [ecx + 0x4c8129e]
test al, al
je 0x4c267a9
mov edx, dword [ebp + 4]
mov ecx, dword [edx + 8]
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp dword [esi + 8], edx
jl 0x4c267a9
mov edx, dword [esp + 0x18]
mov edi, ecx
push edx
xor ebx, ebx
mov ecx, ebp
call fcn.04c26580
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x24]
add esp, 4
test eax, eax
je 0x4c267c0
test byte [ebp + 0x1c], 2
je 0x4c267c0
mov eax, dword [esi + 8]
cmp dword [esi + 0xc], eax
je 0x4c26821
mov dword [esi + 0xc], eax
or dword [esi + 0x14], 1
jmp 0x4c26821
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4c267d7
mov eax, dword [esi + 0x14]
or eax, 1
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], eax
mov word [esi + 0x10], 0xffff
jmp 0x4c2682a
mov eax, dword [esi + 0x14]
or eax, 2
mov dword [esi + 0x14], eax
mov cx, word [ebx + 4]
mov word [esi], cx
mov dx, word [ebx + 0x10]
mov word [esi + 2], dx
mov cx, word [ebx + 0xc]
mov word [esi + 4], cx
mov dx, word [ebx + 0xe]
mov word [esi + 6], dx
mov ecx, dword [ebx + 8]
cmp dword [esi + 0xc], ecx
je 0x4c26818
or eax, 1
mov dword [esi + 0xc], ecx
mov dword [esi + 0x14], eax
mov eax, dword [ebx + 8]
mov dword [esi + 8], eax
mov dword [esi + 0x18], ebx
mov word [esi + 0x10], di
inc edi
mov dword [esp + 0x20], edi
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov ebx, dword [ebx]
add edx, 0x1c
inc ecx
test ebx, ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], ebx
jne 0x4c2671b
mov esi, dword [esp + 0x24]
and dword [esi + 0xc], 0xffffffef
mov esi, dword [ebp + 0x1c]
and esi, 0xfffff7ff
mov ebx, ebp
mov dword [ebp + 0x1c], esi
mov word [ebp + 0x26], di
call fcn.04c26400
mov eax, dword [ebp + 4]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 8]
mov eax, dword [ebp + 0x14]
sub ecx, edx
lea edx, [eax + eax*2]
cmp edx, ecx
mov ebx, 0xfffffffb
jbe 0x4c26896
push ebp
call fcn.04c2e570
mov eax, dword [ebp + 0x1c]
add esp, 4
and eax, ebx
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 0x38]
test eax, eax
je 0x4c268f7
xor edi, edi
mov di, word [ebp + 0x26]
cmp di, word [eax + 0xa]
je 0x4c268f7
xor esi, esi
mov si, word [eax + 6]
nop
push edi
push esi
push ebp
call fcn.04c2f100
add esp, 0xc
test al, al
jne 0x4c268dd
movzx eax, si
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
fmul qword [0x4c6aa38]
call fcn.04c5a650
mov esi, eax
cmp si, 0xa
jae 0x4c268b0
mov ecx, dword [ebp + 0x38]
cmp si, word [ecx + 6]
je 0x4c268f7
push ebp
call fcn.04c2e570
mov eax, dword [ebp + 0x1c]
add esp, 4
and eax, ebx
mov dword [ebp + 0x1c], eax
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
add esp, 0xc
ret