Function at 0x40b430
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 0xffffffffffffffff
push 0x44dcd0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4628d0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x2c], 0
call fcn.004108c4
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b47d
push 0x80004005
call fcn.004037e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
mov byte [esp + 0x2c], 1
call fcn.004108c4
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b4ac
push 0x80004005
call fcn.004037e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx - 0xc]
mov bl, 2
mov byte [esp + 0x2c], bl
test eax, eax
jl 0x40b4ec
push 0x451cf4
push ecx
call fcn.0042c196
add esp, 8
test eax, eax
je 0x40b4ec
sub eax, dword [esp + 0x34]
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
jne 0x40b515
lea eax, [edi - 0x10]
mov byte [esp + 0x2c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b50d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
jmp 0x40b82e
push esi
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00405620
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 3
call fcn.00403dd0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x2c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b557
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc esi
push esi
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00405950
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 4
call fcn.00403dd0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x2c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b59a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
call fcn.00405450
lea ecx, [esp + 0x14]
call fcn.00405900
lea ecx, [esp + 0x18]
call fcn.00405450
lea ecx, [esp + 0x18]
call fcn.00405900
lea ecx, [esp + 0x14]
call fcn.004053f0
mov esi, dword [esp + 0x14]
cmp dword [esi - 0xc], 0
mov ebp, dword [esp + 0x18]
je 0x40b80a
cmp dword [ebp - 0xc], 0
je 0x40b80a
lea ecx, [esp + 0x14]
push str.title
push ecx
call fcn.00405050
add esp, 8
test al, al
je 0x40b612
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x18]
add ecx, 0xb8
push edx
call fcn.00403dd0
jmp 0x40b797
lea eax, [esp + 0x14]
push str.uninstall
push eax
call fcn.00405050
add esp, 8
test al, al
je 0x40b641
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x20]
add ecx, 0xa0
call fcn.0040b3b0
jmp 0x40b797
lea edx, [esp + 0x14]
push str.target
push edx
call fcn.00405050
add esp, 8
test al, al
je 0x40b706
push 0xf
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
call fcn.00405620
push str.__ProgramFiles_
push eax
call fcn.00405050
add esp, 8
lea ecx, [esp + 0x20]
mov bl, al
call fcn.00403a60
test bl, bl
je 0x40b6ed
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x40b694
xor edi, edi
jmp 0x40b697
mov edi, dword [esi + 0x20]
push 1
push 0x26
add esi, 0xc0
push 0x104
mov ecx, esi
call fcn.004037b0
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00404f00
push 0xf
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x20]
call fcn.00405950
push eax
mov ecx, esi
mov byte [esp + 0x30], 5
call fcn.00406d60
lea ecx, [esp + 0x20]
call fcn.00403a60
mov esi, dword [esp + 0x14]
jmp 0x40b797
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x18]
add ecx, 0xc0
push edx
call fcn.00403dd0
jmp 0x40b797
lea eax, [esp + 0x14]
push str.exename
push eax
call fcn.00405050
add esp, 8
test al, al
je 0x40b732
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x18]
add ecx, 0xd4
push edx
call fcn.00403dd0
jmp 0x40b797
lea eax, [esp + 0x14]
push str.group
push eax
call fcn.00405050
add esp, 8
test al, al
je 0x40b75e
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x18]
add ecx, 0xdc
push edx
call fcn.00403dd0
jmp 0x40b797
lea eax, [esp + 0x14]
push str.autostart
push eax
call fcn.00406070
add esp, 8
test al, al
je 0x40b797
lea ecx, [esp + 0x18]
push 0x451c78
push ecx
call fcn.00405050
xor edx, edx
add esp, 8
test al, al
mov eax, dword [esp + 0x1c]
setne dl
mov dword [eax + 0x9c], edx
lea eax, [ebp - 0x10]
mov byte [esp + 0x2c], 1
lea ecx, [eax + 0xc]
mov edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b7ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x2c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b7db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b803
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x40b872
lea eax, [ebp - 0x10]
mov byte [esp + 0x2c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b82b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x2c], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b84c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x2c], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b870
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4