Function at 0x1002fee0
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 0x101b5f4d
mov eax, dword fs:[0]
push eax
sub esp, 0x86c
mov eax, dword [0x102258ec]
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 ebx, dword [ebp + 8]
mov dword [ebp - 0x878], ebx
mov dword [ebp - 0x874], ebx
call fcn.10020d50
mov ecx, eax
test ecx, ecx
je 0x10030649
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x86c], eax
mov esi, 0x101d0f5c
mov dword [ebp - 4], 0
shr esi, 0x10
lea ecx, [ebp - 0x86c]
test esi, esi
jne 0x1002ff63
mov eax, 0x101d0f5c
movzx edi, ax
push edi
call fcn.1001ede0
jmp 0x1002ff77
push 0
push 0x101d0f5c
call fcn.1001e110
mov eax, 0x101d0f5c
movzx edi, ax
cmp dword [ebp + 0xc], 0
mov dword [ebp - 4], 1
jge 0x1002ffb9
mov esi, dword [ebp - 0x86c]
add esi, 0xfffffff0
push esi
call fcn.100205d0
add eax, 0x10
add esp, 4
mov dword [ebx], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1003062b
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x1003062b
call fcn.10020d50
mov ecx, eax
test ecx, ecx
je 0x10030653
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x870], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x870]
test esi, esi
jne 0x1002ffec
push edi
call fcn.1001ede0
jmp 0x1002fff8
push 0
push 0x101d0f5c
call fcn.1001e110
push 0x208
lea eax, [ebp - 0x43c]
mov byte [ebp - 4], 3
push 0
push eax
call fcn.10187ab0
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 0x1003004f
mov esi, eax
lea eax, [ebp - 0x43c]
push eax
call edi
sub esi, 1
jne 0x10030041
mov eax, dword [0x1022eb3c]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [eax]
cmp esi, eax
je 0x10030252
nop dword [eax]
nop dword [eax + eax]
push 0x208
lea eax, [ebp - 0x644]
push 0
push eax
call fcn.10187ab0
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 0x10030226
cmp dword [esi + 0x10], 7
jne 0x100301b9
push 0x208
push eax
lea eax, [ebp - 0x84c]
push eax
call fcn.10187ab0
add esp, 0xc
lea eax, [ebp - 0x84c]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [ebp - 0x2c], 0x61004d
mov word [ebp - 0x864], ax
lea ecx, [ebp - 0x864]
push 0xd
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x28], 0x740073
push eax
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.1001e830
cmp dword [ebp - 0x850], 8
lea eax, [ebp - 0x864]
cmovae eax, dword [ebp - 0x864]
push eax
lea eax, [ebp - 0x84c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, dword [ebp - 0x850]
cmp edx, 8
jb 0x100301a1
mov ecx, dword [ebp - 0x864]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10030197
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003065d
push edx
push ecx
call fcn.101454bc
add esp, 8
lea eax, [ebp - 0x84c]
push eax
lea eax, [ebp - 0x43c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x1003020a
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x100301e4
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x100301e0
nop dword [eax + eax]
cmp esi, dword [eax + 8]
jne 0x100301e0
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x100301d0
mov esi, eax
jmp 0x100301fc
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x100301fc
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x100301f0
cmp esi, dword [0x1022eb3c]
jne 0x10030070
jmp 0x10030252
lea ecx, [ebp - 0x43c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10030213
lea eax, [ebp - 0x43c]
jmp 0x10030241
lea ecx, [ebp - 0x644]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10030230
lea eax, [ebp - 0x644]
sub ecx, edx
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x870]
call fcn.1001e110
mov edi, dword [ebp - 0x870]
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x100302c3
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100302c3
lea eax, [ebp - 0x86c]
push eax
lea eax, [ebp - 0x870]
push eax
call fcn.10022bd0
mov eax, dword [ebp - 0x86c]
add eax, 0xfffffff0
push eax
mov dword [ebp - 0x868], eax
call fcn.100205d0
add esp, 0xc
add eax, 0x10
mov dword [ebx], eax
or esi, 0xffffffff
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x100302b8
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x868]
jmp 0x10030619
push dword [ebp + 0xc]
call fcn.10031030
mov esi, eax
add esp, 4
mov eax, dword [0x1022eb3c]
mov ecx, eax
mov edx, dword [eax + 4]
cmp byte [edx + 0xd], 0
jne 0x100302fd
cmp dword [edx + 0x10], esi
jge 0x100302ea
mov edx, dword [edx + 8]
jmp 0x100302ee
mov ecx, edx
mov edx, dword [edx]
cmp byte [edx + 0xd], 0
je 0x100302e0
cmp ecx, eax
je 0x100302fd
cmp esi, dword [ecx + 0x10]
jge 0x100302ff
mov ecx, eax
cmp eax, ecx
je 0x10030318
add ecx, 0x14
push ecx
lea ecx, [ebp - 0x870]
call fcn.10020000
mov edi, dword [ebp - 0x870]
cmp esi, 7
jne 0x100305dc
mov ecx, dword [0x1022eb44]
mov esi, ecx
mov eax, dword [ecx + 4]
cmp byte [eax + 0xd], 0
jne 0x10030351
cmp dword [eax + 0x10], 7
jge 0x1003033d
mov eax, dword [eax + 8]
jmp 0x10030341
mov esi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x10030332
cmp esi, ecx
je 0x10030351
cmp dword [esi + 0x10], 7
jle 0x10030353
mov esi, ecx
cmp ecx, esi
jne 0x10030374
mov eax, dword [ebp - 0x86c]
add eax, 0xfffffff0
push eax
mov dword [ebp - 0x868], eax
call fcn.100205d0
add esp, 4
jmp 0x10030299
mov dword [ebp - 0x858], 0
mov dword [ebp - 0x854], 0
mov dword [ebp - 0x850], 0
push 0x20219
push dword [esi + 0x14]
lea ecx, [ebp - 0x858]
mov byte [ebp - 4], 4
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.100312a0
test eax, eax
je 0x100303e9
mov eax, dword [ebp - 0x86c]
add eax, 0xfffffff0
push eax
mov dword [ebp - 0x868], eax
call fcn.100205d0
add eax, 0x10
add esp, 4
mov dword [ebx], eax
mov eax, dword [ebp - 0x858]
test eax, eax
je 0x1003029e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1003029e
push 0x208
lea eax, [ebp - 0x234]
push 0
push eax
call fcn.10187ab0
mov ebx, dword [ebp - 0x858]
lea eax, [ebp - 0x868]
add esp, 0xc
mov dword [ebp - 0x868], 0x208
push eax
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x874]
push eax
push 0
push dword [esi + 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1003045f
mov eax, dword [ebp - 0x874]
cmp eax, 1
je 0x10030444
cmp eax, 2
jne 0x1003045f
mov eax, dword [ebp - 0x868]
test eax, eax
je 0x100304ca
test al, 1
jne 0x1003045f
shr eax, 1
cmp word [ebp + eax*2 - 0x236], 0
je 0x100304d3
mov eax, dword [ebp - 0x86c]
add eax, 0xfffffff0
push eax
mov dword [ebp - 0x874], eax
call fcn.100205d0
mov ecx, dword [ebp - 0x878]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
test ebx, ebx
je 0x1003048d
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or esi, 0xffffffff
mov eax, esi
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x100304a7
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x874]
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x100304bf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x878]
jmp 0x1003062d
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 0x100305c7
call fcn.10020d50
mov ecx, eax
test ecx, ecx
je 0x10030662
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x868], eax
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 5
test eax, 0xffff0000
jne 0x10030527
movzx eax, ax
lea ecx, [ebp - 0x868]
push eax
call fcn.1001ede0
jmp 0x10030552
lea ecx, [ebp - 0x234]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10030530
sub ecx, edx
lea eax, [ebp - 0x234]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x868]
call fcn.1001e110
lea eax, [ebp - 0x86c]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x868]
push eax
call fcn.10022bd0
mov edx, dword [ebp - 0x868]
or esi, 0xffffffff
add esp, 8
mov byte [ebp - 4], 4
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10030590
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x86c]
add eax, 0xfffffff0
push eax
mov dword [ebp - 0x874], eax
call fcn.100205d0
mov ecx, dword [ebp - 0x878]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
test ebx, ebx
je 0x10030490
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10030490
mov byte [ebp - 4], 3
test ebx, ebx
je 0x100305d6
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x878]
mov eax, dword [ebp - 0x86c]
add eax, 0xfffffff0
push eax
mov dword [ebp - 0x874], eax
call fcn.100205d0
add eax, 0x10
or esi, 0xffffffff
mov dword [ebx], eax
add esp, 4
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10030613
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x874]
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x1003062b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
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.101454ca
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.1001bf60
push 0x80004005
call fcn.1001bf60
call fcn.1018b109
push 0x80004005
call fcn.1001bf60
int3