Function at 0x409f40
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x4013d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x4012b0
mov edx, dword [ebp + 0x10]
xor esi, esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x8c], esi
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaAryConstruct2]
push 0x11
lea eax, [ebp - 0x34]
push 0x405270
push eax
call esi
push 0x11
lea ecx, [ebp - 0x54]
push 0x405270
push ecx
call esi
push 3
lea edx, [ebp - 0x70]
push 0x40528c
push edx
call esi
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x3c]
push eax
push ecx
call fcn.00409c90
test ax, ax
je 0x409fea
mov eax, 0xffffffa4
mov dword [ebp - 0x1c], eax
jmp 0x40a17e
mov ecx, 2
call dword [sym.imp.MSVBVM60.DLL___vbaUI1I2]
mov edx, dword [ebp - 0x48]
lea ecx, [ebp - 0x84]
push 1
push ecx
mov byte [edx + 1], al
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x54]
push edx
mov dword [ebp - 0x84], eax
call fcn.004097a0
test ax, ax
jne 0x40a021
mov eax, dword [ebp - 0x3c]
push eax
jmp 0x40a045
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x84]
push 8
lea ecx, [ebp - 0x34]
push edx
push eax
mov dword [ebp - 0x84], ecx
call fcn.00408850
test ax, ax
jne 0x40a05d
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00403d34
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov eax, 0xffffffa3
mov dword [ebp - 0x1c], eax
jmp 0x40a17e
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00403d34
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x64]
xor eax, eax
mov edi, 0x10
mov al, byte [ecx]
mov esi, 0x18
mov dword [edx], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x64]
xor eax, eax
mov al, byte [ecx + 1]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x64]
xor eax, eax
mov al, byte [ecx + 2]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x64]
xor eax, eax
mov al, byte [ecx + 3]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x64]
xor eax, eax
mov al, byte [ecx + 4]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x64]
xor eax, eax
mov al, byte [ecx + 5]
mov dword [edx + 0x14], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x64]
xor eax, eax
mov al, byte [ecx + 6]
mov dword [edx + 0x18], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x64]
xor eax, eax
mov al, byte [ecx + 7]
mov dword [edx + 0x1c], eax
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x78], 8
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x80], esi
mov edx, dword [ecx + 8]
lea eax, [ebp - 0x78]
push eax
push edx
call fcn.00408550
mov ecx, dword [ebp - 0x64]
mov ebx, eax
lea eax, [ebp - 0x7c]
mov edx, dword [ecx + 4]
push eax
push edx
call fcn.00408550
mov ecx, dword [ebp - 0x64]
or ebx, eax
lea eax, [ebp - 0x80]
mov edx, dword [ecx]
push eax
push edx
call fcn.00408550
or ebx, eax
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x78]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x78], 8
or ebx, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x80], esi
mov dword [ecx], ebx
mov eax, dword [eax + 0x18]
push edx
push eax
call fcn.00408550
mov edx, dword [ebp - 0x64]
mov esi, eax
lea ecx, [ebp - 0x7c]
mov eax, dword [edx + 0x14]
push ecx
push eax
call fcn.00408550
mov edx, dword [ebp - 0x64]
or esi, eax
lea ecx, [ebp - 0x80]
mov eax, dword [edx + 0x10]
push ecx
push eax
call fcn.00408550
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp + 0xc]
or esi, eax
or esi, dword [ecx + 0x1c]
mov dword [edx], esi
push 0x40a1ce
lea ecx, [ebp - 0x14]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaAryDestruct]
lea ecx, [ebp - 0x84]
xor esi, esi
lea eax, [ebp - 0x34]
push ecx
push esi
mov dword [ebp - 0x84], eax
call edi
lea eax, [ebp - 0x88]
lea edx, [ebp - 0x54]
push eax
push esi
mov dword [ebp - 0x88], edx
call edi
lea edx, [ebp - 0x8c]
lea ecx, [ebp - 0x70]
push edx
push esi
mov dword [ebp - 0x8c], ecx
call edi
ret