Function at 0x45e910
Capabilities:
Get common file path
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483ee0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5ac
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
push 0x100
mov dword [ebp - 4], esi
mov ebx, str.SYSTEMCurrentControlSetServices
mov dword [ebp - 0x24], esi
call fcn.0047afc7
add esp, 4
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2b8]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [ebp - 0x2b8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
mov dword [ebp - 0x30], edx
cmp eax, edx
jge 0x45e992
mov cl, byte [ebp + eax - 0x2b8]
cmp cl, 0x5c
mov byte [ebp + eax - 0x178], cl
je 0x45e992
inc eax
jmp 0x45e978
mov byte [ebp + eax - 0x177], 0
lea edi, [ebp - 0x178]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x5b8]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x5b8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Program_Files
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, dword [ebp + 0xc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x28]
xor esi, esi
push ecx
push closesocket
push esi
push ebx
push closesocket
mov dword [eax], 0
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x45ed70
mov ebx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
push 0
mov eax, 0x80
push 0
push 0
lea edx, [ebp - 0x38]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
push 0
push edx
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
mov dword [ebp - 0x34], eax
je 0x45ed56
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x20]
push edx
push closesocket
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x3b8]
push ecx
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push edx
push eax
push 0
push str.ObjectName
push ecx
mov dword [ebp - 0x18], 1
call edi
test eax, eax
jne 0x45ed49
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x3b8]
push edx
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
push eax
push ecx
push 0
push str.DisplayName
push edx
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x1c], 0x80
call edi
mov ecx, dword [ebp + 8]
lea eax, [esi + esi*2]
shl eax, 7
push ebx
push str.HKLMSYSTEMCurrentControlSetServices_s
lea esi, [eax + ecx]
push esi
call fcn.0047a8f8
add esp, 0xc
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x138]
lea ecx, [ebp - 0x18]
push edx
mov edx, dword [ebp - 0x20]
push eax
push ecx
push 0
push str.ImagePath
push edx
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x1c], 0x100
call edi
test eax, eax
jne 0x45ed10
lea edi, [ebp - 0x138]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov al, byte [ebp - 0x138]
mov byte [ebp - 4], 1
not ecx
dec ecx
cmp al, 0x22
mov edi, ecx
jne 0x45eb51
xor eax, eax
cmp eax, edi
jge 0x45eb49
mov cl, byte [ebp + eax - 0x137]
mov byte [ebp + eax - 0x138], cl
inc eax
jmp 0x45eb34
mov byte [ebp + edi - 0x13a], 0
cmp byte [ebp - 0x138], 0x25
jne 0x45ecc6
cmp byte [ebp - 0x137], 0x50
jne 0x45eb97
lea eax, [edi + 1]
test eax, eax
jle 0x45eb7f
mov dl, byte [ebp + eax - 0x138]
mov byte [ebp + eax - 0x136], dl
dec eax
jmp 0x45eb6a
xor eax, eax
cmp eax, 0x10
jge 0x45eb97
mov cl, byte [ebp + eax - 0x5b8]
mov byte [ebp + eax - 0x138], cl
inc eax
jmp 0x45eb81
cmp byte [ebp - 0x137], 0x70
jne 0x45ebd0
lea eax, [edi + 1]
test eax, eax
jle 0x45ebb8
mov dl, byte [ebp + eax - 0x138]
mov byte [ebp + eax - 0x136], dl
dec eax
jmp 0x45eba3
xor eax, eax
cmp eax, 0x10
jge 0x45ebd0
mov cl, byte [ebp + eax - 0x5b8]
mov byte [ebp + eax - 0x138], cl
inc eax
jmp 0x45ebba
cmp byte [ebp - 0x137], 0x53
jne 0x45ec39
xor edx, edx
mov eax, 0xc
lea ecx, [edi + 1]
cmp eax, ecx
jg 0x45ebf9
mov cl, byte [ebp + eax - 0x138]
inc edx
mov byte [ebp + eax - 0x184], cl
inc eax
jmp 0x45ebe0
xor eax, eax
mov esi, dword [ebp - 0x30]
cmp eax, esi
jge 0x45ec13
mov cl, byte [ebp + eax - 0x2b8]
mov byte [ebp + eax - 0x138], cl
inc eax
jmp 0x45ebfb
xor eax, eax
cmp eax, edx
jge 0x45ec2d
mov bl, byte [ebp + eax - 0x178]
lea ecx, [esi + eax]
inc eax
mov byte [ebp + ecx - 0x138], bl
jmp 0x45ec15
add edx, esi
mov byte [ebp + edx - 0x138], 0
jmp 0x45ec3c
mov esi, dword [ebp - 0x30]
cmp byte [ebp - 0x137], 0x73
jne 0x45eca0
xor edx, edx
mov eax, 0xc
lea ecx, [edi + 1]
cmp eax, ecx
jg 0x45ec65
mov cl, byte [ebp + eax - 0x138]
inc edx
mov byte [ebp + eax - 0x1c4], cl
inc eax
jmp 0x45ec4c
xor eax, eax
cmp eax, esi
jge 0x45ec7c
mov cl, byte [ebp + eax - 0x2b8]
mov byte [ebp + eax - 0x138], cl
inc eax
jmp 0x45ec67
xor eax, eax
cmp eax, edx
jge 0x45ec96
mov bl, byte [ebp + eax - 0x1b8]
lea ecx, [esi + eax]
inc eax
mov byte [ebp + ecx - 0x138], bl
jmp 0x45ec7e
add edx, esi
mov byte [ebp + edx - 0x138], 0
lea edi, [ebp - 0x138]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp + ecx - 0x139]
mov cl, byte [ebp + ecx - 0x139]
cmp cl, 0x5c
jne 0x45ecc6
mov byte [eax], 0
lea edx, [ebp - 0x138]
push edx
call fcn.00483565
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
mov edi, eax
xor eax, eax
lea ecx, [edx + edx*2]
add esp, 4
shl ecx, 7
mov dword [ebp - 4], 0
lea ebx, [ecx + esi + 0x80]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x45ed3b
mov edi, str.NULL
or ecx, 0xffffffff
xor eax, eax
lea edx, [esi + 0x80]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [ebp - 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
inc edx
cmp edx, 0xff
mov dword [ebp - 0x14], edx
mov esi, edx
je 0x45ed70
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x24]
inc ecx
cmp ecx, 0x1020
mov dword [ebp - 0x24], ecx
ja 0x45ed70
cmp eax, 0x103
jne 0x45ea1f
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x28]
push eax
mov dword [edx], esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0047afbc
add esp, 4
mov ax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret