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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x496815
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x4c1280]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [0x4c36bc]
neg ecx
sbb ecx, ecx
and ecx, 0x100
add ecx, 1
push ecx
push 0
push 0x4a5dec
push str.SYSTEMCurrentControlSet_services_
lea ecx, [ebp - 0x44]
call fcn.00401c70
mov dword [ebp - 0x90], eax
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0x94], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x94]
push eax
lea ecx, [ebp - 0x60]
push ecx
call fcn.00444a70
add esp, 0xc
mov dword [ebp - 0x98], eax
mov edx, dword [ebp - 0x98]
mov dword [ebp - 0x9c], edx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x9c]
call fcn.00401ff0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.00401ce0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00401ce0
cmp dword [ebp - 0x1c], 0
je 0x45ec7c
mov eax, dword [ebp - 0x1c]
push eax
push 0x4a5e58
push str.open__s_ret:_ld
push 0x4a5e04
call fcn.00401340
add esp, 4
push eax
call fcn.00401590
add esp, 0x10
jmp 0x45ef3f
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x24]
push ecx
push 0
lea edx, [ebp - 0x20]
push edx
push 0
push 0x4a5e90
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x45ecd0
mov ecx, dword [ebp - 0x1c]
push ecx
push 0x4a5eb0
push 0x4a5ec8
push 0x4a5ea4
call fcn.00401340
add esp, 4
push eax
call fcn.00401590
add esp, 0x10
jmp 0x45ef3f
xor ecx, ecx
mov eax, dword [ebp - 0x24]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047159e
add esp, 4
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x14]
push edx
lea eax, [ebp - 0x20]
push eax
push 0
push str.ImagePath
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x45ed44
mov edx, dword [ebp - 0x1c]
push edx
push str.SolidifySrv
push str.query__s_ret:_ld
push 0x4a5f00
call fcn.00401340
add esp, 4
push eax
call fcn.00401590
add esp, 0x10
jmp 0x45ef3f
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov ecx, dword [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x68]
call fcn.0042deb0
mov dword [ebp - 0xa0], eax
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0xa4], edx
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0xa4]
push eax
mov ecx, dword [ebp + 8]
call fcn.0042e090
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.0042ed20
push 0x4a5f48
push 0x4a5f5c
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x70]
push edx
call fcn.0042f3f0
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xac], eax
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0xac]
push ecx
lea edx, [ebp - 0x74]
push edx
call fcn.0042f3f0
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xb4], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0xb4]
call fcn.00453990
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov byte [ebp - 0x69], cl
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x74]
call fcn.0042ed20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.0042ed20
movzx edx, byte [ebp - 0x69]
test edx, edx
je 0x45ee33
mov dword [ebp - 0x18], 1
jmp 0x45ef3f
push 0x5c
mov ecx, dword [ebp + 8]
call fcn.00445660
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x45ee4b
jmp 0x45ef3f
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x78]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00445310
mov dword [ebp - 0xb8], eax
mov edx, dword [ebp - 0xb8]
mov dword [ebp - 0xbc], edx
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0xbc]
push eax
mov ecx, dword [ebp + 8]
call fcn.0042e090
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.0042ed20
push 0x4a5f60
push 0x4a5f74
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x80]
push edx
call fcn.0042f3f0
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xc4], eax
mov dword [ebp - 4], 6
mov ecx, dword [ebp - 0xc4]
push ecx
lea edx, [ebp - 0x84]
push edx
call fcn.0042f3f0
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xcc], eax
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0xcc]
call fcn.00453990
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov byte [ebp - 0x79], cl
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x84]
call fcn.0042ed20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.0042ed20
movzx edx, byte [ebp - 0x79]
test edx, edx
je 0x45ef37
mov dword [ebp - 0x18], 1
jmp 0x45ef3f
xor eax, eax
jne 0x45ebaa
cmp dword [ebp - 0x14], 0
je 0x45ef64
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x88], ecx
mov edx, dword [ebp - 0x88]
push edx
call fcn.0047311d
add esp, 4
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x10], 0
je 0x45ef7b
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4