Function at 0x4151d0
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 0x5a6e4b
mov eax, dword fs:[0]
push eax
sub esp, 0xc68
mov eax, dword [0x632a40]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xc68], ecx
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0xc5c]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc64], eax
xor eax, eax
push eax
push 0x623880
mov dword [ebp - 0xc6c], esi
mov dword [ebp - 0xc48], 7
mov dword [ebp - 0xc4c], 0
mov word [ebp - 0xc5c], ax
call fcn.00404db0
push 0x208
lea eax, [ebp - 0x424]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.0057ff70
add esp, 0xc
lea eax, [ebp - 0xa3c]
push 0x208
push 0
push eax
call fcn.0057ff70
add esp, 0xc
lea eax, [ebp - 0x62c]
push 0x208
push 0
push eax
call fcn.0057ff70
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x208
push 0
push eax
call fcn.0057ff70
add esp, 0xc
lea eax, [ebp - 0xc44]
push 0x208
push 0
push eax
call fcn.0057ff70
add esp, 0xc
lea eax, [ebp - 0x424]
push 0
push 0x2b
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [ebp - 0x424]
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4152e0
mov eax, dword [0x623ae4]
mov edx, esi
mov dword [edi], eax
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4152f5
lea edi, [ebp - 0x424]
sub edx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x415310
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 - 0x424]
add edi, 0xfffffffe
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x415333
mov dword [edi], eax
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x415343
lea edi, [ebp - 0x424]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x415360
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 - 0x424]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x415383
mov eax, dword [0x623ae8]
mov dword [ecx], eax
mov eax, dword [0x623aec]
mov dword [ecx + 4], eax
mov ax, word [0x623af0]
mov word [ecx + 8], ax
lea eax, [ebp - 0x424]
push eax
push 0x104
lea eax, [ebp - 0xa3c]
push eax
push 0x623880
push str.InstallPath
push 0x625a7c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0xa3c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4153e0
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x415453
xor ecx, ecx
movzx eax, word [ebp + ecx - 0xa3c]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x21e], ax
test ax, ax
jne 0x4153f5
push dword [ebp - 0xc64]
mov ecx, dword [ebp - 0xc68]
lea eax, [ebp - 0x21c]
push eax
call fcn.00415ed0
test eax, eax
je 0x415453
cmp word [ebp - 0x21c], 0
jne 0x41543a
xor ecx, ecx
jmp 0x41565f
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415443
jmp 0x41565b
push 0x206
lea eax, [ebp - 0x832]
push 0
push eax
call fcn.0057ff70
movups xmm0, xmmword [0x623bcc]
mov ebx, dword [ebp - 0xc6c]
add esp, 0xc
mov eax, dword [0x623bdc]
mov edx, ebx
movups xmmword [ebp - 0x834], xmm0
mov dword [ebp - 0x824], eax
mov esi, edx
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x415490
lea edi, [ebp - 0x834]
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4154a6
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 - 0x834]
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 0x41557c
lea eax, [ebp - 0xc70]
mov dword [ebp - 0xc70], 0x104
push eax
lea eax, [ebp - 0xc44]
push eax
push 0
push 0
push str.InstallPath
push dword [ebp - 0xc60]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41557c
xor ecx, ecx
nop dword [eax + eax]
movzx eax, word [ebp + ecx - 0xc44]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x21e], ax
test ax, ax
jne 0x415520
push dword [ebp - 0xc64]
mov ecx, dword [ebp - 0xc68]
lea eax, [ebp - 0x21c]
push eax
call fcn.00415ed0
test eax, eax
je 0x41557c
push dword [ebp - 0xc60]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0xc5c]
call fcn.004049c0
mov esi, 1
jmp 0x41567b
push dword [ebp - 0xc60]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esp, 8
lea eax, [ebp - 0x62c]
push eax
push ecx
call fcn.004158d0
lea edi, [ebp - 0x62c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4155a1
mov eax, dword [0x623ae4]
mov esi, ebx
mov dword [edi], eax
mov cx, word [ebx]
add ebx, 2
test cx, cx
jne 0x4155b6
lea edi, [ebp - 0x62c]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x4155d0
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 - 0x62c]
add edi, 0xfffffffe
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x4155f3
mov dword [edi], eax
xor edx, edx
movzx eax, word [ebp + edx - 0x62c]
lea edx, [edx + 2]
mov word [ebp + edx - 0x21e], ax
test ax, ax
jne 0x415603
push dword [ebp - 0xc64]
mov ecx, dword [ebp - 0xc68]
lea eax, [ebp - 0x21c]
push eax
call fcn.00415ed0
test eax, eax
je 0x415679
cmp word [ebp - 0x21c], 0
jne 0x415645
xor ecx, ecx
jmp 0x41565f
lea ecx, [ebp - 0x21c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415650
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0xc5c]
call fcn.00404db0
mov esi, 1
jmp 0x41567b
xor esi, esi
mov ecx, dword [ebp - 0xc48]
cmp ecx, 8
jb 0x415699
inc ecx
push ecx
push dword [ebp - 0xc5c]
lea ecx, [ebp - 0xc5c]
call fcn.00405130
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 - 0x14]
xor ecx, ebp
call fcn.00579ec9
mov esp, ebp
pop ebp
ret 0xc