Function at 0x4c44f0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x20]
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
movzx eax, word [ecx + 2]
movzx ebx, ax
mov dword [esp + 8], eax
mov dl, byte [ebp + 5]
mov byte [esp + 0x2c], dl
push esi
push edi
cmp ebx, 0x8000
jae 0x4c486a
mov edi, dword [esp + 0x24]
mov eax, dword [edi + 0x10]
mov ebx, dword [eax + ebx*8]
movzx eax, word [ecx]
and ebx, 0x3f
movzx ecx, word [ebp]
mov esi, eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
movzx eax, word [eax + ecx*2]
mov ecx, eax
cmp dl, 0x27
je 0x4c46b0
cmp dl, 0x28
je 0x4c46ab
test ebx, ebx
je 0x4c46d7
cmp ebx, 0x20
jae 0x4c461e
mov ecx, dword [esp + 0x10]
neg ebx
and ebx, 0x1f
movzx esi, cx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], esi
cmp dl, 0x24
jne 0x4c45c0
push ecx
push eax
push 0x2413
push edi
call fcn.004c4af0
add esp, 0x10
mov edx, ebx
mov ecx, edi
mov esi, eax
call fcn.004e0160
push eax
push dword [esp + 0x18]
push 0x2513
push edi
call fcn.004c4af0
push eax
push esi
push 0x2213
push edi
call fcn.004c4af0
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov ecx, dword [esp + 0x30]
mov edx, ebx
movzx esi, word [ebp + 6]
mov byte [ecx + 5], 0x25
mov ecx, edi
call fcn.004e0160
mov ebx, dword [esp + 0x18]
push eax
push ebx
push 0x2413
push edi
call fcn.004c4af0
push eax
push esi
push 0x2213
push edi
call fcn.004c4af0
push dword [esp + 0x30]
mov word [ebp + 6], ax
movzx eax, byte [esp + 0x58]
shl ax, 8
or ax, 0x13
push ebx
movzx eax, ax
push eax
push edi
call fcn.004c4af0
add esp, 0x30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp dl, 0x24
jne 0x4c465d
cmp ebx, 0x20
jne 0x4c4642
dec dword [edi + 8]
xor edx, edx
mov ecx, edi
call fcn.004e0160
pop edi
mov word [ebp + 6], ax
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
movzx esi, word [ebp + 6]
xor edx, edx
mov ecx, edi
call fcn.004e0160
pop edi
mov word [ebp + 6], ax
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, eax
cmp ebx, 0x20
jne 0x4c466d
dec dword [edi + 8]
mov word [ebp + 6], si
jmp 0x4c4674
mov ecx, dword [esp + 0x30]
mov word [ecx], ax
mov ecx, edi
cmp dl, 0x25
jne 0x4c4689
pop edi
pop esi
pop ebp
xor edx, edx
pop ebx
add esp, 0x10
jmp fcn.004e0160
mov edx, 0x1f
call fcn.004e0160
push eax
push esi
push 0x2613
push edi
call fcn.004c4af0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
neg ebx
and ebx, 0x3f
cmp ebx, 0x20
lea eax, [ebx - 0x20]
mov edx, ecx
cmovb edx, esi
cmovb eax, ebx
cmovb esi, ecx
mov dword [esp + 0x34], edx
mov ecx, esi
mov dword [esp + 0x30], eax
mov ebx, eax
mov dword [esp + 0x18], ecx
mov esi, edx
test ebx, ebx
jne 0x4c46e8
dec dword [edi + 8]
mov eax, ecx
pop edi
mov word [ebp + 6], si
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
dec dword [edi + 8]
mov edx, ebx
mov ecx, edi
call fcn.004e0160
neg ebx
mov ecx, edi
and ebx, 0x1f
mov esi, eax
mov edx, ebx
call fcn.004e0160
mov ebx, dword [edi + 8]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
cmp ebx, dword [edi + 0x114]
jb 0x4c471e
mov ecx, edi
call fcn.004e00d0
lea eax, [ebx + 1]
movzx esi, si
mov dword [edi + 8], eax
mov ecx, 0x2413
mov eax, dword [edi + 0x10]
mov word [eax + ebx*8 + 4], cx
mov ecx, dword [esp + 0x34]
movzx ecx, cx
mov word [eax + ebx*8], cx
mov word [eax + ebx*8 + 2], si
mov ebx, dword [edi + 8]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x1c], ebx
cmp ebx, dword [edi + 0x114]
jb 0x4c475e
mov ecx, edi
call fcn.004e00d0
lea eax, [ebx + 1]
mov ecx, 0x2413
mov dword [edi + 8], eax
mov eax, dword [edi + 0x10]
mov word [eax + ebx*8 + 4], cx
mov ecx, dword [esp + 0x18]
movzx ecx, cx
mov word [eax + ebx*8], cx
mov word [eax + ebx*8 + 2], si
mov ebx, dword [edi + 8]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x18], ebx
cmp ebx, dword [edi + 0x114]
jb 0x4c479b
mov ecx, edi
call fcn.004e00d0
lea eax, [ebx + 1]
mov ecx, 0x2513
mov dword [edi + 8], eax
mov eax, dword [edi + 0x10]
mov word [eax + ebx*8 + 4], cx
mov ecx, dword [esp + 0x30]
mov word [eax + ebx*8], cx
mov ecx, dword [esp + 0x14]
movzx esi, cx
mov word [eax + ebx*8 + 2], si
mov ebx, dword [edi + 8]
cmp ebx, dword [edi + 0x114]
jb 0x4c47d4
mov ecx, edi
call fcn.004e00d0
lea eax, [ebx + 1]
mov ecx, 0x2513
mov dword [edi + 8], eax
mov eax, dword [edi + 0x10]
mov word [eax + ebx*8 + 4], cx
mov ecx, dword [esp + 0x34]
mov word [eax + ebx*8], cx
mov word [eax + ebx*8 + 2], si
mov esi, dword [edi + 8]
cmp esi, dword [edi + 0x114]
jb 0x4c4806
mov ecx, edi
call fcn.004e00d0
lea eax, [esi + 1]
mov ecx, 0x2213
mov dword [edi + 8], eax
mov eax, dword [edi + 0x10]
mov word [eax + esi*8 + 4], cx
mov ecx, dword [esp + 0x10]
mov word [eax + esi*8], cx
mov word [eax + esi*8 + 2], bx
mov word [ebp + 6], si
mov esi, dword [edi + 8]
cmp esi, dword [edi + 0x114]
jb 0x4c483c
mov ecx, edi
call fcn.004e00d0
lea ecx, [esi + 1]
mov eax, 0x2213
mov dword [edi + 8], ecx
mov ecx, dword [edi + 0x10]
pop edi
mov word [ecx + esi*8 + 4], ax
mov eax, dword [esp + 0x18]
mov word [ecx + esi*8], ax
mov eax, dword [esp + 0x14]
mov word [ecx + esi*8 + 2], ax
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x24]
movzx eax, word [ebp + 2]
movzx ecx, word [ebp]
mov dword [esp + 0x18], eax
mov ebx, dword [esi + 8]
mov eax, dword [esp + 0x28]
lea edi, [ebx - 1]
mov dword [esi + 8], edi
movzx eax, word [eax + ecx*2]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
movzx eax, word [eax + ecx*8 + 6]
mov dword [esp + 0x30], eax
cmp edi, dword [esi + 0x114]
jb 0x4c48ab
mov ecx, esi
call fcn.004e00d0
mov eax, dword [esi + 0x10]
mov ecx, 0x6400
mov dword [esi + 8], ebx
mov word [eax + edi*8 + 4], cx
mov ecx, dword [esp + 0x30]
mov word [eax + edi*8], cx
mov ecx, dword [esp + 0x1c]
mov word [eax + edi*8 + 2], cx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esi + 8]
movzx eax, word [eax + ecx*8 + 6]
mov dword [esp + 0x30], eax
cmp ebx, dword [esi + 0x114]
jb 0x4c48ef
mov ecx, esi
call fcn.004e00d0
lea eax, [ebx + 1]
mov ecx, 0x6400
mov dword [esi + 8], eax
mov eax, dword [esi + 0x10]
mov word [eax + ebx*8 + 4], cx
mov ecx, dword [esp + 0x30]
mov word [eax + ebx*8], di
mov word [eax + ebx*8 + 2], cx
mov edi, dword [esi + 8]
cmp edi, dword [esi + 0x114]
jb 0x4c4921
mov ecx, esi
call fcn.004e00d0
lea eax, [edi + 1]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x10]
mov word [eax + edi*8], bx
movzx ebx, di
lea ecx, [eax + edi*8]
mov eax, 0x5f13
mov word [ecx + 4], ax
movzx eax, byte [esp + 0x34]
add ax, 0x48
mov word [ecx + 2], ax
mov eax, ebx
mov word [ebp + 6], bx
mov edi, dword [esi + 8]
mov dword [esp + 0x30], eax
cmp edi, dword [esi + 0x114]
jb 0x4c4968
mov ecx, esi
call fcn.004e00d0
mov eax, ebx
lea ecx, [edi + 1]
mov edx, 0x1017
mov dword [esi + 8], ecx
mov ecx, dword [esi + 0x10]
mov word [ecx + edi*8 + 2], ax
mov eax, edi
mov word [ecx + edi*8], bx
mov word [ecx + edi*8 + 4], dx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret