Function at 0x10062910
Capabilities:
Check if file exists
Get file attributes
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10079fe8
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x10094610]
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
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], ax
mov eax, dword [0x1009443c]
xor edi, edi
cmp dword [0x10094450], 8
mov dword [ebp - 4], ebx
jae 0x1006296e
mov eax, 0x1009443c
mov edx, dword [0x10094438]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x8c]
push ecx
push 1
push ebx
push eax
push edx
call esi
cmp eax, ebx
jne 0x100629dd
mov edx, dword [ebp - 0x8c]
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x88]
push ecx
push ebx
push ebx
push 0x1007f16c
push edx
mov dword [ebp - 0x90], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x100629c2
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x8c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, ebx
je 0x100629dd
mov dword [ebp - 0x84], 1
lea ecx, [ebp - 0x88]
push ecx
push 1
push ebx
push str.SOFTWAREYTDownloader
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x10062a70
mov edx, dword [ebp - 0x88]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x64]
push eax
push str.EXELOCATION
push str.SOFTWAREYTDownloader
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.100618c0
add esp, 0x10
test eax, eax
jne 0x10062a67
mov eax, dword [ebp - 0x64]
mov edi, 8
cmp dword [ebp - 0x50], edi
jae 0x10062a33
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10062a77
sub esp, 0x1c
lea edx, [ebp - 0x64]
mov ecx, esp
mov dword [ebp - 0x88], esp
push edx
call fcn.1004e600
call fcn.10062700
add esp, 0x1c
test al, al
jne 0x10062a77
or dword [ebp - 0x84], edi
jmp 0x10062a77
or dword [ebp - 0x84], 4
jmp 0x10062a77
or dword [ebp - 0x84], 2
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
lea ecx, [ebp - 0x48]
push ecx
push str.ImagePath
push str.SYSTEMCurrentControlSet_services_sbmntr
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 4], 1
call fcn.100618c0
add esp, 0x10
test eax, eax
jne 0x10062c20
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x10062aba
lea eax, [ebp - 0x48]
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push ebx
push ebx
push eax
call edi
xor edx, edx
mov esi, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
lea eax, [esi + 1]
mov byte [ebp - 4], 2
cmp eax, ebx
jbe 0x10062af5
push ebx
push eax
lea ecx, [ebp - 0x2c]
call fcn.1004e710
cmp dword [ebp - 0x18], 8
mov ecx, dword [ebp - 0x2c]
jae 0x10062af8
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x10062b04
lea eax, [ebp - 0x48]
push esi
push ecx
push eax
call edi
push 4
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1004fd80
mov ecx, dword [eax + 0x10]
push 4
push str.___
push ecx
push ebx
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.10056c50
test eax, eax
mov edi, 8
sete bl
mov byte [ebp - 4], 2
cmp dword [ebp - 0x6c], edi
jb 0x10062b4d
mov edx, dword [ebp - 0x80]
push edx
call fcn.100660ce
add esp, 4
test bl, bl
je 0x10062baa
push 0xffffffffffffffff
push 4
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x2c]
call fcn.100519d0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
cmp ecx, eax
je 0x10062b99
cmp dword [eax + 0x14], edi
jb 0x10062b75
mov edx, dword [eax]
jmp 0x10062b77
mov edx, eax
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10062b80
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x2c]
call fcn.1004dce6
cmp dword [ebp - 0x6c], edi
jb 0x10062baa
mov edx, dword [ebp - 0x80]
push edx
call fcn.100660ce
add esp, 4
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x10062bb5
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10062bc8
or dword [ebp - 0x84], 0x20
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], edi
jb 0x10062bdd
mov eax, dword [ebp - 0x2c]
push eax
call fcn.100660ce
add esp, 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
call fcn.10062590
mov edi, dword [ebp - 0x84]
test al, al
jne 0x10062bf7
or edi, 0x40
lea ecx, [ebp - 0x88]
push ecx
push 1
push ebx
push str.SOFTWAREObject_Browser
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x10062c29
mov edx, dword [ebp - 0x88]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10062c58
or dword [ebp - 0x84], 0x10
jmp 0x10062be5
lea eax, [ebp - 0x88]
push eax
push 1
push ebx
push str.SOFTWAREWow6432NodeObject_Browser
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x10062c52
mov ecx, dword [ebp - 0x88]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10062c58
or edi, 0x80
mov esi, 8
cmp dword [ebp - 0x34], esi
jb 0x10062c6e
mov edx, dword [ebp - 0x48]
push edx
call fcn.100660ce
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
cmp dword [ebp - 0x50], esi
jb 0x10062c8f
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.100660ce
add esp, 4
mov eax, edi
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.100660ff
mov esp, ebp
pop ebp
ret