Function at 0x48d500
Capabilities:
Check if file exists
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d38f
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [0x61ce74]
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
mov dword [ebp - 0x444], ecx
xor ebx, ebx
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x428], str.SYSTEMCurrentControlSetServicesldpkitParameters
mov dword [ebp - 0x424], str.SYSTEMCurrentControlSetServicesldpkit_netsvcs
mov dword [ebp - 0x420], str.SYSTEMldpkit_netsvcs
mov dword [ebp - 0x41c], str.SYSTEM_netsvcs
mov dword [ebp - 0x418], str.SOFTWAREldpkit_netsvcs
mov dword [ebp - 0x414], str.SOFTWARE_netsvcs
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x48da41
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x42c], eax
lea ecx, [ebp - 0x428]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x450], ecx
or edi, 0xffffffff
jmp 0x48d5b0
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x43c], 0
push eax
push 1
push 0
push dword [ecx]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48d753
push 0x400
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.00540d70
add esp, 0xc
mov dword [ebp - 0x448], 2
lea eax, [ebp - 0x44c]
mov dword [ebp - 0x44c], 0x400
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x448]
push eax
push 0
push str.ServiceDll
push dword [ebp - 0x43c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x43c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x48d753
cmp dword [ebp - 0x448], 2
jne 0x48d753
cmp dword [ebp - 0x44c], 0x400
jae 0x48d753
xor eax, eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48d68a
lea esi, [ebp - 0x410]
jmp 0x48d6a4
lea ecx, [ebp - 0x454]
call fcn.0043f680
mov esi, dword [eax]
or ebx, 2
mov byte [ebp - 4], 1
mov dword [ebp - 0x434], ebx
call fcn.00421b80
test eax, eax
je 0x48da41
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x430], eax
mov dword [ebp - 4], 2
test esi, esi
je 0x48d701
test esi, 0xffff0000
jne 0x48d6e5
movzx eax, si
lea ecx, [ebp - 0x430]
push eax
call fcn.00426130
jmp 0x48d710
mov ecx, esi
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48d6f0
sub ecx, edx
sar ecx, 1
jmp 0x48d703
xor ecx, ecx
push ecx
push esi
lea ecx, [ebp - 0x430]
call fcn.004263f0
or ebx, 1
mov dword [ebp - 4], 0
mov dword [ebp - 0x434], ebx
test bl, 2
je 0x48d74b
mov edx, dword [ebp - 0x454]
and ebx, 0xfffffffd
mov dword [ebp - 0x434], ebx
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48d74b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x430]
jmp 0x48d779
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x48da41
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
or ebx, 1
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x430], eax
mov edi, dword [ebp - 0x42c]
lea esi, [eax - 0x10]
add edi, 0xfffffff0
mov byte [ebp - 4], 3
cmp esi, edi
je 0x48d7df
cmp dword [edi + 0xc], 0
jl 0x48d7d0
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x48d7d0
push esi
call fcn.00425f70
add esp, 4
mov dword [ebp - 0x440], eax
or ecx, 0xffffffff
lea edx, [edi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x48d7c5
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x440]
add eax, 0x10
mov dword [ebp - 0x42c], eax
jmp 0x48d7df
push dword [eax - 0xc]
lea ecx, [ebp - 0x42c]
push eax
call fcn.004263f0
or edi, 0xffffffff
mov byte [ebp - 4], 0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x48d7fa
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x42c]
cmp dword [eax - 0xc], 0
jne 0x48d82d
mov ecx, dword [ebp - 0x450]
lea edx, [ebp - 0x410]
add ecx, 4
mov dword [ebp - 0x450], ecx
cmp ecx, edx
jne 0x48d5b0
cmp dword [eax - 0xc], 0
je 0x48da09
lea eax, [ebp - 0x478]
mov esi, str.ldpins.exe
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x478]
cmp ax, 9
je 0x48d852
cmp ax, 6
jne 0x48d857
mov esi, str.ldpins64.exe
mov edx, dword [ebp - 0x42c]
mov ecx, 1
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x48d887
push 0x104
lea ecx, [ebp - 0x42c]
call fcn.00426250
mov edx, dword [ebp - 0x42c]
cmp dword [edx - 8], 0x104
jl 0x48da4b
mov dword [edx - 0xc], 0x104
xor ecx, ecx
mov eax, dword [ebp - 0x42c]
push edx
mov word [eax + 0x208], cx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [ebp - 0x42c]
cmp dword [eax - 4], 1
jle 0x48d8d1
push dword [eax - 0xc]
lea ecx, [ebp - 0x42c]
call fcn.00426070
mov eax, dword [ebp - 0x42c]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x48da55
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x438], eax
mov eax, 0x5c2e18
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x438]
test eax, 0xffff0000
jne 0x48d917
movzx eax, ax
push eax
call fcn.00426130
jmp 0x48d923
push 2
push 0x5c2e18
call fcn.004263f0
mov byte [ebp - 4], 5
call fcn.0047b0a0
test eax, eax
jne 0x48d9c4
mov eax, dword [ebp - 0x444]
add eax, 0x10
push 0x5bc540
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.00425c00
push str.wps.exe
push eax
lea eax, [ebp - 0x444]
mov byte [ebp - 4], 6
push eax
call fcn.00425c00
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 7
push ecx
lea ecx, [ebp - 0x42c]
push ecx
push eax
call fcn.00475070
mov edx, dword [ebp - 0x444]
add esp, 0x24
mov byte [ebp - 4], 6
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48d9a1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x440]
mov eax, edi
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48d9e2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x48d9e2
push 0
push 1
push 0
push 1
push 0xffffffffffffffff
push dword [ebp - 0x438]
push dword [ebp - 0x42c]
call fcn.00474e60
add esp, 0x1c
mov edx, dword [ebp - 0x438]
mov eax, edi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48da03
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x42c]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax - 0x10]
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x48da25
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.0053d079
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00425f50
push 0x80070057
call fcn.00425f50
push 0x80004005
call fcn.00425f50
int3