Function at 0x408930
Capabilities:
Check if file exists
Get common file path
Query or enumerate registry value
Read .ini file

Disassembly:
mov eax, 0x1058
call fcn.0043b980
mov eax, dword [0x574674]
xor eax, esp
mov dword [esp + 0x1054], eax
mov eax, dword [esp + 0x105c]
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x206
lea ecx, [esp + 0x63e]
push ebx
push ecx
mov dword [esp + 0x20], eax
mov word [esp + 0x644], bx
call fcn.00437ec0
add esp, 0xc
push 0x206
lea edx, [esp + 0xa4e]
push ebx
push edx
mov word [esp + 0xa54], bx
call fcn.00437ec0
add esp, 0xc
push 0x206
lea eax, [esp + 0x846]
push ebx
push eax
mov word [esp + 0x84c], bx
call fcn.00437ec0
add esp, 0xc
push 0x206
lea ecx, [esp + 0x22e]
push ebx
push ecx
mov word [esp + 0x234], bx
call fcn.00437ec0
add esp, 0xc
push 0x206
lea edx, [esp + 0x26]
push ebx
push edx
mov word [esp + 0x2c], bx
call fcn.00437ec0
add esp, 0xc
push 0x206
lea eax, [esp + 0xe5e]
push ebx
push eax
mov word [esp + 0xe64], bx
call fcn.00437ec0
add esp, 0xc
push ebx
push 0x2b
lea ecx, [esp + 0x640]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [esp + 0x638]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x408a23
mov edx, dword [0x566fd4]
mov dword [edi], edx
lea edi, [esp + 0x638]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x408a41
mov ecx, 8
mov esi, 0x566fd8
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x638]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x408a63
lea eax, [esp + 0x638]
mov dword [edi], edx
add eax, 0xfffffffe
jmp 0x408a80
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x408a80
mov edx, dword [str.SmartCloud]
mov ecx, dword [0x566b3c]
mov dword [eax], edx
mov edx, dword [0x566b40]
mov dword [eax + 4], ecx
mov ecx, dword [0x566b44]
mov dword [eax + 8], edx
mov edx, dword [0x566b48]
mov dword [eax + 0xc], ecx
mov cx, word [0x566b4c]
mov dword [eax + 0x10], edx
mov word [eax + 0x14], cx
lea eax, [esp + 0x638]
add eax, 0xfffffffe
lea ecx, [ecx]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x408ad0
mov edx, dword [str..ini]
mov ecx, dword [0x566ffc]
mov dword [eax], edx
mov dx, word [0x567000]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
lea eax, [esp + 0x638]
push eax
push 0x104
lea ecx, [esp + 0xa50]
push ecx
push 0x566d2c
push str.InstallPath
push str.Globals
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
jmp 0x408b30
movzx ecx, word [esp + eax + 0xa48]
mov word [esp + eax + 0x228], cx
add eax, 2
cmp cx, bx
jne 0x408b30
lea eax, [esp + 0x228]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x408b52
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
sub eax, edx
sar eax, 1
cmp eax, ebx
jle 0x408cd0
xor eax, eax
jmp 0x408b80
movzx ecx, word [esp + eax + 0x228]
mov word [esp + eax + 0x20], cx
add eax, 2
cmp cx, bx
jne 0x408b80
lea edx, [esp + 0x20]
push edx
call ebp
test eax, eax
je 0x408cd0
lea eax, [esp + 0x20]
add eax, 0xfffffffe
jmp 0x408bb0
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x408bb0
mov ecx, dword [0x5670c0]
mov edx, dword [0x5670c4]
mov dword [eax], ecx
mov ecx, dword [0x5670c8]
mov dword [eax + 4], edx
mov edx, dword [0x5670cc]
mov dword [eax + 8], ecx
mov ecx, dword [0x5670d0]
mov dword [eax + 0xc], edx
mov edx, dword [0x5670d4]
lea edi, [esp + 0x20]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
add edi, 0xfffffffe
jmp 0x408c00
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x408c00
mov eax, dword [0x566fd4]
push 0x206
lea ecx, [esp + 0x436]
push ebx
push ecx
mov dword [edi], eax
mov word [esp + 0x43c], bx
call fcn.00437ec0
add esp, 0xc
xor eax, eax
jmp 0x408c40
movzx ecx, word [esp + eax + 0x20]
mov word [esp + eax + 0x430], cx
add eax, 2
cmp cx, bx
jne 0x408c40
lea edi, [esp + 0x430]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x408c60
mov ecx, 6
mov esi, str.SCConfig.exe
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x430]
push edx
movsw word es:[edi], word [esi]
call ebp
test eax, eax
je 0x408cd0
lea eax, [esp + 0x228]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x408c92
mov esi, dword [esp + 0x14]
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x22c]
push eax
lea ecx, [esi + 0x7c]
call fcn.00402110
lea eax, [esp + 0x20]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x408cc0
jmp 0x4092fb
push 0x206
lea edx, [esp + 0xc56]
push ebx
push edx
mov word [esp + 0xc5c], bx
call fcn.00437ec0
add esp, 0xc
xor eax, eax
movzx ecx, word [eax + str.SOFTWARE_]
mov word [esp + eax + 0xc50], cx
add eax, 2
cmp cx, bx
jne 0x408cf0
lea edi, [esp + 0xc50]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x408d11
lea eax, [esp + 0x18]
push eax
push 0x20019
mov ecx, 8
mov esi, 0x566fd8
rep movsd dword es:[edi], dword [esi]
push ebx
lea ecx, [esp + 0xc5c]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x408edc
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0xe5c]
push eax
push ebx
push ebx
push str.InstallPath
push ecx
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408edc
mov edi, edi
movzx ecx, word [esp + eax + 0xe58]
mov word [esp + eax + 0x228], cx
add eax, 2
cmp cx, bx
jne 0x408d80
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0x228]
mov word [esp + eax + 0x20], cx
add eax, 2
cmp cx, bx
jne 0x408da0
lea edx, [esp + 0x20]
push edx
call ebp
test eax, eax
je 0x408edc
lea eax, [esp + 0x20]
add eax, 0xfffffffe
jmp 0x408dd0
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x408dd0
mov ecx, dword [0x5670c0]
mov edx, dword [0x5670c4]
mov dword [eax], ecx
mov ecx, dword [0x5670c8]
mov dword [eax + 4], edx
mov edx, dword [0x5670cc]
mov dword [eax + 8], ecx
mov ecx, dword [0x5670d0]
mov dword [eax + 0xc], edx
mov edx, dword [0x5670d4]
lea edi, [esp + 0x20]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
add edi, 0xfffffffe
jmp 0x408e20
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x408e20
mov eax, dword [0x566fd4]
push 0x206
lea ecx, [esp + 0x436]
push ebx
push ecx
mov dword [edi], eax
mov word [esp + 0x43c], bx
call fcn.00437ec0
add esp, 0xc
xor eax, eax
jmp 0x408e60
movzx ecx, word [esp + eax + 0x20]
mov word [esp + eax + 0x430], cx
add eax, 2
cmp cx, bx
jne 0x408e60
lea edi, [esp + 0x430]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x408e80
mov ecx, 6
mov esi, str.SCConfig.exe
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x430]
push edx
movsw word es:[edi], word [esi]
call ebp
test eax, eax
je 0x408edc
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x228]
push ecx
lea ecx, [esi + 0x7c]
call fcn.004062f0
lea edx, [esp + 0x20]
push edx
lea ecx, [esi + 0xb4]
call fcn.004062f0
jmp 0x409310
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 0x26
lea esi, [esp + 0x840]
call fcn.00408210
mov edi, esi
add edi, 0xfffffffe
lea ecx, [ecx]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x408f00
mov edx, dword [0x566fd4]
mov dword [edi], edx
lea edi, [esp + 0x840]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x408f20
mov ecx, 8
mov esi, 0x566fd8
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x840]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x408f42
mov dword [edi], edx
xor eax, eax
jmp 0x408f60
movzx ecx, word [esp + eax + 0x840]
mov word [esp + eax + 0x228], cx
add eax, 2
cmp cx, bx
jne 0x408f60
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0x228]
mov word [esp + eax + 0x20], cx
add eax, 2
cmp cx, bx
jne 0x408f80
lea ecx, [esp + 0x20]
push ecx
call ebp
test eax, eax
je 0x4090da
lea eax, [esp + 0x20]
add eax, 0xfffffffe
jmp 0x408fb0
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x408fb0
mov edx, dword [0x5670c0]
mov ecx, dword [0x5670c4]
mov dword [eax], edx
mov edx, dword [0x5670c8]
mov dword [eax + 4], ecx
mov ecx, dword [0x5670cc]
mov dword [eax + 8], edx
mov edx, dword [0x5670d0]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x5670d4]
lea edi, [esp + 0x20]
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], ecx
add edi, 0xfffffffe
jmp 0x409000
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x409000
mov edx, dword [0x566fd4]
push 0x206
lea eax, [esp + 0x436]
push ebx
push eax
mov dword [edi], edx
mov word [esp + 0x43c], bx
call fcn.00437ec0
add esp, 0xc
xor eax, eax
jmp 0x409040
movzx ecx, word [esp + eax + 0x20]
mov word [esp + eax + 0x430], cx
add eax, 2
cmp cx, bx
jne 0x409040
lea edi, [esp + 0x430]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x409060
mov ecx, 6
mov esi, str.SCConfig.exe
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x430]
push ecx
movsw word es:[edi], word [esi]
call ebp
test eax, eax
je 0x4090da
lea eax, [esp + 0x228]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x409092
mov esi, dword [esp + 0x14]
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x22c]
push edx
lea ecx, [esi + 0x7c]
call fcn.00402110
lea eax, [esp + 0x20]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4090c0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x24]
push eax
jmp 0x409305
lea eax, [esp + 0xa48]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4090e4
sub eax, edx
sar eax, 1
cmp eax, ebx
jle 0x409200
lea ecx, [esp + 0xa48]
push ecx
call ebp
test eax, eax
je 0x409200
xor eax, eax
nop
movzx ecx, word [esp + eax + 0xa48]
mov word [esp + eax + 0x228], cx
add eax, 2
cmp cx, bx
jne 0x409110
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0x228]
mov word [esp + eax + 0x20], cx
add eax, 2
cmp cx, bx
jne 0x409130
lea eax, [esp + 0x20]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x409150
mov edx, dword [0x5670c0]
mov ecx, dword [0x5670c4]
mov dword [eax], edx
mov edx, dword [0x5670c8]
mov dword [eax + 4], ecx
mov ecx, dword [0x5670cc]
mov dword [eax + 8], edx
mov edx, dword [0x5670d0]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x5670d4]
lea edi, [esp + 0x20]
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], ecx
add edi, 0xfffffffe
jmp 0x4091a0
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x4091a0
mov edx, dword [0x566fd4]
lea eax, [esp + 0x228]
mov dword [edi], edx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4091c0
mov esi, dword [esp + 0x14]
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x22c]
push eax
lea ecx, [esi + 0x7c]
call fcn.00402110
lea eax, [esp + 0x20]
lea edx, [eax + 2]
jmp 0x4091f0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4091f0
jmp 0x4092fb
xor eax, eax
jmp 0x409210
movzx ecx, word [esp + eax + 0x840]
mov word [esp + eax + 0x228], cx
add eax, 2
cmp cx, bx
jne 0x409210
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0x228]
mov word [esp + eax + 0x20], cx
add eax, 2
cmp cx, bx
jne 0x409230
lea eax, [esp + 0x20]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x409250
mov edx, dword [0x5670c0]
mov ecx, dword [0x5670c4]
mov dword [eax], edx
mov edx, dword [0x5670c8]
mov dword [eax + 4], ecx
mov ecx, dword [0x5670cc]
mov dword [eax + 8], edx
mov edx, dword [0x5670d0]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x5670d4]
lea edi, [esp + 0x20]
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], ecx
add edi, 0xfffffffe
jmp 0x4092a0
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x4092a0
mov edx, dword [0x566fd4]
lea eax, [esp + 0x228]
mov dword [edi], edx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4092c0
mov esi, dword [esp + 0x14]
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x22c]
push eax
lea ecx, [esi + 0x7c]
call fcn.00402110
lea eax, [esp + 0x20]
lea edx, [eax + 2]
jmp 0x4092f0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4092f0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esi + 0xb4]
call fcn.00402110
mov ecx, dword [esp + 0x1064]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004338df
add esp, 0x1058
ret 4