Function at 0x100408c0
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Get common file path
Get startup folder
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101f2258
mov eax, dword fs:[0]
push eax
sub esp, 0x874
mov eax, dword [0x10283a3c]
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 esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x880], esi
mov dword [ebp - 0x870], esi
mov dword [ebp - 0x878], ebx
call fcn.10029e80
mov ecx, eax
test ecx, ecx
je 0x10041198
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x874], eax
mov dword [ebp - 4], 1
mov edi, 0x1021dffc
shr edi, 0x10
lea ecx, [ebp - 0x874]
test edi, edi
jne 0x10040951
mov eax, 0x1021dffc
movzx eax, ax
push eax
mov dword [ebp - 0x868], eax
call fcn.10028430
jmp 0x1004096b
push 0
push 0x1021dffc
call fcn.1002b150
mov eax, 0x1021dffc
movzx eax, ax
mov dword [ebp - 0x868], eax
mov dword [ebp - 4], 2
cmp dword [ebp + 0xc], 0
jge 0x100409c0
mov edi, dword [ebp - 0x874]
add edi, 0xfffffff0
push edi
call fcn.10029760
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x878], 1
mov dword [ebp - 4], 0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x100409b9
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
jmp 0x1004117c
call fcn.10029e80
mov ecx, eax
test ecx, ecx
je 0x100411a2
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x87c], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x87c]
test edi, edi
jne 0x100409f8
push dword [ebp - 0x868]
call fcn.10028430
jmp 0x10040a04
push 0
push 0x1021dffc
call fcn.1002b150
mov byte [ebp - 4], 6
lea eax, [ebp - 0x43c]
push 0x208
push 0
push eax
call fcn.101be270
add esp, 0xc
lea eax, [ebp - 0x43c]
push 0x104
push eax
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x43c]
push eax
call edi
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x10040a5e
mov esi, eax
nop dword [eax]
lea eax, [ebp - 0x43c]
push eax
call edi
sub esi, 1
jne 0x10040a50
mov eax, dword [0x1028cd78]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [eax]
cmp esi, eax
je 0x10040ca2
push 0x208
lea eax, [ebp - 0x644]
push 0
push eax
call fcn.101be270
add esp, 0xc
lea eax, [ebp - 0x43c]
push dword [esi + 0x14]
push eax
lea eax, [ebp - 0x644]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x644]
push eax
call edi
test eax, eax
jne 0x10040c76
cmp dword [esi + 0x10], 7
jne 0x10040c07
push 0x208
push eax
lea eax, [ebp - 0x84c]
push eax
call fcn.101be270
add esp, 0xc
lea eax, [ebp - 0x84c]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov byte [ebp - 4], 7
xor eax, eax
mov word [ebp - 0x864], ax
lea ecx, [ebp - 0x864]
push 0xd
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x854], 0
mov dword [ebp - 0x850], 0
push eax
mov dword [ebp - 0x2c], 0x61004d
mov dword [ebp - 0x28], 0x740073
mov dword [ebp - 0x24], 0x720065
mov dword [ebp - 0x20], 0x440050
mov dword [ebp - 0x1c], 0x440046
mov dword [ebp - 0x18], 0x740061
mov dword [ebp - 0x14], 0x61
mov dword [ebp - 0x854], 0
mov dword [ebp - 0x850], 7
call fcn.10027e50
or ebx, 2
lea eax, [ebp - 0x864]
mov dword [ebp - 0x878], ebx
cmp dword [ebp - 0x850], 8
cmovae eax, dword [ebp - 0x864]
push eax
lea eax, [ebp - 0x84c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
and ebx, 0xfffffffd
mov dword [ebp - 0x878], ebx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x850]
cmp edx, 8
jb 0x10040bd2
mov ecx, dword [ebp - 0x864]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10040bc8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100411ac
push edx
push ecx
call fcn.1017033c
add esp, 8
xor eax, eax
mov dword [ebp - 0x854], 0
mov word [ebp - 0x864], ax
lea eax, [ebp - 0x84c]
push eax
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x850], 7
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x10040c5a
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x10040c34
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x10040c30
nop dword [eax]
cmp esi, dword [eax + 8]
jne 0x10040c30
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x10040c20
mov esi, eax
jmp 0x10040c4c
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x10040c4c
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x10040c40
cmp esi, dword [0x1028cd78]
jne 0x10040a73
jmp 0x10040ca2
lea ecx, [ebp - 0x43c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10040c63
lea eax, [ebp - 0x43c]
jmp 0x10040c91
lea ecx, [ebp - 0x644]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10040c80
lea eax, [ebp - 0x644]
sub ecx, edx
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x87c]
call fcn.1002b150
mov esi, dword [ebp - 0x87c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x10040d2d
push esi
call edi
test eax, eax
je 0x10040d2d
lea eax, [ebp - 0x874]
push eax
lea eax, [ebp - 0x87c]
push eax
call fcn.10029f70
mov eax, dword [ebp - 0x874]
add eax, 0xfffffff0
push eax
mov dword [ebp - 0x868], eax
call fcn.10029760
mov ecx, dword [ebp - 0x870]
add eax, 0x10
add esp, 0xc
mov dword [ecx], eax
mov byte [ebp - 4], 6
or ebx, 1
mov dword [ebp - 0x878], ebx
mov byte [ebp - 4], 2
or edi, 0xffffffff
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10040d1b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x868]
jmp 0x10041164
push dword [ebp + 0xc]
call fcn.10041c40
add esp, 4
mov edi, eax
lea eax, [ebp - 0x868]
mov dword [ebp - 0x868], edi
mov ecx, 0x1028cd78
push eax
lea eax, [ebp - 0x86c]
push eax
call fcn.10042320
mov ecx, dword [ebp - 0x86c]
cmp dword [0x1028cd78], ecx
je 0x10040d7b
add ecx, 0x14
push ecx
lea ecx, [ebp - 0x87c]
call fcn.100291c0
mov esi, dword [ebp - 0x87c]
cmp edi, 7
jne 0x10041109
lea eax, [ebp - 0x868]
mov ecx, 0x1028cd80
push eax
lea eax, [ebp - 0x86c]
push eax
call fcn.10042320
mov edi, dword [ebp - 0x86c]
cmp dword [0x1028cd80], edi
jne 0x10040dfd
mov eax, dword [ebp - 0x874]
add eax, 0xfffffff0
push eax
mov dword [ebp - 0x86c], eax
call fcn.10029760
mov ecx, dword [ebp - 0x870]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
mov byte [ebp - 4], 6
or ebx, 1
mov dword [ebp - 0x878], ebx
mov byte [ebp - 4], 2
or edi, 0xffffffff
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10040df8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10041157
mov dword [ebp - 0x858], 0
mov dword [ebp - 0x854], 0
mov dword [ebp - 0x850], 0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x858]
push 0x20219
push dword [edi + 0x14]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.10041f00
test eax, eax
je 0x10040eb7
mov eax, dword [ebp - 0x874]
add eax, 0xfffffff0
push eax
mov dword [ebp - 0x86c], eax
call fcn.10029760
mov ecx, dword [ebp - 0x870]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
mov byte [ebp - 4], 0xe
or ebx, 1
mov dword [ebp - 0x878], ebx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x858]
test eax, eax
je 0x10040e8a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x858], 0
mov dword [ebp - 0x854], 0
mov byte [ebp - 4], 2
or edi, 0xffffffff
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10040eb2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10041157
push 0x208
lea eax, [ebp - 0x234]
push 0
push eax
call fcn.101be270
add esp, 0xc
mov dword [ebp - 0x868], 0x208
lea eax, [ebp - 0x868]
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x86c]
push eax
push 0
push dword [edi + 0x14]
mov edi, dword [ebp - 0x858]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10040f31
mov eax, dword [ebp - 0x86c]
cmp eax, 1
je 0x10040f12
cmp eax, 2
jne 0x10040f31
mov eax, dword [ebp - 0x868]
test eax, eax
je 0x10040fa7
test al, 1
jne 0x10040f31
shr eax, 1
cmp word [ebp + eax*2 - 0x236], 0
je 0x10040fb0
mov eax, dword [ebp - 0x874]
add eax, 0xfffffff0
push eax
mov dword [ebp - 0x86c], eax
call fcn.10029760
mov ecx, dword [ebp - 0x870]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
mov byte [ebp - 4], 0xe
or ebx, 1
mov dword [ebp - 0x878], ebx
mov byte [ebp - 4], 6
test edi, edi
je 0x10040f7a
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x858], 0
mov dword [ebp - 0x854], 0
mov byte [ebp - 4], 2
or edi, 0xffffffff
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10040fa2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10041157
xor eax, eax
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100410e6
call fcn.10029e80
mov ecx, eax
test ecx, ecx
je 0x100411b1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x868], eax
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0x234]
test eax, 0xffff0000
jne 0x10041004
movzx eax, ax
lea ecx, [ebp - 0x868]
push eax
call fcn.10028430
jmp 0x10041032
lea ecx, [ebp - 0x234]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10041010
sub ecx, edx
lea eax, [ebp - 0x234]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x868]
call fcn.1002b150
mov byte [ebp - 4], 0x16
lea eax, [ebp - 0x874]
push eax
lea eax, [ebp - 0x868]
push eax
call fcn.10029f70
add esp, 8
mov byte [ebp - 4], 0xe
or edi, 0xffffffff
mov edx, dword [ebp - 0x868]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10041070
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x874]
add eax, 0xfffffff0
push eax
mov dword [ebp - 0x86c], eax
call fcn.10029760
mov ecx, dword [ebp - 0x870]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
mov byte [ebp - 4], 0xe
or ebx, 1
mov dword [ebp - 0x878], ebx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x858]
test eax, eax
je 0x100410bf
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x858], 0
mov dword [ebp - 0x854], 0
mov byte [ebp - 4], 2
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100410e4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10041157
mov byte [ebp - 4], 6
test edi, edi
je 0x100410ff
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x858], 0
mov dword [ebp - 0x854], 0
mov eax, dword [ebp - 0x874]
add eax, 0xfffffff0
push eax
mov dword [ebp - 0x86c], eax
call fcn.10029760
mov ecx, dword [ebp - 0x870]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
mov byte [ebp - 4], 6
or ebx, 1
mov dword [ebp - 0x878], ebx
mov byte [ebp - 4], 2
or edi, 0xffffffff
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10041157
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x86c]
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x10041176
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x870]
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.1017034a
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100253e0
push 0x80004005
call fcn.100253e0
call fcn.101c1b70
push 0x80004005
call fcn.100253e0
int3