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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4841d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x370
push ebx
push esi
push edi
mov ebx, 0x100
mov dword [ebp - 0x10], esp
push ebx
mov dword [ebp - 4], 0
call fcn.0047afc7
add esp, 4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x37c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [ebp - 0x37c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, ecx
mov dword [ebp - 0x14], edx
cmp eax, edx
jge 0x478539
mov cl, byte [ebp + eax - 0x37c]
cmp cl, 0x5c
mov byte [ebp + eax - 0x17c], cl
je 0x478539
inc eax
jmp 0x47851f
mov byte [ebp + eax - 0x17b], 0
lea edi, [ebp - 0x17c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x27c]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x27c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [ebp - 0x1c], ebx
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 eax, dword [ebp + 8]
mov ecx, edx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00483565
mov edi, dword [ebp - 0x18]
push eax
push str.SYSTEMCurrentControlSetServices_sParameters
push edi
call fcn.0047a8f8
add esp, 0x10
lea ecx, [ebp - 0x20]
push ecx
push closesocket
push 0
push edi
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4788c6
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x164]
push edx
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
push eax
push ecx
push 0
push str.ServiceDll
push edx
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4788c6
lea edi, [ebp - 0x164]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov al, byte [ebp - 0x164]
not ecx
dec ecx
cmp al, 0x22
mov ebx, ecx
jne 0x478642
xor eax, eax
cmp eax, ebx
jge 0x47863a
mov cl, byte [ebp + eax - 0x163]
mov byte [ebp + eax - 0x164], cl
inc eax
jmp 0x478625
mov byte [ebp + ebx - 0x166], 0
cmp byte [ebp - 0x164], 0x25
jne 0x4788a5
cmp byte [ebp - 0x163], 0x50
jne 0x478688
lea eax, [ebx + 1]
test eax, eax
jle 0x478670
mov dl, byte [ebp + eax - 0x164]
mov byte [ebp + eax - 0x162], dl
dec eax
jmp 0x47865b
xor eax, eax
cmp eax, 0x10
jge 0x478688
mov cl, byte [ebp + eax - 0x27c]
mov byte [ebp + eax - 0x164], cl
inc eax
jmp 0x478672
cmp byte [ebp - 0x163], 0x70
jne 0x4786c1
lea eax, [ebx + 1]
test eax, eax
jle 0x4786a9
mov dl, byte [ebp + eax - 0x164]
mov byte [ebp + eax - 0x162], dl
dec eax
jmp 0x478694
xor eax, eax
cmp eax, 0x10
jge 0x4786c1
mov cl, byte [ebp + eax - 0x27c]
mov byte [ebp + eax - 0x164], cl
inc eax
jmp 0x4786ab
cmp byte [ebp - 0x163], 0x53
jne 0x478724
xor ecx, ecx
mov eax, 0xc
lea edx, [ebx + 1]
cmp eax, edx
jg 0x4786e7
mov dl, byte [ebp + eax - 0x164]
inc ecx
mov byte [ebp + eax - 0x70], dl
inc eax
jmp 0x4786d1
xor eax, eax
mov esi, dword [ebp - 0x14]
cmp eax, esi
jge 0x478701
mov dl, byte [ebp + eax - 0x37c]
mov byte [ebp + eax - 0x164], dl
inc eax
jmp 0x4786e9
xor eax, eax
cmp eax, ecx
jge 0x478718
mov dl, byte [ebp + eax - 0x64]
lea edi, [esi + eax]
inc eax
mov byte [ebp + edi - 0x164], dl
jmp 0x478703
add ecx, esi
mov byte [ebp + ecx - 0x164], 0
jmp 0x478727
mov esi, dword [ebp - 0x14]
cmp byte [ebp - 0x163], 0x73
jne 0x478785
xor ecx, ecx
mov eax, 0xc
lea edx, [ebx + 1]
cmp eax, edx
jg 0x47874d
mov dl, byte [ebp + eax - 0x164]
inc ecx
mov byte [ebp + eax - 0x70], dl
inc eax
jmp 0x478737
xor eax, eax
cmp eax, esi
jge 0x478764
mov dl, byte [ebp + eax - 0x37c]
mov byte [ebp + eax - 0x164], dl
inc eax
jmp 0x47874f
xor eax, eax
cmp eax, ecx
jge 0x47877b
mov dl, byte [ebp + eax - 0x64]
lea edi, [esi + eax]
inc eax
mov byte [ebp + edi - 0x164], dl
jmp 0x478766
add ecx, esi
mov byte [ebp + ecx - 0x164], 0
cmp byte [ebp - 0x163], 0x77
jne 0x478802
xor eax, eax
lea ecx, [ebx - 8]
cmp eax, ecx
jge 0x4787a5
mov dl, byte [ebp + eax - 0x15c]
mov byte [ebp + eax - 0x64], dl
inc eax
jmp 0x478790
lea eax, [ebp - 0x64]
lea ecx, [ebp - 0x37c]
push eax
push ecx
mov byte [ebp + ebx - 0x6c], 0
mov byte [ebp - 0x164], 0
call fcn.00483565
add esp, 4
lea edx, [ebp - 0x27c]
push eax
push str._s_s
push edx
call fcn.0047a8f8
lea edi, [ebp - 0x27c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x164]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [ebp - 0x163], 0x57
jne 0x47887f
xor eax, eax
lea ecx, [ebx - 8]
cmp eax, ecx
jge 0x478822
mov dl, byte [ebp + eax - 0x15c]
mov byte [ebp + eax - 0x64], dl
inc eax
jmp 0x47880d
lea eax, [ebp - 0x64]
lea ecx, [ebp - 0x37c]
push eax
push ecx
mov byte [ebp + ebx - 0x6c], 0
mov byte [ebp - 0x164], 0
call fcn.00483565
add esp, 4
lea edx, [ebp - 0x27c]
push eax
push str._s_s
push edx
call fcn.0047a8f8
lea edi, [ebp - 0x27c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x164]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x164]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp + ecx - 0x165]
mov cl, byte [ebp + ecx - 0x165]
cmp cl, 0x5c
jne 0x4788a5
mov byte [eax], 0
lea ecx, [ebp - 0x164]
push ecx
call fcn.00483565
mov edx, dword [ebp + 0xc]
push eax
push 0x48b2f4
push edx
call fcn.0047a8f8
mov edi, dword [ebp - 0x18]
add esp, 0x10
mov eax, dword [ebp - 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [ebp + 8]
push ecx
call esi
push edi
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