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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x483ed0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c4
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
push 0x100
mov dword [ebp - 4], esi
mov dword [eax], esi
mov dword [ebp - 0x24], esi
call fcn.0047afc7
add esp, 4
lea ecx, [ebp - 0x2d0]
mov ebx, eax
push 0x100
push ecx
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [ebp - 0x2d0]
lea eax, [ebp - 0x5d0]
push edx
push str._s_system32drivers
push eax
call fcn.0047a8f8
lea edi, [ebp - 0x2d0]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
mov dword [ebp - 0x30], edx
cmp eax, edx
jge 0x45e4dc
mov cl, byte [ebp + eax - 0x2d0]
cmp cl, 0x5c
mov byte [ebp + eax - 0x50], cl
je 0x45e4dc
inc eax
jmp 0x45e4c5
mov byte [ebp + eax - 0x4f], 0
lea edi, [ebp - 0x50]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x3d0]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x3d0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [ebp - 0x1c], eax
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]
lea eax, [ebp - 0x28]
mov ecx, edx
push eax
push closesocket
mov eax, str.SYSTEMCurrentControlSetServices
and ecx, 3
push 0
push eax
rep movsb byte es:[edi], byte [esi]
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x45e8a3
mov edx, dword [ebp - 0x24]
push 0
push 0
mov eax, 0x80
push 0
lea ecx, [ebp - 0x34]
push 0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x28]
push ecx
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
cmp esi, 0x103
mov dword [ebp - 0x38], esi
je 0x45e889
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x20]
push ecx
push closesocket
push 0
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x4d0]
push eax
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x14]
push ecx
push edx
push 0
push str.ObjectName
push eax
mov dword [ebp - 0x14], 1
call edi
test eax, eax
je 0x45e87f
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x150]
push ecx
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push edx
push eax
push 0
push str.ImagePath
push ecx
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x18], 0x100
call edi
test eax, eax
jne 0x45e87f
lea edi, [ebp - 0x150]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov al, byte [ebp - 0x150]
mov byte [ebp - 4], 1
not ecx
dec ecx
cmp al, 0x22
mov edi, ecx
jne 0x45e64b
xor eax, eax
cmp eax, edi
jge 0x45e643
mov dl, byte [ebp + eax - 0x14f]
mov byte [ebp + eax - 0x150], dl
inc eax
jmp 0x45e62e
mov byte [ebp + edi - 0x152], 0
cmp byte [ebp - 0x150], 0x25
jne 0x45e7c0
cmp byte [ebp - 0x14f], 0x50
jne 0x45e691
lea eax, [edi + 1]
test eax, eax
jle 0x45e679
mov cl, byte [ebp + eax - 0x150]
mov byte [ebp + eax - 0x14e], cl
dec eax
jmp 0x45e664
xor eax, eax
cmp eax, 0x10
jge 0x45e691
mov dl, byte [ebp + eax - 0x3d0]
mov byte [ebp + eax - 0x150], dl
inc eax
jmp 0x45e67b
cmp byte [ebp - 0x14f], 0x70
jne 0x45e6ca
lea eax, [edi + 1]
test eax, eax
jle 0x45e6b2
mov cl, byte [ebp + eax - 0x150]
mov byte [ebp + eax - 0x14e], cl
dec eax
jmp 0x45e69d
xor eax, eax
cmp eax, 0x10
jge 0x45e6ca
mov dl, byte [ebp + eax - 0x3d0]
mov byte [ebp + eax - 0x150], dl
inc eax
jmp 0x45e6b4
cmp byte [ebp - 0x14f], 0x53
jne 0x45e733
xor edx, edx
mov eax, 0xc
lea ecx, [edi + 1]
cmp eax, ecx
jg 0x45e6f3
mov cl, byte [ebp + eax - 0x150]
inc edx
mov byte [ebp + eax - 0x1dc], cl
inc eax
jmp 0x45e6da
xor eax, eax
mov esi, dword [ebp - 0x30]
cmp eax, esi
jge 0x45e70d
mov cl, byte [ebp + eax - 0x2d0]
mov byte [ebp + eax - 0x150], cl
inc eax
jmp 0x45e6f5
xor eax, eax
cmp eax, edx
jge 0x45e727
mov bl, byte [ebp + eax - 0x1d0]
lea ecx, [esi + eax]
inc eax
mov byte [ebp + ecx - 0x150], bl
jmp 0x45e70f
add edx, esi
mov byte [ebp + edx - 0x150], 0
jmp 0x45e736
mov esi, dword [ebp - 0x30]
cmp byte [ebp - 0x14f], 0x73
jne 0x45e79a
xor edx, edx
mov eax, 0xc
lea ecx, [edi + 1]
cmp eax, ecx
jg 0x45e75f
mov cl, byte [ebp + eax - 0x150]
inc edx
mov byte [ebp + eax - 0x19c], cl
inc eax
jmp 0x45e746
xor eax, eax
cmp eax, esi
jge 0x45e776
mov cl, byte [ebp + eax - 0x2d0]
mov byte [ebp + eax - 0x150], cl
inc eax
jmp 0x45e761
xor eax, eax
cmp eax, edx
jge 0x45e790
mov bl, byte [ebp + eax - 0x190]
lea ecx, [esi + eax]
inc eax
mov byte [ebp + ecx - 0x150], bl
jmp 0x45e778
add edx, esi
mov byte [ebp + edx - 0x150], 0
lea edi, [ebp - 0x150]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp + ecx - 0x151]
mov cl, byte [ebp + ecx - 0x151]
cmp cl, 0x5c
jne 0x45e7c0
mov byte [eax], 0
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x4d0]
push edx
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x14]
push eax
push ecx
push 0
push str.Start
push edx
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x18], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x45e806
mov eax, dword [ebp - 0x4d0]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x1c]
and eax, 0xff
mov dword [ecx + edx*4], eax
mov ebx, dword [ebp - 0x1c]
lea eax, [ebp - 0x150]
push eax
shl ebx, 8
call fcn.00483565
mov ecx, dword [ebp + 8]
mov edi, eax
xor eax, eax
lea edx, [ebx + ecx]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebx + 0x640adc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, str.SYSTEMCurrentControlSetServices
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x2c]
push ecx
push eax
push str.HKLM_s_s
push edx
call fcn.0047a8f8
mov eax, dword [ebp - 0x1c]
add esp, 0x14
inc eax
cmp eax, 0xff
mov dword [ebp - 0x1c], eax
jle 0x45e872
mov ebx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
jmp 0x45e8a3
mov esi, dword [ebp - 0x38]
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x24]
inc eax
cmp eax, 0x1020
mov dword [ebp - 0x24], eax
ja 0x45e8a3
cmp esi, 0x103
jne 0x45e55e
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x1c]
push ebx
mov dword [edx], eax
mov dword [0x65cd58], eax
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