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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a44fb
mov eax, dword fs:[0]
push eax
sub esp, 0xc60
mov eax, dword [0x630198]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xc5c], ecx
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0xc58]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc64], eax
xor eax, eax
push eax
push 0x5a98a4
mov dword [ebp - 0xc68], esi
mov dword [ebp - 0xc44], 7
mov dword [ebp - 0xc48], 0
mov word [ebp - 0xc58], ax
call fcn.00402110
push 0x208
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00447ad0
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.00447ad0
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.00447ad0
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00447ad0
push 0x208
lea eax, [ebp - 0xc40]
push 0
push eax
call fcn.00447ad0
add esp, 0x3c
lea eax, [ebp - 0x420]
push 0
push 0x2b
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [ebp - 0x420]
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x40f0f0
mov eax, dword [0x5a9ce8]
mov edx, esi
mov dword [edi], eax
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x40f105
lea edi, [ebp - 0x420]
sub edx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40f120
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x420]
add edi, 0xfffffffe
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x40f143
mov dword [edi], eax
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x40f153
lea edi, [ebp - 0x420]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40f170
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x420]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x40f193
mov eax, dword [0x5ab12c]
mov dword [ecx], eax
mov eax, dword [0x5ab130]
mov dword [ecx + 4], eax
mov ax, word [0x5ab134]
mov word [ecx + 8], ax
lea eax, [ebp - 0x420]
push eax
push 0x104
lea eax, [ebp - 0xa38]
push eax
push 0x5a98a4
push str.InstallPath
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0xa38]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f1f0
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x40f263
xor ecx, ecx
movzx eax, word [ebp + ecx - 0xa38]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x21a], ax
test ax, ax
jne 0x40f205
push dword [ebp - 0xc64]
mov ecx, dword [ebp - 0xc5c]
lea eax, [ebp - 0x218]
push eax
call fcn.00412450
test eax, eax
je 0x40f263
cmp word [ebp - 0x218], 0
jne 0x40f24a
xor ecx, ecx
jmp 0x40f47f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f253
jmp 0x40f47b
push 0x206
lea eax, [ebp - 0x82e]
push 0
push eax
call fcn.00447ad0
movups xmm0, xmmword [str.SOFTWARE_]
mov ebx, dword [ebp - 0xc68]
add esp, 0xc
mov eax, dword [0x5ab158]
mov edx, ebx
movups xmmword [ebp - 0x830], xmm0
mov dword [ebp - 0x820], eax
mov esi, edx
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40f2a0
lea edi, [ebp - 0x830]
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40f2b6
mov ecx, edx
lea eax, [ebp - 0xc60]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
push 0x20019
push 0
mov ecx, edx
lea eax, [ebp - 0x830]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40f38c
lea eax, [ebp - 0xc6c]
mov dword [ebp - 0xc6c], 0x104
push eax
lea eax, [ebp - 0xc40]
push eax
push 0
push 0
push str.InstallPath
push dword [ebp - 0xc60]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40f38c
xor ecx, ecx
nop dword [eax + eax]
movzx eax, word [ebp + ecx - 0xc40]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x21a], ax
test ax, ax
jne 0x40f330
push dword [ebp - 0xc64]
mov ecx, dword [ebp - 0xc5c]
lea eax, [ebp - 0x218]
push eax
call fcn.00412450
test eax, eax
je 0x40f38c
push dword [ebp - 0xc60]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xc58]
call fcn.00403990
mov esi, 1
jmp 0x40f49b
push dword [ebp - 0xc60]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc5c]
lea eax, [ebp - 0x628]
push 0
push 0x26
push eax
push 0
call fcn.00412860
lea edi, [ebp - 0x628]
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x40f3c0
mov eax, dword [0x5a9ce8]
mov esi, ebx
mov dword [edi], eax
mov cx, word [ebx]
add ebx, 2
test cx, cx
jne 0x40f3d5
lea edi, [ebp - 0x628]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40f3f0
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x628]
add edi, 0xfffffffe
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x40f413
mov dword [edi], eax
xor edx, edx
movzx eax, word [ebp + edx - 0x628]
lea edx, [edx + 2]
mov word [ebp + edx - 0x21a], ax
test ax, ax
jne 0x40f423
push dword [ebp - 0xc64]
mov ecx, dword [ebp - 0xc5c]
lea eax, [ebp - 0x218]
push eax
call fcn.00412450
test eax, eax
je 0x40f499
cmp word [ebp - 0x218], 0
jne 0x40f465
xor ecx, ecx
jmp 0x40f47f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f470
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0xc58]
call fcn.00402110
mov esi, 1
jmp 0x40f49b
xor esi, esi
mov ecx, dword [ebp - 0xc44]
cmp ecx, 8
jb 0x40f4b9
inc ecx
push ecx
push dword [ebp - 0xc58]
lea ecx, [ebp - 0xc58]
call fcn.00402260
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043c551
mov esp, ebp
pop ebp
ret 0xc