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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59cdbf
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [0x62819c]
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.00428a90
mov ecx, eax
test ecx, ecx
je 0x4948c1
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 0x494430
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 0x4945d3
push 0x400
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.0054b380
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 0x4945d3
cmp dword [ebp - 0x448], 2
jne 0x4945d3
cmp dword [ebp - 0x44c], 0x400
jae 0x4945d3
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 0x49450a
lea esi, [ebp - 0x410]
jmp 0x494524
lea ecx, [ebp - 0x454]
call fcn.00443680
mov esi, dword [eax]
or ebx, 2
mov byte [ebp - 4], 1
mov dword [ebp - 0x434], ebx
call fcn.00428a90
test eax, eax
je 0x4948c1
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 0x494581
test esi, 0xffff0000
jne 0x494565
movzx eax, si
lea ecx, [ebp - 0x430]
push eax
call fcn.004295b0
jmp 0x494590
mov ecx, esi
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x494570
sub ecx, edx
sar ecx, 1
jmp 0x494583
xor ecx, ecx
push ecx
push esi
lea ecx, [ebp - 0x430]
call fcn.00429870
or ebx, 1
mov dword [ebp - 4], 0
mov dword [ebp - 0x434], ebx
test bl, 2
je 0x4945cb
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 0x4945cb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x430]
jmp 0x4945f9
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x4948c1
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 0x49465f
cmp dword [edi + 0xc], 0
jl 0x494650
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x494650
push esi
call fcn.004293f0
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 0x494645
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 0x49465f
push dword [eax - 0xc]
lea ecx, [ebp - 0x42c]
push eax
call fcn.00429870
or edi, 0xffffffff
mov byte [ebp - 4], 0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x49467a
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 0x4946ad
mov ecx, dword [ebp - 0x450]
lea edx, [ebp - 0x410]
add ecx, 4
mov dword [ebp - 0x450], ecx
cmp ecx, edx
jne 0x494430
cmp dword [eax - 0xc], 0
je 0x494889
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 0x4946d2
cmp ax, 6
jne 0x4946d7
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 0x494707
push 0x104
lea ecx, [ebp - 0x42c]
call fcn.004296d0
mov edx, dword [ebp - 0x42c]
cmp dword [edx - 8], 0x104
jl 0x4948cb
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 0x494751
push dword [eax - 0xc]
lea ecx, [ebp - 0x42c]
call fcn.004294f0
mov eax, dword [ebp - 0x42c]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x4948d5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x438], eax
mov eax, 0x5bb528
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x438]
test eax, 0xffff0000
jne 0x494797
movzx eax, ax
push eax
call fcn.004295b0
jmp 0x4947a3
push 2
push 0x5bb528
call fcn.00429870
mov byte [ebp - 4], 5
call fcn.00480300
test eax, eax
jne 0x494844
mov eax, dword [ebp - 0x444]
add eax, 0x10
push 0x5b69d0
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.00429080
push str.wps.exe
push eax
lea eax, [ebp - 0x444]
mov byte [ebp - 4], 6
push eax
call fcn.00429080
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 7
push ecx
lea ecx, [ebp - 0x42c]
push ecx
push eax
call fcn.00479cb0
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 0x494821
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 0x494862
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x494862
push 0
push 1
push 0
push 1
push 0xffffffffffffffff
push dword [ebp - 0x438]
push dword [ebp - 0x42c]
call fcn.00479aa0
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 0x494883
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 0x4948a5
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.00545ec7
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004293d0
push 0x80070057
call fcn.004293d0
push 0x80004005
call fcn.004293d0
int3