Function at 0x46a4e0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov ebx, ecx
push ebp
mov esi, 8
mov ecx, dword [esp + 0x28]
mov dword [ecx], 0
cmp dword [ebx + 4], 0
jne 0x46a5a0
cmp dword [ebx + 0xc], 0x4000
jle 0x46a512
mov dword [ebx + 0xc], 0x4000
cmp dword [ebx + 0xc], 0x100
jge 0x46a522
mov dword [ebx + 0xc], 0x100
mov eax, dword [ebx + 0xc]
push eax
call fcn.0046a3f0
add esp, 4
mov edi, eax
cmp dword [ebx + 0xc], edi
jge 0x46a541
mov eax, dword [ebx + 0xc]
add eax, eax
mov dword [ebx + 0xc], eax
cmp edi, eax
jg 0x46a535
mov eax, dword [ebx + 8]
push 0x42
add eax, 0xe
imul eax, dword [ebx + 0xc]
add eax, 0x18
push eax
call fcn.00479a30
add esp, 8
mov dword [ebx + 4], eax
test eax, eax
je 0x46a596
push eax
call dword [0x4f6aac]
mov dword [eax], 0x53594d31
mov dword [eax + 4], edi
mov dword [eax + 0xc], edi
mov ecx, dword [ebx + 0xc]
mov dword [eax + 8], ecx
mov dword [eax + 0x10], 0
mov edx, dword [ebx + 8]
mov dword [eax + 0x14], edx
mov edi, dword [eax + 0xc]
mov eax, dword [ebx + 4]
push eax
mov dword [ebx + 0xc], edi
call dword [0x4f6aa4]
cmp dword [ebx + 4], 0
je 0x46a6ff
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x1c]
push ecx
push edi
mov ecx, ebx
push ebp
call fcn.0046a710
test eax, eax
je 0x46a5c1
xor esi, esi
jmp 0x46a6ff
push edi
mov eax, dword [ebx]
push ebp
mov ecx, ebx
call dword [eax]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 4]
push eax
call dword [0x4f6aac]
lea edx, [eax + 0x18]
mov ebp, eax
mov eax, dword [eax + 0x14]
add eax, 0xe
mov ecx, dword [esp + 0x10]
imul ecx, eax
lea edi, [ecx + edx]
test byte [edi], 2
je 0x46a5fa
mov ecx, dword [edi + 2]
mov dword [esp + 0x10], ecx
jmp 0x46a5e2
test byte [edi], 1
je 0x46a66f
mov eax, dword [ebp + 8]
cmp dword [ebp + 4], eax
jl 0x46a65f
mov eax, dword [ebx + 4]
push eax
call dword [0x4f6aa4]
mov eax, dword [ebp + 8]
mov ecx, eax
push 0x42
sar ecx, 1
lea edi, [ecx + eax]
mov eax, dword [ebx + 8]
add eax, 0xe
mov ecx, dword [ebx + 4]
imul eax, edi
add eax, 0x18
push eax
push ecx
call fcn.00479af0
add esp, 0xc
test eax, eax
je 0x46a6ff
push eax
mov dword [ebx + 4], eax
call dword [0x4f6aac]
lea edx, [eax + 0x18]
mov dword [eax + 8], edi
mov ebp, eax
mov eax, dword [eax + 0x14]
add eax, 0xe
imul eax, dword [esp + 0x10]
lea edi, [eax + edx]
mov ecx, dword [ebp + 4]
mov dword [esp + 0x10], ecx
mov dword [edi + 2], ecx
or byte [edi], 2
inc dword [ebp + 4]
mov eax, dword [ebp + 0x14]
lea ecx, [eax + 0xe]
imul ecx, dword [esp + 0x10]
add ecx, edx
cmp eax, 1
mov dword [esp + 0x14], ecx
lea edi, [ecx + 0xe]
jne 0x46a690
mov cl, byte [esp + 0x20]
mov byte [edi], cl
jmp 0x46a6c1
cmp eax, 2
jne 0x46a69e
mov ecx, dword [esp + 0x20]
mov word [edi], cx
jmp 0x46a6c1
cmp eax, 4
jne 0x46a6ab
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
jmp 0x46a6c1
test eax, eax
jle 0x46a6c1
mov esi, dword [esp + 0x20]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov word [ecx], 1
mov eax, dword [ebp + 0x10]
mov dword [ecx + 6], eax
inc dword [ebp + 0x10]
mov eax, dword [ecx + 6]
mov ecx, dword [esp + 0x28]
inc eax
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
add eax, 0xe
mov ecx, dword [esp + 0x14]
imul eax, dword [ecx + 6]
mov ebp, dword [esp + 0x10]
xor esi, esi
mov dword [eax + edx + 0xa], ebp
mov eax, dword [ebx + 4]
push eax
call dword [0x4f6aa4]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 8
ret 0x10