Function at 0x406c90
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x20]
push ebx
xor ebx, ebx
push ebp
mov bx, word [eax]
push esi
mov ecx, ebx
and bh, 0xbf
and ecx, 0x4000
cmp ebx, 9
push edi
mov dword [esp + 0x10], ecx
je 0x406cdc
cmp ebx, 0xc
jne 0x406ceb
mov eax, dword [eax + 8]
xor ebx, ebx
mov dword [esp + 0x30], eax
mov bx, word [eax]
mov eax, ebx
and bh, 0xbf
and eax, 0x4000
cmp ebx, 9
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
jne 0x406cb4
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x406d05
mov edx, dword [eax + 8]
mov ebp, dword [edx]
jmp 0x406d08
cmp ebx, 0x1d
je 0x406cdc
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x2c]
push ecx
push eax
push esi
call sub.PComObj.dll_StandartTypeVARIANT2Variable
jmp 0x406ee0
mov ebp, dword [eax + 8]
mov esi, dword [esp + 0x34]
push esi
push ebp
call fcn.00406a30
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
je 0x406ed4
mov esi, dword [0x411da8]
mov eax, dword [esi]
test ah, 4
je 0x406d3f
mov ecx, dword [esi + 4]
push edi
add ecx, 0x12
call dword [sym.imp.pluk.dll_public:_class_Variable____thiscall_Vector::operator___long_int_]
mov esi, eax
jmp 0x406d5d
test ah, 0x98
je 0x406d53
mov esi, dword [esi + 4]
push edi
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x2c]
mov esi, eax
jmp 0x406d5d
push 0x4d
call sub.pluk.dll_void___cdecl_PlukError_long_int_
add esp, 4
mov eax, dword [esi]
test ah, 4
je 0x406d74
mov ecx, dword [esi + 4]
push 1
add ecx, 0x12
call dword [sym.imp.pluk.dll_public:_class_Variable____thiscall_Vector::operator___long_int_]
jmp 0x406d93
test ah, 0x98
je 0x406d87
mov esi, dword [esi + 4]
push 1
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x2c]
jmp 0x406d93
push 0x4d
call sub.pluk.dll_void___cdecl_PlukError_long_int_
add esp, 4
mov eax, esi
mov ecx, dword [eax]
mov esi, dword [0x411da8]
cmp ecx, 0x1000
mov eax, dword [esi]
jne 0x406e2b
test ah, 4
je 0x406dbf
mov ecx, dword [esi + 4]
push edi
add ecx, 0x12
call dword [sym.imp.pluk.dll_public:_class_Variable____thiscall_Vector::operator___long_int_]
mov esi, eax
jmp 0x406ddb
test ah, 0x98
je 0x406dd1
mov ecx, dword [esi + 4]
push edi
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov esi, eax
jmp 0x406ddb
push 0x4d
call sub.pluk.dll_void___cdecl_PlukError_long_int_
add esp, 4
mov eax, dword [esi]
test ah, 4
je 0x406df2
mov ecx, dword [esi + 4]
push 1
add ecx, 0x12
call dword [sym.imp.pluk.dll_public:_class_Variable____thiscall_Vector::operator___long_int_]
jmp 0x406e11
test ah, 0x98
je 0x406e05
mov esi, dword [esi + 4]
push 1
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x2c]
jmp 0x406e11
push 0x4d
call sub.pluk.dll_void___cdecl_PlukError_long_int_
add esp, 4
mov eax, esi
mov ecx, eax
call dword [sym.imp.pluk.dll_public:_class_Variable____thiscall_Variable::GetPointer_void_]
mov esi, dword [esp + 0x2c]
push eax
mov ecx, esi
call dword [sym.imp.pluk.dll_public:_class_Variable____thiscall_Variable::operator_class_Variable__]
jmp 0x406ee3
test ah, 4
je 0x406e41
mov ecx, dword [esi + 4]
push edi
add ecx, 0x12
call dword [sym.imp.pluk.dll_public:_class_Variable____thiscall_Vector::operator___long_int_]
mov esi, eax
jmp 0x406e5d
test ah, 0x98
je 0x406e53
mov ecx, dword [esi + 4]
push edi
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov esi, eax
jmp 0x406e5d
push 0x4d
call sub.pluk.dll_void___cdecl_PlukError_long_int_
add esp, 4
mov eax, dword [esi]
test ah, 4
je 0x406e99
mov ecx, dword [esi + 4]
add ecx, 0x12
cmp dword [ecx], 1
jle 0x406e84
mov eax, dword [ecx + 4]
mov esi, dword [esp + 0x2c]
add eax, 0x10
mov ecx, esi
push eax
call dword [sym.imp.pluk.dll_public:_class_Variable____thiscall_Variable::operator_class_Variable__]
jmp 0x406ee3
call dword [sym.imp.pluk.dll_protected:_class_Variable____thiscall_Vector::OutOfVector_void_]
mov esi, dword [esp + 0x2c]
push eax
mov ecx, esi
call dword [sym.imp.pluk.dll_public:_class_Variable____thiscall_Variable::operator_class_Variable__]
jmp 0x406ee3
test ah, 0x98
je 0x406eb9
mov esi, dword [esi + 4]
push 1
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x2c]
mov esi, dword [esp + 0x2c]
push eax
mov ecx, esi
call dword [sym.imp.pluk.dll_public:_class_Variable____thiscall_Variable::operator_class_Variable__]
jmp 0x406ee3
push 0x4d
call sub.pluk.dll_void___cdecl_PlukError_long_int_
add esp, 4
mov eax, esi
mov esi, dword [esp + 0x2c]
push eax
mov ecx, esi
call dword [sym.imp.pluk.dll_public:_class_Variable____thiscall_Variable::operator_class_Variable__]
jmp 0x406ee3
push esi
mov esi, dword [esp + 0x30]
push esi
push ebp
call sub.PComObj.dll_StdDisp2Variable
add esp, 0xc
test bh, 0x20
je 0x407094
mov eax, dword [esp + 0x10]
test eax, eax
je 0x406eff
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 8]
mov ebp, dword [ecx]
jmp 0x406f06
mov edx, dword [esp + 0x30]
mov ebp, dword [edx + 8]
push ebp
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnlock]
push ebp
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElemsize]
mov edi, eax
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x14], edi
push eax
push 1
push ebp
call dword [sym.imp.OLEAUT32.dll_SafeArrayLock]
lea ecx, [esp + 0x30]
push ecx
push 1
push ebp
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetLBound]
test bl, 0x11
je 0x406feb
cmp edi, 1
jne 0x406feb
lea edx, [esp + 0x34]
push edx
push ebp
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
test eax, eax
jl 0x40708d
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
sub eax, ecx
mov ecx, esi
inc eax
push eax
push 0x200
call dword [sym.imp.pluk.dll_public:_void___thiscall_Variable::Init_enum_PVARTYPE__long_int_]
mov eax, dword [esi]
test eax, 0x2c0
je 0x406f90
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x16]
jmp 0x406fb2
test ah, 8
je 0x406fa1
mov esi, dword [esi + 4]
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x14]
jmp 0x406fb2
test ah, 0x90
je 0x406fd5
mov eax, dword [esi + 4]
mov ecx, dword [eax + 6]
call dword [sym.imp.pluk.dll_public:_char____thiscall_Variable::GetData_void_const]
test eax, eax
je 0x406fd5
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
sub ecx, esi
mov esi, dword [esp + 0x34]
inc ecx
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebp
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
push ebp
call dword [sym.imp.OLEAUT32.dll_SafeArrayAccessData]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
shl edi, 2
test edi, edi
jne 0x406ff6
push 4
jmp 0x406ff7
push edi
call sub.pluk.dll_HMALLOC
mov ecx, edi
mov dword [esp + 0x14], eax
mov edi, dword [esp + 0x14]
mov edx, ecx
xor eax, eax
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
sub eax, edx
mov ecx, esi
inc eax
push eax
push 0x400
call dword [sym.imp.pluk.dll_public:_void___thiscall_Variable::Init_enum_PVARTYPE__long_int_]
mov edi, dword [esp + 0x14]
push esi
push edi
push 1
push ebp
call sub.PComObj.dll_CreateVarVect
add esp, 0x10
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x18]
push edx
push eax
push esi
mov esi, dword [esp + 0x1c]
push edi
push 0
and ebx, 0xdfff
push esi
push ebp
mov word [esp + 0x34], bx
call fcn.004070a0
add esp, 0x1c
test esi, esi
je 0x407082
push esi
call sub.pluk.dll_HFREE
add esp, 4
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push ebp
call dword [sym.imp.OLEAUT32.dll_SafeArrayAccessData]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret