Function at 0x410900
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.004b9ba0
add esp, 4
cmp word [esp + 0x5c], 0
je 0x410d16
jmp 0x410970
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov esi, eax
cmp esi, 2
jne 0x4109a3
mov ax, word [edi]
cmp ax, 0x41
je 0x41098d
cmp ax, 0x42
jne 0x4109a3
push edi
call fcn.00532b98
lea eax, [edi + eax*2 + 2]
add esp, 4
mov dword [esp + 0x14], eax
jmp 0x410d08
mov eax, dword [0x547570]
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x48], eax
call fcn.00532b98
add esp, 4
cmp esi, 3
mov dword [esp + 0x54], eax
je 0x4109d5
cmp esi, 4
je 0x4109d5
cmp esi, 2
je 0x4109d5
cmp esi, 6
jne 0x410ca6
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 [0x547570]
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 0x410a61
mov edx, dword [eax - 4]
test edx, edx
jge 0x410aa8
mov ebp, dword [eax - 8]
test ebp, ebp
jle 0x410a6a
mov ecx, ebp
push ecx
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x410aa8
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 [0x547570]
mov ecx, str.SoftwareOK_
test ecx, ecx
mov dword [esp + 0x30], eax
jne 0x410ad0
xor eax, eax
jmp 0x410adb
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 [0x547570]
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 0x410b9c
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x410b66
mov edx, dword [0x547574]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x410b6d
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x410b7d
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00405870
jmp 0x410b98
lea ecx, [esp + 0x10]
call fcn.004124c0
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 [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x410bc7
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x410bc7
mov edx, dword [esp + 0x34]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x28]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x410bf6
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x410bf6
mov edx, dword [esp + 0x28]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov ecx, dword [esp + 0x10]
xor eax, eax
mov edx, dword [ecx - 0xc]
lea ebp, [ecx - 0xc]
cmp edx, 1
jg 0x410c0e
mov edx, dword [ecx - 4]
test edx, edx
jge 0x410c51
mov ebx, dword [ecx - 8]
test ebx, ebx
jle 0x410c17
mov eax, ebx
push eax
lea ecx, [esp + 0x14]
call fcn.00405530
test eax, eax
je 0x410c55
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 [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x410ca2
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x410ca2
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00532222
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 [0x547574]
lea edx, [esi - 0xc]
mov dword [esp + 0x14], ecx
cmp edx, eax
je 0x410cd9
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x410cd9
push esi
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x1c]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x410d08
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x410d08
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x14]
cmp word [eax], 0
jne 0x41096c
mov eax, dword [0x547570]
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 0x410d38
cmp dword [eax - 4], ecx
jge 0x410d79
mov ebp, dword [eax - 8]
cmp ebp, ecx
jle 0x410d41
mov ecx, ebp
push ecx
lea ecx, [esp + 0x24]
call fcn.00405530
test eax, eax
je 0x410d79
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 [0x547570]
mov eax, 0x548318
mov dword [esp + 0x14], edx
test eax, eax
je 0x410df8
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x410df8
push esi
lea ecx, [esp + 0x18]
call fcn.00405530
test eax, eax
je 0x410df8
mov ecx, dword [esp + 0x14]
inc esi
push esi
push 0x548318
push ecx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x14]
push 0xffffffffffffffff
call fcn.00405bb0
mov edx, dword [0x547570]
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 [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x410e75
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x410e75
mov edx, dword [esp + 0x2c]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x410ea4
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x410ea4
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, 0x400
mov edx, dword [eax - 0xc]
lea ebp, [eax - 0xc]
cmp edx, 1
jg 0x410ebd
cmp dword [eax - 4], ecx
jge 0x410efe
mov ebx, dword [eax - 8]
cmp ebx, ecx
jle 0x410ec6
mov ecx, ebx
push ecx
lea ecx, [esp + 0x1c]
call fcn.00405530
test eax, eax
je 0x410efe
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, 0x548318
mov word [edx + eax*2], 0
mov eax, dword [0x547570]
test ecx, ecx
mov dword [esp + 0x1c], eax
je 0x410f7c
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x410f7c
push esi
lea ecx, [esp + 0x20]
call fcn.00405530
test eax, eax
je 0x410f7c
mov edx, dword [esp + 0x1c]
inc esi
push esi
push 0x548318
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.00412c10
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.00413470
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.00413470
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 [0x5550a8], 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 [0x5550a8], eax
mov edi, reloc.SHELL32.dll_SHChangeNotifyRegister
jne 0x411043
mov edi, SHChangeNotifyRegister
push 0x55e100
lea eax, [esp + 0x50]
push 0x555098
push eax
mov dword [esp + 0x54], 0
call fcn.00412c10
mov eax, dword [eax]
push 0x20019
push eax
push edi
lea ecx, [esp + 0x54]
call fcn.004098c0
lea ecx, [esp + 0x4c]
call fcn.00405700
mov ecx, dword [0x547570]
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.00413470
push eax
lea ecx, [esp + 0x54]
call fcn.004111e0
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.004ba610
mov edx, dword [esp + 0x2c]
mov edi, 1
add esp, 8
cmp dword [edx - 8], edi
jle 0x41112c
push 0x100
lea ecx, [esp + 0x28]
call fcn.00413470
push eax
mov ecx, ebx
call fcn.004111b0
push 0xffffffffffffffff
lea ecx, [esp + 0x28]
call fcn.00405bb0
mov eax, dword [esp + 0x24]
cmp dword [eax - 8], edi
jle 0x41112c
push 0x100
lea ecx, [esp + 0x28]
call fcn.00413470
push eax
mov ecx, ebx
call fcn.004111b0
push 0xffffffffffffffff
lea ecx, [esp + 0x28]
call fcn.00405bb0
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx - 8]
test eax, eax
je 0x411169
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.00413470
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.004098a0
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