Function at 0x4027e0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x14c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x15c]
push edi
push 8
mov eax, dword [esi]
lea ecx, [esp + 0x14]
push str.kscom
push ecx
push esi
mov dword [esp + 0x20], 0
call dword [eax + 0x48]
mov ebp, eax
test ebp, ebp
je 0x4029a6
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 4]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
cmp eax, 0x45763890
jne 0x40298a
mov eax, dword [esi + 4]
mov edx, dword [ebp + 0xc]
push 0
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov ebx, eax
test ebx, ebx
jne 0x40289a
mov eax, dword [0x410d64]
test eax, eax
jne 0x40287f
mov ecx, 8
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x3c]
push 0x20
push eax
push str.KSLIBCREATOR_POINTER
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea ecx, [esp + 0x3c]
push ecx
call fcn.00404172
add esp, 4
mov dword [0x410d64], eax
test eax, eax
je 0x402888
mov edx, dword [eax]
push 1
push eax
call dword [edx]
jmp 0x40288a
xor eax, eax
mov ecx, dword [esi + 4]
mov ebx, eax
push eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [ebx]
push ebp
push edx
push ebx
call dword [ecx + 0x10]
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x402941
mov eax, dword [esi + 8]
push 0
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x20]
mov edi, eax
test edi, edi
jne 0x40291a
mov eax, dword [0x410d64]
test eax, eax
jne 0x4028ff
mov ecx, 8
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push 0x20
push eax
push str.KSLIBCREATOR_POINTER
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea ecx, [esp + 0x1c]
push ecx
call fcn.00404172
add esp, 4
mov dword [0x410d64], eax
test eax, eax
je 0x402908
mov edx, dword [eax]
push 1
push eax
call dword [edx]
jmp 0x40290a
xor eax, eax
mov ecx, dword [esi + 8]
mov edi, eax
push eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x10]
mov edx, dword [ebp + 0xc]
mov ecx, dword [edi]
push edx
push edi
call dword [ecx + 0x18]
test eax, eax
je 0x402933
mov edx, dword [ebp + 0xc]
mov ecx, dword [edi]
push edx
push eax
push edi
call dword [ecx + 0x14]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x18]
mov eax, dword [edi]
push ecx
push edx
push edi
call dword [eax + 0x10]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x24]
cmp eax, 1
jbe 0x40298a
mov edi, dword [ebx]
push 0
push ebx
call dword [edi + 0x24]
dec eax
push eax
push ebx
call dword [edi + 0x28]
test byte [eax + 0x10], 2
jne 0x40298a
mov ecx, dword [eax + 0xc]
lea edx, [esp + 0x5c]
push ecx
push str.Found_same_components__IID_is__08X._n
push edx
call fcn.00404494
mov eax, dword [esi]
add esp, 0xc
lea ecx, [esp + 0x5c]
push 0x30
push str.Warning
push ecx
push 0
push esi
call dword [eax + 0x5c]
mov edx, dword [esi]
push 8
lea eax, [esp + 0x14]
push str.kscom
push eax
push esi
call dword [edx + 0x48]
mov ebp, eax
test ebp, ebp
jne 0x402815
mov ecx, dword [esi]
push 8
lea edx, [esp + 0x14]
push str.KSMLSTR
push edx
push esi
call dword [ecx + 0x48]
test eax, eax
je 0x4029dc
mov ecx, dword [esi]
add eax, 8
push eax
push esi
call dword [ecx + 0x20]
mov edx, dword [esi]
push 8
lea eax, [esp + 0x14]
push str.KSMLSTR
push eax
push esi
call dword [edx + 0x48]
test eax, eax
jne 0x4029bc
mov eax, dword [esi + 4]
mov byte [esi + 0x24], 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
test eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0
jbe 0x402a4b
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x14]
push 0
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x28]
mov edi, eax
push edi
mov edx, dword [edi]
call dword [edx + 0x24]
mov ebp, eax
xor ebx, ebx
test ebp, ebp
jbe 0x402a3a
mov eax, dword [edi]
push 0
push ebx
push edi
call dword [eax + 0x28]
mov eax, dword [eax + 0x24]
test eax, eax
je 0x402a35
push 0
push 0
push 1
push 0
push 0
call eax
inc ebx
cmp ebx, ebp
jb 0x402a19
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x4029f9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14c
ret 4