Function at 0x4f3310
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x20]
push ebx
push ebp
push esi
mov cl, byte [eax + 4]
push edi
test cl, cl
mov dword [esp + 0x10], 0
mov byte [esp + 0x18], cl
je 0x4f3767
mov eax, dword [eax]
mov ebp, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov ebx, esi
mov dword [esp + 0x28], esi
lea ecx, [ebp + ebp]
sub ebx, ecx
mov dword [esp + 0x24], ecx
mov al, byte [ebx + 2]
cmp al, 3
jne 0x4f3372
mov eax, dword [0x54eb40]
push 0x219
push 0x76
push 0xe
mov ecx, dword [eax]
push 0xf
push 0x1f8
push 0x5de
jmp 0x4f34fd
cmp al, 4
jne 0x4f33bf
mov ecx, dword [esp + 0x38]
mov eax, dword [0x54eb40]
mov edi, dword [esp + 0x34]
push 0x219
mov edx, dword [eax]
push 0x76
push 0xd
push 0xf
push 0x1f8
push 0x50d
push ecx
push edi
push 5
push eax
call dword [edx + 0x74]
test eax, eax
fnclex
jge 0x4f3528
mov edx, dword [0x54eb40]
push 0x74
push 0x420b44
push edx
jmp 0x4f3521
cmp al, 5
jne 0x4f33e4
mov eax, dword [0x54eb40]
push 0x219
push 0x76
push 0xd
mov ecx, dword [eax]
push 0xf
push 0x1f8
push 0x592
jmp 0x4f34fd
cmp al, 0x20
jne 0x4f343f
mov ecx, dword [esp + 0x38]
mov eax, dword [0x54eb40]
mov edi, dword [esp + 0x34]
push 0x219
mov edx, dword [eax]
push 0x76
push 0xd
push 0xc
push 0x1f8
push 0x5cb
push ecx
push edi
push 5
push eax
call dword [edx + 0x74]
test eax, eax
fnclex
jge 0x4f342f
mov edx, dword [0x54eb40]
push 0x74
push 0x420b44
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
add edi, 0x10
mov dword [esp + 0x10], 1
jmp 0x4f3539
cmp al, 0x3c
jne 0x4f3485
mov edx, dword [esp + 0x38]
mov eax, dword [0x54eb40]
mov edi, dword [esp + 0x34]
push 0x219
mov ecx, dword [eax]
push 0x76
push 0xd
push 0xd
push 0x1f8
push 0x533
push edx
push edi
push 5
push eax
call dword [ecx + 0x74]
test eax, eax
fnclex
jge 0x4f34d0
mov ecx, dword [0x54eb40]
push 0x74
push 0x420b44
push ecx
jmp 0x4f34c9
cmp al, 0x5b
jne 0x4f34dd
mov ecx, dword [esp + 0x38]
mov eax, dword [0x54eb40]
mov edi, dword [esp + 0x34]
push 0x219
mov edx, dword [eax]
push 0x76
push 0xd
push 0xd
push 0x1f8
push 0x4fa
push ecx
push edi
push 5
push eax
call dword [edx + 0x74]
test eax, eax
fnclex
jge 0x4f34d0
mov edx, dword [0x54eb40]
push 0x74
push 0x420b44
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
add edi, 0x11
mov dword [esp + 0x10], 1
jmp 0x4f3539
cmp al, 0x5d
jne 0x4f3535
mov eax, dword [0x54eb40]
push 0x219
push 0x76
push 0xd
mov ecx, dword [eax]
push 0xf
push 0x1f8
push 0x4e7
mov edx, dword [esp + 0x50]
mov edi, dword [esp + 0x4c]
push edx
push edi
push 5
push eax
call dword [ecx + 0x74]
test eax, eax
fnclex
jge 0x4f3528
mov ecx, dword [0x54eb40]
push 0x74
push 0x420b44
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
add edi, 0x13
mov dword [esp + 0x10], 1
jmp 0x4f3539
mov edi, dword [esp + 0x34]
movzx ax, byte [ebx + 3]
cwd
mov cx, 0xf
idiv cx
test dx, dx
jne 0x4f355e
mov dword [esp + 0x34], 0xe
mov dword [esp + 0x14], 0x104
jmp 0x4f356e
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x14], 0x3f9
mov eax, dword [esp + 0x10]
xor edx, edx
inc eax
xor ecx, ecx
mov dword [esp + 0x10], eax
sub eax, ebp
mov dl, byte [esi + eax*2]
mov cl, byte [esi + eax*2 + 1]
lea eax, [esi + eax*2]
mov ebp, edx
mov edx, dword [0x54ef54]
mov esi, ecx
mov ecx, dword [esp + 0x14]
mov ebx, dword [edx + 0x14]
mov eax, dword [edx + 0xc]
add esi, ecx
mov ecx, dword [esp + 0x34]
sub ecx, ebx
mov dword [esp + 0x30], eax
mov eax, ecx
shl eax, 4
add eax, ecx
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x30]
lea ecx, [eax + ecx*2]
xor eax, eax
mov al, byte [ecx + ebp + 6]
mov ecx, dword [esp + 0x3c]
add eax, edi
cmp eax, ecx
mov dword [esp + 0x1c], eax
jge 0x4f36c8
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
and eax, 0xff
mov dword [esp + 0x20], eax
lea eax, [edx + edx]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
sub ecx, ebx
push 0x219
mov eax, ecx
push 0x76
shl eax, 4
add eax, ecx
push 0xf
lea ecx, [eax + eax*2]
movsx eax, word [edx + ecx*2]
push eax
imul eax, ebp
mov ecx, dword [0x54eb40]
push esi
push eax
mov eax, dword [esp + 0x50]
mov edx, dword [ecx]
push eax
push edi
push 5
push ecx
call dword [edx + 0x74]
test eax, eax
fnclex
jge 0x4f363e
mov ecx, dword [0x54eb40]
push 0x74
push 0x420b44
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
cmp edx, eax
je 0x4f3767
mov ecx, edx
mov esi, dword [esp + 0x24]
inc ecx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x18]
add ecx, 2
xor ebx, ebx
mov eax, ecx
mov dword [esp + 0x18], ecx
sub eax, esi
mov bl, byte [eax + edx]
mov eax, ecx
sub eax, esi
xor ecx, ecx
mov ebp, ebx
mov cl, byte [eax + edx + 1]
mov edx, dword [0x54ef54]
mov esi, ecx
mov ecx, dword [esp + 0x14]
mov ebx, dword [edx + 0x14]
mov eax, dword [edx + 0xc]
add esi, ecx
mov ecx, dword [esp + 0x34]
sub ecx, ebx
mov dword [esp + 0x30], eax
mov eax, ecx
shl eax, 4
add eax, ecx
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x30]
lea ecx, [eax + ecx*2]
xor eax, eax
mov al, byte [ecx + ebp + 6]
mov ecx, dword [esp + 0x3c]
add eax, edi
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x4f35e8
mov dword [esp + 0x3c], 3
mov ebx, dword [esp + 0x34]
mov eax, dword [edx + 0x14]
mov ecx, ebx
push 0x219
sub ecx, eax
push 0x76
mov eax, ecx
push 0xf
shl eax, 4
add eax, ecx
mov ecx, dword [edx + 0xc]
lea eax, [eax + eax*2]
mov ax, word [ecx + eax*2]
mov ecx, dword [0x54eb40]
movsx ebp, ax
push ebp
lea ebp, [eax*8]
sub ebp, eax
mov edx, dword [ecx]
shl ebp, 1
movsx eax, bp
push esi
push eax
mov eax, dword [esp + 0x50]
push eax
push edi
push 5
push ecx
call dword [edx + 0x74]
test eax, eax
fnclex
jge 0x4f3738
mov ecx, dword [0x54eb40]
push 0x74
push 0x420b44
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov edx, dword [0x54ef54]
mov ecx, ebx
xor ebx, ebx
sub ecx, dword [edx + 0x14]
mov eax, ecx
shl eax, 4
add eax, ecx
mov ecx, dword [edx + 0xc]
lea eax, [eax + eax*2]
mov bl, byte [ecx + eax*2 + 0x14]
mov eax, dword [esp + 0x3c]
add edi, ebx
dec eax
mov dword [esp + 0x3c], eax
jne 0x4f36d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x10