Function at 0x4011a0
Capabilities:
Get common file path
Get disk information
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x42785c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x65c
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_PostMessageA]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_FindWindowA]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], str.Hidden_Main_Window
mov dword [esp + 0x1c], str.C_Media_3D_Audio_Configuration
lea esi, [esp + 0x18]
mov ebx, 2
mov eax, dword [esi]
push eax
push 0
call edi
test eax, eax
je 0x4011fc
push 0
push 0
push 0x10
push eax
call ebp
add esi, 4
dec ebx
jne 0x4011e8
mov cl, byte [0x43796c]
xor eax, eax
mov byte [esp + 0x158], cl
mov ecx, 0x40
lea edi, [esp + 0x159]
lea edx, [esp + 0x158]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
push edx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x4016fa
mov al, byte [0x43796c]
mov ecx, 0x40
mov byte [esp + 0x464], al
xor eax, eax
lea edi, [esp + 0x465]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x468]
push ecx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4016fa
lea ecx, [esp + 0x2c]
call fcn.0041ba70
xor ebx, ebx
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x34]
mov dword [esp + 0x67c], ebx
call fcn.0041bb03
mov edx, dword [esp + 0x680]
push 1
push ebx
push ebx
lea eax, [esp + 0x38]
push edx
push eax
call fcn.004022f0
mov eax, dword [esp + 0x48]
add esp, 0x14
cmp eax, ebx
mov ebp, eax
jne 0x4012d3
lea ecx, [esp + 0x2c]
mov dword [esp + 0x674], 0xffffffff
call fcn.0041baa3
xor eax, eax
jmp 0x4016fa
mov cl, byte [0x43796c]
xor eax, eax
mov byte [esp + 0x568], cl
mov ecx, 0x40
lea edi, [esp + 0x569]
lea edx, [esp + 0x20]
rep stosd dword es:[edi], eax
push edx
push 0xf003f
stosw word es:[edi], ax
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionSetup
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x34], ebx
stosb byte es:[edi], al
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4013ca
mov al, byte [0x43796c]
mov ecx, 0x40
mov byte [esp + 0x360], al
xor eax, eax
lea edi, [esp + 0x361]
lea edx, [esp + 0x360]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0x104
stosb byte es:[edi], al
push ecx
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x18]
push edx
push eax
push ebx
push str.SourcePath
push ecx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4013ca
mov dl, byte [0x43796c]
lea eax, [esp + 0x360]
push 3
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x24], dl
mov dword [esp + 0x25], ebx
call fcn.0040ddc0
add esp, 0xc
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x4013ca
mov edi, 0x43796c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x360]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov cl, byte [0x43796c]
xor eax, eax
mov byte [esp + 0x54], cl
mov ecx, 0x40
lea edi, [esp + 0x55]
push 0x43796c
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x14]
stosb byte es:[edi], al
call fcn.0041c4a9
xor esi, esi
cmp ebp, ebx
mov byte [esp + 0x674], 1
jle 0x4015b4
mov edx, dword [esp + 0x30]
push 0x5c
lea ecx, [edx + esi*4]
call fcn.0041b67f
cmp eax, ebx
jl 0x4015ab
mov ecx, dword [esp + 0x30]
inc eax
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [ecx + esi*4]
call fcn.0041b5c6
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x678], 2
call fcn.0041c574
lea ecx, [esp + 0x14]
mov byte [esp + 0x674], 1
call fcn.0041c43b
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x158]
push edx
push eax
lea ecx, [esp + 0x5c]
push str._s_system_s
push ecx
call fcn.0040dd65
lea edx, [esp + 0x64]
push edx
call fcn.00402810
mov eax, dword [esp + 0x24]
add esp, 0x14
lea ecx, [esp + 0x158]
lea edx, [esp + 0x54]
push eax
push ecx
push str._s_system32_s
push edx
call fcn.0040dd65
lea eax, [esp + 0x64]
push eax
call fcn.00402810
mov ecx, dword [esp + 0x24]
add esp, 0x14
lea edx, [esp + 0x158]
lea eax, [esp + 0x54]
push ecx
push edx
push str._s_system32drivers_s
push eax
call fcn.0040dd65
lea ecx, [esp + 0x64]
push ecx
call fcn.00402810
mov edx, dword [esp + 0x24]
add esp, 0x14
lea eax, [esp + 0x158]
lea ecx, [esp + 0x54]
push edx
push eax
push str._sINFCATALOG_s
push ecx
call fcn.0040dd65
lea edx, [esp + 0x64]
push edx
call fcn.00402810
mov eax, dword [esp + 0x24]
add esp, 0x14
lea ecx, [esp + 0x158]
lea edx, [esp + 0x54]
push eax
push ecx
push str._sINF_s
push edx
call fcn.0040dd65
lea eax, [esp + 0x64]
push eax
call fcn.00402810
mov ecx, dword [esp + 0x24]
add esp, 0x14
lea edx, [esp + 0x158]
lea eax, [esp + 0x54]
push ecx
push edx
push str._sOPTIONSINSTALL_s
push eax
call fcn.0040dd65
lea ecx, [esp + 0x64]
push ecx
call fcn.00402810
mov edx, dword [esp + 0x24]
add esp, 0x14
lea eax, [esp + 0x464]
lea ecx, [esp + 0x54]
push edx
push eax
push str._s_s
push ecx
call fcn.0040dd65
lea edx, [esp + 0x64]
push edx
call fcn.00402810
lea edi, [esp + 0x57c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4015ab
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x568]
push eax
push ecx
lea edx, [esp + 0x5c]
push str._s_s
push edx
call fcn.0040dd65
lea eax, [esp + 0x64]
push eax
call fcn.00402810
add esp, 0x14
inc esi
cmp esi, ebp
jl 0x401404
lea ecx, [esp + 0x158]
push str.Cmicnfg.ini
push ecx
lea edx, [esp + 0x5c]
push str._s_system_s
push edx
call fcn.0040dd65
lea eax, [esp + 0x64]
push eax
call fcn.00402810
mov cl, byte [0x43796c]
xor eax, eax
mov byte [esp + 0x270], cl
mov ecx, 0x40
lea edi, [esp + 0x271]
add esp, 0x14
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x40]
stosb byte es:[edi], al
call fcn.0041ba70
lea edx, [esp + 0x158]
lea eax, [esp + 0x25c]
push edx
push str._sINFOTHER
push eax
mov byte [esp + 0x680], 3
call fcn.0040dd65
push 1
push str..inf
lea ecx, [esp + 0x270]
push ebx
lea edx, [esp + 0x58]
push ecx
push edx
call fcn.004022f0
add esp, 0x20
lea eax, [esp + 0x158]
lea ecx, [esp + 0x25c]
push eax
push str._sINF
push ecx
call fcn.0040dd65
push 1
push str.oem.inf
lea edx, [esp + 0x270]
push ebx
lea eax, [esp + 0x58]
push edx
push eax
call fcn.004022f0
mov eax, dword [esp + 0x68]
add esp, 0x20
cmp eax, ebx
mov ebp, eax
je 0x4016bf
xor esi, esi
cmp eax, ebx
jle 0x4016bf
mov edi, dword [esp + 0x67c]
mov ecx, dword [esp + 0x44]
push ebx
push edi
mov eax, dword [ecx + esi*4]
mov ecx, dword [esp + 0x30]
push eax
call fcn.00401ac0
test eax, eax
je 0x4016ba
mov edx, dword [esp + 0x44]
mov eax, dword [edx + esi*4]
push eax
call fcn.00402810
add esp, 4
inc esi
cmp esi, ebp
jl 0x401693
lea ecx, [esp + 0x40]
mov byte [esp + 0x674], 1
call fcn.0041baa3
lea ecx, [esp + 0x10]
mov byte [esp + 0x674], 0
call fcn.0041c43b
lea ecx, [esp + 0x2c]
mov dword [esp + 0x674], 0xffffffff
call fcn.0041baa3
mov eax, 1
mov ecx, dword [esp + 0x66c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x668
ret 8