Function at 0x410ab0
Capabilities:
Get common file path
Get disk information
Get program files directory

Disassembly:
sub esp, 0x24c
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x5e]
mov word [esp + 0x5c], 0
mov dword [esp + 0x4c], esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x5c]
lea edi, [esp + 0x5c]
push eax
push 0xff
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ecx, dword [esi + 4]
push 0x3ea
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
lea edx, [esp + 0x38]
mov dword [esp + 0x3c], eax
push edx
call fcn.004b8ae0
add esp, 4
cmp word [esp + 0x5c], 0
je 0x410ec6
jmp 0x410b20
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov esi, eax
cmp esi, 2
jne 0x410b53
mov ax, word [edi]
cmp ax, 0x41
je 0x410b3d
cmp ax, 0x42
jne 0x410b53
push edi
call fcn.005320a8
lea eax, [edi + eax*2 + 2]
add esp, 4
mov dword [esp + 0x14], eax
jmp 0x410eb8
mov eax, dword [0x546560]
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x48], eax
call fcn.005320a8
add esp, 4
cmp esi, 3
mov dword [esp + 0x54], eax
je 0x410b85
cmp esi, 4
je 0x410b85
cmp esi, 2
je 0x410b85
cmp esi, 6
jne 0x410e56
xor ecx, ecx
lea edx, [esp + 0x1c]
mov cx, word [edi]
mov word [edi + 2], 0
push ecx
push str._C:_
push edx
call fcn.00405cb0
mov eax, dword [esp + 0x48]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 0xc
push 0
push 0
push 0x146
push eax
call edi
mov ecx, dword [0x546560]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], ecx
push eax
lea ecx, [esp + 0x34]
mov edx, dword [eax - 8]
mov eax, dword [esp + 0x20]
push edx
push eax
mov eax, dword [eax - 8]
push eax
call fcn.004059f0
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x14]
call fcn.00405440
lea ecx, [esp + 0x30]
call fcn.00405700
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov edx, dword [eax - 0xc]
lea ebx, [eax - 0xc]
cmp edx, 1
jg 0x410c11
mov edx, dword [eax - 4]
test edx, edx
jge 0x410c58
mov ebp, dword [eax - 8]
test ebp, ebp
jle 0x410c1a
mov ecx, ebp
push ecx
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x410c58
mov edi, dword [esp + 0x10]
lea ecx, [ebp + ebp + 2]
mov edx, ecx
lea esi, [ebx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
mov dword [eax - 8], ebp
call fcn.00405590
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x3c]
push eax
push ecx
push 0x14a
push edx
call edi
mov eax, dword [0x546560]
mov ecx, str.SoftwareOK_
test ecx, ecx
mov dword [esp + 0x30], eax
jne 0x410c80
xor eax, eax
jmp 0x410c8b
push str.SoftwareOK_
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push str.SoftwareOK_
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x38]
push eax
mov edx, dword [eax - 8]
push edx
call fcn.004059f0
lea eax, [esp + 0x30]
lea ecx, [esp + 0x28]
push eax
call fcn.00405440
lea ecx, [esp + 0x30]
call fcn.00405700
mov ecx, dword [0x546560]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x2c], ecx
push eax
mov edx, dword [eax - 8]
mov eax, dword [esp + 0x2c]
push edx
push eax
mov eax, dword [eax - 8]
lea ecx, [esp + 0x38]
push eax
call fcn.004059f0
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x38]
call fcn.00405440
lea ecx, [esp + 0x2c]
call fcn.00405700
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
cmp ecx, eax
je 0x410d4c
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x410d16
mov edx, dword [0x546564]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x410d1d
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x410d2d
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00405870
jmp 0x410d48
lea ecx, [esp + 0x10]
call fcn.00412670
mov eax, dword [esp + 0x34]
mov dword [esp + 0x10], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x34]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x410d77
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x410d77
mov edx, dword [esp + 0x34]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x28]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x410da6
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x410da6
mov edx, dword [esp + 0x28]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov ecx, dword [esp + 0x10]
xor eax, eax
mov edx, dword [ecx - 0xc]
lea ebp, [ecx - 0xc]
cmp edx, 1
jg 0x410dbe
mov edx, dword [ecx - 4]
test edx, edx
jge 0x410e01
mov ebx, dword [ecx - 8]
test ebx, ebx
jle 0x410dc7
mov eax, ebx
push eax
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x410e05
mov edi, dword [esp + 0x10]
lea ecx, [ebx + ebx + 2]
mov eax, ecx
lea esi, [ebp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov dword [ecx - 8], ebx
call fcn.00405590
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x50]
mov esi, dword [esp + 0x3c]
push eax
push edx
push 0x14a
push esi
call edi
push 0
push 0
push 0x146
push esi
call edi
mov eax, dword [esp + 0x10]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x410e52
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x410e52
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x54]
mov esi, dword [esp + 0x44]
lea ecx, [edi + eax*2 + 2]
mov eax, dword [0x546564]
lea edx, [esi - 0xc]
mov dword [esp + 0x14], ecx
cmp edx, eax
je 0x410e89
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x410e89
push esi
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x1c]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x410eb8
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x410eb8
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x14]
cmp word [eax], 0
jne 0x410b1c
mov eax, dword [0x546560]
mov ecx, 0x400
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov edx, dword [eax - 0xc]
lea ebx, [eax - 0xc]
cmp edx, 1
jg 0x410ee8
cmp dword [eax - 4], ecx
jge 0x410f29
mov ebp, dword [eax - 8]
cmp ebp, ecx
jle 0x410ef1
mov ecx, ebp
push ecx
lea ecx, [esp + 0x24]
call fcn.00405530
test eax, eax
je 0x410f29
mov edi, dword [esp + 0x20]
lea ecx, [ebp + ebp + 2]
mov edx, ecx
lea esi, [ebx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x24]
mov dword [eax - 8], ebp
call fcn.00405590
mov eax, dword [esp + 0x20]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp + 0x20]
call fcn.004055c0
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esp + 0x20]
mov dword [edx - 8], eax
mov ecx, dword [esp + 0x20]
mov word [ecx + eax*2], 0
mov edx, dword [0x546560]
mov eax, 0x547308
mov dword [esp + 0x14], edx
test eax, eax
je 0x410fa8
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x410fa8
push esi
lea ecx, [esp + 0x18]
call fcn.00405530
test eax, eax
je 0x410fa8
mov ecx, dword [esp + 0x14]
inc esi
push esi
push 0x547308
push ecx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x14]
push 0xffffffffffffffff
call fcn.00405bb0
mov edx, dword [0x546560]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x28], edx
push eax
mov eax, dword [eax - 8]
push eax
mov eax, dword [esp + 0x1c]
push eax
mov ecx, dword [eax - 8]
push ecx
lea ecx, [esp + 0x38]
call fcn.004059f0
lea edx, [esp + 0x28]
lea ecx, [esp + 0x2c]
push edx
call fcn.00405440
lea ecx, [esp + 0x28]
call fcn.00405700
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [eax - 8]
push eax
call fcn.00405a90
mov eax, dword [esp + 0x2c]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x411025
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x411025
mov edx, dword [esp + 0x2c]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x411054
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x411054
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, 0x400
mov edx, dword [eax - 0xc]
lea ebp, [eax - 0xc]
cmp edx, 1
jg 0x41106d
cmp dword [eax - 4], ecx
jge 0x4110ae
mov ebx, dword [eax - 8]
cmp ebx, ecx
jle 0x411076
mov ecx, ebx
push ecx
lea ecx, [esp + 0x1c]
call fcn.00405530
test eax, eax
je 0x4110ae
mov edi, dword [esp + 0x18]
lea ecx, [ebx + ebx + 2]
mov eax, ecx
lea esi, [ebp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov dword [ecx - 8], ebx
call fcn.00405590
mov eax, dword [esp + 0x18]
push 0
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp + 0x18]
call fcn.004055c0
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x18]
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x18]
mov ecx, 0x547308
mov word [edx + eax*2], 0
mov eax, dword [0x546560]
test ecx, ecx
mov dword [esp + 0x1c], eax
je 0x41112c
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x41112c
push esi
lea ecx, [esp + 0x20]
call fcn.00405530
test eax, eax
je 0x41112c
mov edx, dword [esp + 0x1c]
inc esi
push esi
push 0x547308
push edx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x1c]
push 0xffffffffffffffff
call fcn.00405bb0
lea eax, [esp + 0x38]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x48]
push ecx
push edx
call fcn.00412dc0
mov eax, dword [eax]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [eax - 8]
push eax
call fcn.00405a90
lea ecx, [esp + 0x44]
call fcn.00405700
lea ecx, [esp + 0x1c]
call fcn.00405700
push 0
lea ecx, [esp + 0x1c]
call fcn.00413620
mov edi, dword [esp + 0x3c]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 0
push 0x14a
push edi
call esi
push 0
lea ecx, [esp + 0x24]
call fcn.00413620
push eax
push 0
push 0x14a
push edi
call esi
mov ebx, dword [esp + 0x4c]
mov ebp, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x4b1
mov ecx, dword [ebx + 4]
push ecx
call ebp
push 0
push 0
push 0xf0
push eax
call esi
push 0
push eax
push 0x14e
push edi
mov dword [0x554038], eax
call esi
mov edx, dword [ebx + 4]
push 0x4b1
push edx
call ebp
push 0
push 0
push 0xf0
push eax
call esi
test eax, eax
mov dword [0x554038], eax
mov edi, reloc.SHELL32.dll_SHChangeNotifyRegister
jne 0x4111f3
mov edi, SHChangeNotifyDeregister
push 0x55d048
lea eax, [esp + 0x50]
push 0x554028
push eax
mov dword [esp + 0x54], 0
call fcn.00412dc0
mov eax, dword [eax]
push 0x20019
push eax
push edi
lea ecx, [esp + 0x54]
call fcn.00409920
lea ecx, [esp + 0x4c]
call fcn.00405700
mov ecx, dword [0x546560]
lea edx, [esp + 0x58]
push edx
mov dword [esp + 0x44], ecx
push str.UninstallString
push 0x400
lea ecx, [esp + 0x4c]
mov dword [esp + 0x64], 0x400
call fcn.00413620
push eax
lea ecx, [esp + 0x54]
call fcn.00411390
push 0xffffffffffffffff
lea ecx, [esp + 0x44]
call fcn.00405bb0
push ecx
lea eax, [esp + 0x44]
mov ecx, esp
push eax
call fcn.00405440
lea ecx, [esp + 0x28]
push ecx
call fcn.004b9550
mov edx, dword [esp + 0x2c]
mov edi, 1
add esp, 8
cmp dword [edx - 8], edi
jle 0x4112dc
push 0x100
lea ecx, [esp + 0x28]
call fcn.00413620
push eax
mov ecx, ebx
call fcn.00411360
push 0xffffffffffffffff
lea ecx, [esp + 0x28]
call fcn.00405bb0
mov eax, dword [esp + 0x24]
cmp dword [eax - 8], edi
jle 0x4112dc
push 0x100
lea ecx, [esp + 0x28]
call fcn.00413620
push eax
mov ecx, ebx
call fcn.00411360
push 0xffffffffffffffff
lea ecx, [esp + 0x28]
call fcn.00405bb0
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx - 8]
test eax, eax
je 0x411319
mov ebx, dword [esp + 0x3c]
push 0
push 0
push 0x146
push ebx
call esi
push 0
lea ecx, [esp + 0x28]
mov edi, eax
call fcn.00413620
push eax
push edi
push 0x14a
push ebx
call esi
push 0
push edi
push 0x14e
push ebx
call esi
lea ecx, [esp + 0x24]
call fcn.00405700
lea ecx, [esp + 0x40]
call fcn.00405700
lea ecx, [esp + 0x48]
call fcn.00409900
lea ecx, [esp + 0x18]
call fcn.00405700
lea ecx, [esp + 0x20]
call fcn.00405700
lea ecx, [esp + 0x38]
call fcn.00405700
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24c
ret