Function at 0x407d40
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x40
mov eax, dword [esp + 0x4c]
push ebx
mov ebx, dword [esp + 0x48]
push ebp
mov ebp, ecx
push esi
lea ecx, [esp + 0x10]
push edi
lea esi, [eax + 1]
push ecx
push esi
push ebx
call dword [sym.imp.OLEAUT32.dll_SafeArrayLock]
lea edx, [esp + 0x18]
push edx
push esi
push ebx
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetLBound]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, 1
xor edx, edx
sub ecx, esi
mov dword [esp + 0x10], 0
add eax, ecx
mov dword [esp + 0x14], edx
test eax, eax
mov dword [esp + 0x18], eax
jle 0x408053
mov edi, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
mov dword [edi + ecx*4], edx
inc ecx
cmp ecx, eax
jge 0x407dd0
mov edx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x68]
push edx
push eax
push ecx
push edi
push ebx
mov ecx, ebp
call fcn.00407d40
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x10], eax
jmp case.0x407e01.12
push eax
mov eax, dword [esp + 0x68]
push 0
push edi
push eax
call sub.PComObj.dll_GetVarVectElem
mov ecx, dword [esp + 0x78]
mov esi, eax
and ecx, 0xffff
add esp, 0x10
lea eax, [ecx - 2]
cmp eax, 0x11
ja case.0x407e01.12
xor edx, edx
mov dl, byte [eax + 0x40809c]
jmp dword [edx*4 + 0x408070]
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
push esi
call fcn.004080b0
fstp dword [esp + 0x24]
lea ecx, [esp + 0x24]
push ecx
push edi
push ebx
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopy]
jmp case.0x407e01.12
lea edx, [esp + 0x10]
mov ecx, ebp
push edx
push esi
call fcn.004080b0
fstp qword [esp + 0x38]
lea eax, [esp + 0x38]
push eax
push edi
push ebx
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopy]
jmp case.0x407e01.12
lea ecx, [esp + 0x10]
push ecx
push esi
mov ecx, ebp
call fcn.004080b0
call sub.MSVCRT.dll__ftol
lea edx, [esp + 0x54]
mov byte [esp + 0x54], al
push edx
push edi
push ebx
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopy]
jmp case.0x407e01.12
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
push esi
call fcn.004080b0
call sub.MSVCRT.dll__ftol
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], eax
push ecx
push edi
push ebx
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopy]
jmp case.0x407e01.12
lea edx, [esp + 0x10]
mov ecx, ebp
push edx
push esi
call fcn.004080b0
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
push eax
push edi
push ebx
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopy]
jmp case.0x407e01.12
lea ecx, [esp + 0x10]
push ecx
push esi
mov ecx, ebp
call fcn.004080b0
call sub.MSVCRT.dll__ftol
lea edx, [esp + 0x30]
mov dword [esp + 0x30], eax
push edx
push edi
push ebx
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopy]
jmp case.0x407e01.12
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
push esi
call fcn.004080b0
call sub.MSVCRT.dll__ftol
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
push ecx
push edi
push ebx
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopy]
mov edx, dword [esp + 0x1c]
mov ecx, esi
push edx
call dword [sym.imp.pluk.dll_public:_class_Variable____thiscall_Variable::operator_int_]
jmp case.0x407e01.12
mov eax, dword [esi]
test eax, 0x2c0
je 0x407f38
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x12]
mov dword [esp + 0x58], ecx
jmp 0x407f53
test ah, 0x98
je 0x407f4b
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
call dword [edx + 0x20]
mov dword [esp + 0x58], eax
jmp 0x407f53
mov dword [esp + 0x58], 0
lea eax, [esp + 0x20]
push eax
push edi
push ebx
call dword [sym.imp.OLEAUT32.dll_SafeArrayPutElement]
mov ecx, dword [esp + 0x58]
lea edx, [esp + 0x20]
lea eax, [ecx + 1]
push eax
push 0
push edx
mov dword [esp + 0x64], eax
call dword [sym.imp.OLEAUT32.dll_SysFreeString]
test eax, eax
je case.0x407e01.12
mov eax, dword [esi]
test eax, 0x2c0
je 0x407f92
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x16]
jmp 0x407fb8
test ah, 8
je 0x407fa3
mov esi, dword [esi + 4]
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x14]
jmp 0x407fb8
test ah, 0x90
je 0x407fb6
mov eax, dword [esi + 4]
mov ecx, dword [eax + 6]
call dword [sym.imp.pluk.dll_public:_char____thiscall_Variable::GetData_void_const]
jmp 0x407fb8
xor eax, eax
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x20]
push ecx
push edx
push ecx
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jmp case.0x407e01.12
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
push esi
call fcn.004080b0
call sub.MSVCRT.dll__ftol
lea ecx, [esp + 0x34]
neg eax
push ecx
push edi
sbb eax, eax
push ebx
mov dword [esp + 0x40], eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopy]
jmp case.0x407e01.12
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [esp + 0x40]
push eax
push edi
push ebx
call dword [sym.imp.OLEAUT32.dll_SafeArrayPutElement]
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, ebp
call fcn.004078d0
lea edx, [esp + 0x40]
push edx
push edi
push ebx
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopy]
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x408062
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
inc edx
cmp edx, eax
mov dword [esp + 0x14], edx
jl 0x407d9d
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret 0x18
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret 0x18