Function at 0x41c160
Capabilities:
Get common file path
Get program files directory
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x4511ee
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x4663e0]
xor eax, esp
mov dword [esp + 0x2f8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4663e0]
xor eax, esp
push eax
lea eax, [esp + 0x314]
mov dword fs:[0], eax
mov eax, dword [esp + 0x324]
mov ebx, edx
xor ebp, ebp
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], ebp
mov ecx, 7
mov dword [ebx + 0x18], ecx
mov dword [ebx + 0x14], ebp
mov dword [esp + 0x18], ebx
mov word [ebx + 4], bp
mov edx, 1
mov dword [esp + 0x24], edx
mov dword [esp + 0xe4], ecx
mov dword [esp + 0xe0], ebp
mov word [esp + 0xd0], bp
mov dword [esp + 0x31c], edx
mov dword [esp + 0x100], ecx
mov dword [esp + 0xfc], ebp
mov word [esp + 0xec], bp
add eax, 0xc
mov byte [esp + 0x31c], 2
mov dword [esp + 0x20], eax
mov eax, dword [eax + 4]
mov eax, dword [eax]
mov edi, eax
mov eax, dword [esp + 0x20]
cmp eax, ebp
mov esi, dword [eax + 4]
je 0x41c222
cmp eax, eax
je 0x41c22b
call fcn.00439049
mov eax, dword [esp + 0x20]
cmp edi, esi
je 0x41c379
cmp eax, ebp
jne 0x41c240
call fcn.00439049
mov eax, dword [esp + 0x20]
cmp edi, dword [eax + 4]
jne 0x41c24a
call fcn.00439049
cmp dword [edi + 0x24], 8
jb 0x41c255
mov eax, dword [edi + 0x10]
jmp 0x41c258
lea eax, [edi + 0x10]
push 0x458588
push eax
call fcn.00438dd3
add esp, 8
test eax, eax
jne 0x41c2b3
mov edx, 0x458584
call fcn.00401e70
test eax, eax
je 0x41c2b3
mov edx, dword [esp + 0x1c]
push 0x458588
push edx
call fcn.00438dd3
add esp, 8
test eax, eax
jne 0x41c2b3
mov ecx, 0x458584
call fcn.00401f10
mov ecx, eax
lea esi, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
cmp dx, bp
jne 0x41c2a0
sub ecx, esi
sar ecx, 1
push ecx
push eax
jmp 0x41c311
mov esi, dword [esp + 0x20]
cmp edi, dword [esi + 4]
jne 0x41c2c1
call fcn.00439049
cmp dword [edi + 0x24], 8
jb 0x41c2cc
mov eax, dword [edi + 0x10]
jmp 0x41c2cf
lea eax, [edi + 0x10]
push eax
mov eax, dword [esp + 0x20]
push eax
call fcn.00438dd3
add esp, 8
test eax, eax
jne 0x41c318
cmp edi, dword [esi + 4]
jne 0x41c2eb
call fcn.00439049
cmp dword [edi + 0x40], 8
jb 0x41c2f6
mov edx, dword [edi + 0x2c]
jmp 0x41c2f9
lea edx, [edi + 0x2c]
mov eax, edx
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x41c300
sub eax, esi
sar eax, 1
push eax
push edx
mov esi, ebx
call fcn.00404160
cmp byte [edi + 0x45], 0
je 0x41c328
call fcn.00439049
jmp 0x41c213
mov eax, dword [edi + 8]
cmp byte [eax + 0x45], 0
jne 0x41c34f
mov edi, eax
mov eax, dword [edi]
cmp byte [eax + 0x45], 0
jne 0x41c213
nop
mov edi, eax
mov eax, dword [edi]
cmp byte [eax + 0x45], 0
je 0x41c340
jmp 0x41c213
mov eax, dword [edi + 4]
cmp byte [eax + 0x45], 0
jne 0x41c211
lea esp, [esp]
cmp edi, dword [eax + 8]
jne 0x41c211
mov edi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x45], 0
je 0x41c360
jmp 0x41c211
cmp dword [ebx + 0x14], ebp
jne 0x41cc8d
mov ebp, dword [esp + 0x1c]
xor bl, bl
cmp word [ebp], 0
je 0x41c4b5
movzx eax, word [ebp]
cmp ax, 0x29
je 0x41c4b5
cmp ax, 0x28
jne 0x41c3ae
mov bl, 1
jmp 0x41c4a7
test bl, bl
movzx esi, ax
je 0x41c42e
or ecx, 0xffffffff
sub ecx, dword [esp + 0xfc]
cmp ecx, 1
ja 0x41c3c9
call fcn.00436d36
mov edi, dword [esp + 0xfc]
add edi, 1
lea eax, [esp + 0xe8]
call fcn.004045f0
test al, al
je 0x41c4a7
mov eax, dword [esp + 0xec]
mov ecx, 8
cmp dword [esp + 0x100], ecx
jae 0x41c403
lea eax, [esp + 0xec]
mov edx, dword [esp + 0xfc]
mov word [eax + edx*2], si
cmp dword [esp + 0x100], ecx
mov eax, dword [esp + 0xec]
mov dword [esp + 0xfc], edi
jae 0x41c4a1
lea eax, [esp + 0xec]
jmp 0x41c4a1
or eax, 0xffffffff
sub eax, dword [esp + 0xe0]
cmp eax, 1
ja 0x41c442
call fcn.00436d36
mov edi, dword [esp + 0xe0]
add edi, 1
lea eax, [esp + 0xcc]
call fcn.004045f0
test al, al
je 0x41c4a7
mov eax, dword [esp + 0xd0]
mov ecx, 8
cmp dword [esp + 0xe4], ecx
jae 0x41c478
lea eax, [esp + 0xd0]
mov edx, dword [esp + 0xe0]
mov word [eax + edx*2], si
cmp dword [esp + 0xe4], ecx
mov eax, dword [esp + 0xd0]
mov dword [esp + 0xe0], edi
jae 0x41c4a1
lea eax, [esp + 0xd0]
mov word [eax + edi*2], 0
add ebp, 2
cmp word [ebp], 0
jne 0x41c393
lea eax, [esp + 0xcc]
call fcn.00436480
mov eax, dword [esp + 0xe0]
push str.source
mov edi, 6
lea ecx, [esp + 0xd0]
call fcn.004052b0
test eax, eax
jne 0x41c522
mov eax, dword [0x468b8c]
cmp dword [eax + 0xce0], 8
jb 0x41c4f8
mov edx, dword [eax + 0xccc]
jmp 0x41c4fe
lea edx, [eax + 0xccc]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41c503
sub eax, esi
mov esi, dword [esp + 0x18]
sar eax, 1
push eax
push edx
call fcn.00404160
jmp 0x41cc8d
mov eax, dword [esp + 0xe0]
push str.setup
mov edi, 5
lea ecx, [esp + 0xd0]
call fcn.004052b0
test eax, eax
jne 0x41c583
push 0x104
push 0x468f58
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, 0x468f58
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41c560
mov esi, dword [esp + 0x18]
sub eax, edx
sar eax, 1
push eax
push 0x468f58
call fcn.00404160
jmp 0x41cc8d
mov eax, dword [esp + 0xe0]
push str.system
mov edi, 6
lea ecx, [esp + 0xd0]
call fcn.004052b0
test eax, eax
jne 0x41c5d8
push 0x104
lea eax, [esp + 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
test eax, eax
jne 0x41c5ce
push 0x104
lea ecx, [esp + 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, dword [esp + 0x18]
push edx
jmp 0x41cc81
mov esi, str.system64
lea ecx, [esp + 0xcc]
call fcn.004106a0
test al, al
jne 0x41cc69
mov esi, str.systemcuros
lea ecx, [esp + 0xcc]
call fcn.004106a0
test al, al
jne 0x41cc69
mov esi, str.windir
lea ecx, [esp + 0xcc]
call fcn.004106a0
test al, al
je 0x41c63c
push 0x104
lea eax, [esp + 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ecx, dword [esp + 0x18]
push ecx
jmp 0x41cc81
mov esi, str.progfilescuros
lea ecx, [esp + 0xcc]
call fcn.004106a0
test al, al
je 0x41c69c
call fcn.00431070
test al, al
je 0x41c67c
push 0x104
lea edx, [esp + 0x108]
push edx
push str.ProgramW6432
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, dword [esp + 0x18]
push ecx
jmp 0x41cc81
lea eax, [esp + 0x104]
push eax
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, dword [esp + 0x18]
push ecx
jmp 0x41cc81
mov esi, str.progfilesdir
lea ecx, [esp + 0xcc]
call fcn.004106a0
test al, al
je 0x41c6cc
lea edx, [esp + 0x104]
push edx
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
jmp 0x41cc7c
mov esi, str.progfilesdir64
lea ecx, [esp + 0xcc]
call fcn.004106a0
test al, al
je 0x41c703
push 0x104
lea ecx, [esp + 0x108]
push ecx
push str.ProgramW6432
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edx, dword [esp + 0x18]
push edx
jmp 0x41cc81
mov esi, str.progdata
lea ecx, [esp + 0xcc]
call fcn.004106a0
test al, al
je 0x41c738
lea eax, [esp + 0x104]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, dword [esp + 0x18]
push ecx
jmp 0x41cc81
mov esi, str.userdata
lea ecx, [esp + 0xcc]
call fcn.004106a0
test al, al
je 0x41c768
lea edx, [esp + 0x104]
push edx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
jmp 0x41cc7c
mov esi, str.langid
lea ecx, [esp + 0xcc]
call fcn.004106a0
test al, al
je 0x41c7e2
lea ecx, [esp + 0x44]
push ecx
call fcn.00402450
mov byte [esp + 0x31c], 3
movzx edx, word [0x468c78]
push edx
lea eax, [esp + 0x50]
push eax
call fcn.00421930
lea ecx, [esp + 0x28]
lea eax, [esp + 0x44]
call fcn.00402590
push 0xffffffffffffffff
mov byte [esp + 0x320], 4
mov ecx, dword [esp + 0x1c]
push 0
call fcn.004040b0
lea esi, [esp + 0x28]
call fcn.0042d5a0
lea eax, [esp + 0x44]
mov byte [esp + 0x31c], 2
call fcn.00401a10
jmp 0x41cc8d
mov esi, str.startmenu
lea ecx, [esp + 0xcc]
call fcn.004106a0
test al, al
jne 0x41cc4c
mov esi, str.programstartmenu
lea ecx, [esp + 0xcc]
call fcn.004106a0
test al, al
jne 0x41cc4c
mov esi, str.CommonStartMenu
lea ecx, [esp + 0xcc]
call fcn.004106a0
test al, al
je 0x41c849
lea ecx, [esp + 0x104]
push ecx
push 0
push 0
push 0x16
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edx, dword [esp + 0x18]
push edx
jmp 0x41cc81
mov esi, str.commonappsdir
lea ecx, [esp + 0xcc]
call fcn.004106a0
test al, al
je 0x41c87e
lea eax, [esp + 0x104]
push eax
push 0
push 0
push 0x2b
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, dword [esp + 0x18]
push ecx
jmp 0x41cc81
mov esi, str.commonappsdir64
lea ecx, [esp + 0xcc]
call fcn.004106a0
test al, al
je 0x41c8b0
push 0x104
lea edx, [esp + 0x108]
push edx
push str.CommonProgramW6432
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
jmp 0x41cc7c
mov esi, str.commonappsdircuros
lea ecx, [esp + 0xcc]
call fcn.004106a0
test al, al
je 0x41c906
call fcn.00431070
test al, al
je 0x41c8eb
push 0x104
lea ecx, [esp + 0x108]
push ecx
push str.CommonProgramW6432
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
jmp 0x41cc7c
lea edx, [esp + 0x104]
push edx
push 0
push 0
push 0x2b
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
jmp 0x41cc7c
mov esi, str.commondesktop
lea ecx, [esp + 0xcc]
call fcn.004106a0
test al, al
je 0x41c93b
lea ecx, [esp + 0x104]
push ecx
push 0
push 0
push 0x19
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edx, dword [esp + 0x18]
push edx
jmp 0x41cc81
mov esi, 0x45a050
lea ecx, [esp + 0xcc]
call fcn.004106a0
test al, al
je 0x41c95f
mov eax, dword [esp + 0x18]
push eax
mov edx, 0x468c7a
jmp 0x41cc88
mov esi, str.getstring
lea ecx, [esp + 0xcc]
call fcn.004106a0
test al, al
je 0x41c9b8
cmp dword [esp + 0x100], 8
mov eax, dword [esp + 0xec]
jae 0x41c98c
lea eax, [esp + 0xec]
push 0x104
lea ecx, [esp + 0x108]
push ecx
push eax
call fcn.00439602
add esp, 4
mov ecx, eax
mov edx, 0x468c68
call fcn.0042d650
mov edx, dword [esp + 0x18]
push edx
jmp 0x41cc81
mov esi, str.resource
lea ecx, [esp + 0xcc]
call fcn.004106a0
test al, al
je 0x41c9de
call fcn.004122f0
mov ecx, dword [esp + 0x18]
push ecx
mov edx, eax
jmp 0x41cc88
mov esi, str.getswitch
lea ecx, [esp + 0xcc]
call fcn.004106a0
test al, al
je 0x41ca44
mov edx, dword [esp + 0xec]
mov esi, 8
cmp dword [esp + 0x100], esi
jae 0x41ca0f
lea edx, [esp + 0xec]
call fcn.00401e70
test eax, eax
je 0x41cc8d
cmp dword [esp + 0x100], esi
mov ecx, dword [esp + 0xec]
jae 0x41ca33
lea ecx, [esp + 0xec]
call fcn.00401f10
mov edx, dword [esp + 0x18]
push edx
mov edx, eax
jmp 0x41cc88
mov esi, str.getdriverversion
lea ecx, [esp + 0xcc]
call fcn.004106a0
test al, al
je 0x41cab3
mov eax, dword [esp + 0xec]
mov esi, 8
cmp dword [esp + 0x100], esi
jae 0x41ca75
lea eax, [esp + 0xec]
push eax
call fcn.00406eb0
cmp eax, 0xffffffff
jne 0x41caa2
cmp dword [esp + 0x100], esi
mov eax, dword [esp + 0xec]
jae 0x41ca97
lea eax, [esp + 0xec]
push eax
push str.Driver__s_not_found__ignoring
jmp 0x41cc38
call fcn.0040a9f0
mov ecx, dword [esp + 0x18]
push ecx
mov edx, eax
jmp 0x41cc88
mov eax, dword [esp + 0xd0]
mov edi, 8
cmp dword [esp + 0xe4], edi
jae 0x41cacf
lea eax, [esp + 0xd0]
push str.getpackageversion
push eax
call fcn.00438dd3
add esp, 8
test eax, eax
jne 0x41cb5c
mov esi, dword [esp + 0x18]
mov ecx, esi
call fcn.0042a490
test al, al
jne 0x41cc8d
push str.Version.ini_not_found_falling_back_to_driver_versioning
push 0x4676a0
mov eax, 1
call fcn.0042cad0
mov eax, dword [esp + 0xf4]
add esp, 8
cmp dword [esp + 0x100], edi
jae 0x41cb22
lea eax, [esp + 0xec]
push eax
call fcn.00406eb0
cmp eax, 0xffffffff
jne 0x41cb4f
cmp dword [esp + 0x100], edi
mov eax, dword [esp + 0xec]
jae 0x41cb44
lea eax, [esp + 0xec]
push eax
push str.Driver__s_not_found_for_versioning__ignoring
jmp 0x41cc38
call fcn.0040a9f0
push esi
mov edx, eax
jmp 0x41cc88
mov esi, str.installeddir
lea ecx, [esp + 0xcc]
call fcn.004106a0
test al, al
je 0x41cb9e
mov eax, dword [0x468b8c]
cmp dword [eax + 0xa34], edi
jb 0x41cb8e
mov edx, dword [eax + 0xa20]
mov eax, dword [esp + 0x18]
push eax
jmp 0x41cc88
lea edx, [eax + 0xa20]
mov eax, dword [esp + 0x18]
push eax
jmp 0x41cc88
mov esi, 0x45a208
lea ecx, [esp + 0xcc]
call fcn.004106a0
test al, al
je 0x41cbc4
call fcn.00430e70
mov ecx, dword [esp + 0x18]
push ecx
mov edx, eax
jmp 0x41cc88
mov esi, 0x45a210
lea ecx, [esp + 0xcc]
call fcn.004106a0
test al, al
je 0x41cbea
call fcn.00430f00
mov edx, dword [esp + 0x18]
push edx
mov edx, eax
jmp 0x41cc88
mov esi, str._logpath
lea ecx, [esp + 0xcc]
call fcn.004106a0
test al, al
je 0x41cc2e
mov edx, str.report
call fcn.00401e70
test eax, eax
je 0x41cc20
mov ecx, str.report
call fcn.00401f10
mov ecx, dword [esp + 0x18]
push ecx
mov edx, eax
jmp 0x41cc88
call fcn.00430ba0
mov ecx, dword [esp + 0x18]
push ecx
mov edx, eax
jmp 0x41cc88
mov edx, dword [esp + 0x1c]
push edx
push str.Unknown_variable___s___ignoring
push 0x4676a0
mov eax, 1
call fcn.0042cad0
add esp, 0xc
jmp 0x41cc8d
lea eax, [esp + 0x104]
push eax
push 0
push 0
push 0x17
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, dword [esp + 0x18]
push ecx
jmp 0x41cc81
push 0x104
lea edx, [esp + 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, dword [esp + 0x18]
push eax
lea edx, [esp + 0x108]
call fcn.00402b50
mov esi, 8
cmp dword [esp + 0x100], esi
jb 0x41ccab
mov ecx, dword [esp + 0xec]
push ecx
call fcn.00439059
add esp, 4
xor eax, eax
cmp dword [esp + 0xe4], esi
mov dword [esp + 0x100], 7
mov dword [esp + 0xfc], eax
mov word [esp + 0xec], ax
jb 0x41cce0
mov edx, dword [esp + 0xd0]
push edx
call fcn.00439059
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x314]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2f8]
xor ecx, esp
call fcn.0043782a
add esp, 0x30c
ret 4