Function at 0x440040
Capabilities:
Get common file path
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e8020
mov eax, dword fs:[0]
push eax
sub esp, 0xe78
mov eax, dword [0x6a8a44]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xe64], ecx
push 0x5f0c48
lea ecx, [ebp - 0xe60]
call fcn.00402790
mov dword [ebp - 4], 0
xor eax, eax
mov word [ebp - 0x420], ax
push 0x206
push 0
lea ecx, [ebp - 0x41e]
push ecx
call fcn.005be3a0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x830], dx
push 0x206
push 0
lea eax, [ebp - 0x82e]
push eax
call fcn.005be3a0
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x628], cx
push 0x206
push 0
lea edx, [ebp - 0x626]
push edx
call fcn.005be3a0
add esp, 0xc
xor eax, eax
mov word [ebp - 0xe48], ax
push 0x206
push 0
lea ecx, [ebp - 0xe46]
push ecx
call fcn.005be3a0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x218], dx
push 0x206
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.005be3a0
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0xc40], cx
push 0x206
push 0
lea edx, [ebp - 0xc3e]
push edx
call fcn.005be3a0
add esp, 0xc
mov dword [ebp - 0xe70], 0
push 0
push 0x2b
lea eax, [ebp - 0x420]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x5f0c4c
lea ecx, [ebp - 0x420]
push ecx
call fcn.005c7787
add esp, 8
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x420]
push eax
call fcn.005c7787
add esp, 8
push 0x5f0c50
lea ecx, [ebp - 0x420]
push ecx
call fcn.005c7787
add esp, 8
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x420]
push eax
call fcn.005c7787
add esp, 8
push 0x5f0c54
lea ecx, [ebp - 0x420]
push ecx
call fcn.005c7787
add esp, 8
lea edx, [ebp - 0x420]
push edx
push 0x104
lea eax, [ebp - 0x830]
push eax
push 0x5f0c60
push 0x5f0c64
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x830]
push ecx
call fcn.005c1d51
add esp, 4
mov dword [ebp - 0xe70], eax
cmp dword [ebp - 0xe70], 0
jle 0x440270
lea edx, [ebp - 0x830]
push edx
lea eax, [ebp - 0x218]
push eax
call fcn.005c5a4b
add esp, 8
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x218]
push edx
mov ecx, dword [ebp - 0xe64]
call fcn.00440780
test eax, eax
je 0x440270
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xe60]
call fcn.004028a0
mov dword [ebp - 0xe74], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe60]
call fcn.00402750
mov eax, dword [ebp - 0xe74]
jmp 0x440484
xor ecx, ecx
mov word [ebp - 0xa38], cx
push 0x206
push 0
lea edx, [ebp - 0xa36]
push edx
call fcn.005be3a0
add esp, 0xc
push str.SOFTWARE_
lea eax, [ebp - 0xa38]
push eax
call fcn.005c5a4b
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0xa38]
push edx
call fcn.005c7787
add esp, 8
lea eax, [ebp - 0xe6c]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0xa38]
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xe68], eax
cmp dword [ebp - 0xe68], 0
jne 0x44039c
mov dword [ebp - 0xe78], 0x104
lea edx, [ebp - 0xe78]
push edx
lea eax, [ebp - 0xc40]
push eax
push 0
push 0
push str.InstallPath
mov ecx, dword [ebp - 0xe6c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xe68], eax
cmp dword [ebp - 0xe68], 0
jne 0x44039c
lea edx, [ebp - 0xc40]
push edx
lea eax, [ebp - 0x218]
push eax
call fcn.005c5a4b
add esp, 8
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x218]
push edx
mov ecx, dword [ebp - 0xe64]
call fcn.00440780
test eax, eax
je 0x44039c
mov eax, dword [ebp - 0xe6c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0xe60]
call fcn.004028a0
mov dword [ebp - 0xe7c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe60]
call fcn.00402750
mov eax, dword [ebp - 0xe7c]
jmp 0x440484
mov edx, dword [ebp - 0xe6c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0x26
lea eax, [ebp - 0x628]
push eax
push 0
mov ecx, dword [ebp - 0xe64]
call fcn.00440640
push 0x5f0cb8
lea ecx, [ebp - 0x628]
push ecx
call fcn.005c7787
add esp, 8
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x628]
push eax
call fcn.005c7787
add esp, 8
push 0x5f0cbc
lea ecx, [ebp - 0x628]
push ecx
call fcn.005c7787
add esp, 8
lea edx, [ebp - 0x628]
push edx
lea eax, [ebp - 0x218]
push eax
call fcn.005c5a4b
add esp, 8
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x218]
push edx
mov ecx, dword [ebp - 0xe64]
call fcn.00440780
test eax, eax
je 0x440462
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xe60]
call fcn.004028a0
mov dword [ebp - 0xe80], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe60]
call fcn.00402750
mov eax, dword [ebp - 0xe80]
jmp 0x440484
mov dword [ebp - 0xe84], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe60]
call fcn.00402750
mov eax, dword [ebp - 0xe84]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005ad281
mov esp, ebp
pop ebp
ret 0xc