Function at 0x4c0430
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [edi + 0x1c]
mov ebp, dword [esi + 4]
test ebp, ebp
mov ebx, dword [esi]
mov dword [esp + 0x10], esi
jne 0x4c045a
push edi
call dword [esi + 0xc]
add esp, 4
test al, al
je 0x4c0669
mov ebx, dword [esi]
mov ebp, dword [esi + 4]
xor eax, eax
mov ah, byte [ebx]
dec ebp
inc ebx
test ebp, ebp
mov dword [esp + 0xc], eax
jne 0x4c0480
push edi
call dword [esi + 0xc]
add esp, 4
test al, al
je 0x4c0669
mov ebx, dword [esi]
mov ebp, dword [esi + 4]
mov eax, dword [esp + 0xc]
movzx ecx, byte [ebx]
add eax, ecx
dec ebp
sub eax, 2
inc ebx
test eax, eax
mov dword [esp + 0xc], eax
jle 0x4c063e
test ebp, ebp
jne 0x4c04ae
push edi
call dword [esi + 0xc]
add esp, 4
test al, al
je 0x4c0669
mov ebx, dword [esi]
mov ebp, dword [esi + 4]
movzx esi, byte [ebx]
mov edx, dword [edi]
mov dword [edx + 0x14], 0x4e
mov ecx, dword [edi]
mov eax, esi
sar eax, 4
and esi, 0xf
mov dword [ecx + 0x18], esi
mov edx, dword [edi]
mov dword [esp + 0x1c], eax
mov dword [edx + 0x1c], eax
mov eax, dword [edi]
push 1
dec ebp
push edi
inc ebx
call dword [eax + 4]
add esp, 8
cmp esi, 4
jge 0x4c064f
mov eax, dword [edi + esi*4 + 0x98]
test eax, eax
lea esi, [edi + esi*4 + 0x98]
jne 0x4c050a
push edi
push esi
call fcn.004bc5c0
add esp, 8
test eax, eax
jl 0x4c0648
mov ecx, dword [esi]
xor esi, esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4c056b
test ebp, ebp
mov esi, dword [esp + 0x10]
jne 0x4c053a
push edi
call dword [esi + 0xc]
add esp, 4
test al, al
je 0x4c0669
mov ebx, dword [esi]
mov ebp, dword [esi + 4]
xor edx, edx
mov dh, byte [ebx]
dec ebp
inc ebx
test ebp, ebp
mov dword [esp + 0x14], edx
jne 0x4c055c
push edi
call dword [esi + 0xc]
add esp, 4
test al, al
je 0x4c0669
mov ebx, dword [esi]
mov ebp, dword [esi + 4]
movzx eax, byte [ebx]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
add ecx, eax
jmp 0x4c058b
test ebp, ebp
jne 0x4c0588
mov ebp, dword [esp + 0x10]
push edi
call dword [ebp + 0xc]
add esp, 4
test al, al
je 0x4c0669
mov ebx, dword [ebp]
mov ebp, dword [ebp + 4]
movzx ecx, byte [ebx]
mov eax, dword [esp + 0x20]
dec ebp
mov dx, cx
inc ebx
mov word [eax + esi*2], dx
inc esi
cmp esi, 0x40
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], esi
jl 0x4c0516
lea esi, [eax + 4]
mov dword [esp + 0x18], 8
mov eax, dword [edi]
movzx ecx, word [esi - 4]
add eax, 0x18
mov dword [eax], ecx
movzx edx, word [esi - 2]
mov dword [eax + 4], edx
movzx ecx, word [esi]
mov dword [eax + 8], ecx
movzx edx, word [esi + 2]
mov dword [eax + 0xc], edx
movzx ecx, word [esi + 4]
mov dword [eax + 0x10], ecx
movzx edx, word [esi + 6]
mov dword [eax + 0x14], edx
movzx ecx, word [esi + 8]
mov dword [eax + 0x18], ecx
movzx edx, word [esi + 0xa]
mov dword [eax + 0x1c], edx
mov eax, dword [edi]
mov dword [eax + 0x14], 0x5a
mov ecx, dword [edi]
push 2
push edi
call dword [ecx + 4]
mov eax, dword [esp + 0x20]
add esp, 8
add esi, 0x10
dec eax
mov dword [esp + 0x18], eax
jne 0x4c05b5
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x1c]
sub ecx, 0x41
test eax, eax
mov dword [esp + 0xc], ecx
je 0x4c062e
mov eax, ecx
sub eax, 0x40
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
test eax, eax
mov esi, dword [esp + 0x10]
jg 0x4c0496
mov dword [esi], ebx
mov dword [esi + 4], ebp
mov eax, 1
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov edx, dword [edi]
mov dword [edx + 0x14], 0x1c
mov eax, dword [edi]
mov dword [eax + 0x18], esi
pop esi
pop ebp
mov eax, 0xffffffe4
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret