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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a1fc4
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [0x63434c]
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
mov dword [ebp - 4], ebx
call fcn.004291f0
test eax, eax
je 0x49d940
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x42c], eax
lea ecx, [ebp - 0x428]
mov dword [ebp - 4], 1
mov dword [ebp - 0x450], ecx
or edi, 0xffffffff
mov edi, edi
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
je 0x49d4df
mov byte [ebp - 4], 2
jmp 0x49d657
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.0055c530
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 0x49d653
cmp dword [ebp - 0x448], 2
jne 0x49d653
cmp dword [ebp - 0x44c], 0x400
jae 0x49d653
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 0x49d590
lea esi, [ebp - 0x410]
jmp 0x49d5aa
lea ecx, [ebp - 0x440]
call fcn.0042a980
mov esi, dword [eax]
or ebx, 2
mov byte [ebp - 4], 3
mov dword [ebp - 0x434], ebx
call fcn.004291f0
test eax, eax
je 0x49d940
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x430], eax
mov dword [ebp - 4], 4
test esi, esi
je 0x49d601
test esi, 0xffff0000
jne 0x49d5eb
movzx eax, si
lea ecx, [ebp - 0x430]
push eax
call fcn.00429d30
jmp 0x49d610
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49d5f0
sub ecx, edx
sar ecx, 1
jmp 0x49d603
xor ecx, ecx
push ecx
push esi
lea ecx, [ebp - 0x430]
call fcn.0042a000
or ebx, 1
mov dword [ebp - 4], 1
mov dword [ebp - 0x434], ebx
test bl, 2
je 0x49d64b
mov edx, dword [ebp - 0x440]
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 0x49d64b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x430]
jmp 0x49d67d
mov byte [ebp - 4], 5
call fcn.004291f0
test eax, eax
je 0x49d940
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 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], 6
cmp esi, edi
je 0x49d6e7
mov ecx, dword [edi + 0xc]
shr ecx, 0x1f
test cl, cl
jne 0x49d6d8
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x49d6d8
push esi
call fcn.00429b20
add esp, 4
mov dword [ebp - 0x43c], eax
or ecx, 0xffffffff
lea edx, [edi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49d6cd
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x43c]
add eax, 0x10
mov dword [ebp - 0x42c], eax
jmp 0x49d6e7
push dword [eax - 0xc]
lea ecx, [ebp - 0x42c]
push eax
call fcn.0042a000
or edi, 0xffffffff
mov byte [ebp - 4], 1
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x49d702
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 0x49d735
mov ecx, dword [ebp - 0x450]
lea edx, [ebp - 0x410]
add ecx, 4
mov dword [ebp - 0x450], ecx
cmp ecx, edx
jne 0x49d4b0
cmp dword [eax - 0xc], 0
je 0x49d905
lea eax, [ebp - 0x474]
mov esi, str.ldpins.exe
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x474]
cmp ax, 9
je 0x49d75a
cmp ax, 6
jne 0x49d75f
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 0x49d78f
push 0x104
lea ecx, [ebp - 0x42c]
call fcn.00429e50
mov edx, dword [ebp - 0x42c]
cmp dword [edx - 8], 0x104
jl 0x49d936
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 0x49d7d9
push dword [eax - 0xc]
lea ecx, [ebp - 0x42c]
call fcn.00429c70
mov eax, dword [ebp - 0x42c]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.004291f0
test eax, eax
je 0x49d940
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x438], eax
mov eax, 0x5c02e8
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x438]
test eax, 0xffff0000
jne 0x49d81f
movzx eax, ax
push eax
call fcn.00429d30
jmp 0x49d82b
push 2
push 0x5c02e8
call fcn.0042a000
mov byte [ebp - 4], 8
call fcn.004861e0
test eax, eax
jne 0x49d8c4
mov eax, dword [ebp - 0x444]
add eax, 0x10
push 0x5bb5a8
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.004297b0
push str.wps.exe
push eax
lea eax, [ebp - 0x444]
mov byte [ebp - 4], 9
push eax
call fcn.004297b0
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 0xa
push ecx
lea ecx, [ebp - 0x42c]
push ecx
push eax
call fcn.0047f840
mov edx, dword [ebp - 0x444]
add esp, 0x24
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49d8a5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x440]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49d8e2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x49d8e2
push 0
push 1
push 0
push 1
push 0xffffffffffffffff
push dword [ebp - 0x438]
push dword [ebp - 0x42c]
call fcn.0047f450
add esp, 0x1c
mov edx, dword [ebp - 0x438]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x49d8ff
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x42c]
lea edx, [eax - 0x10]
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x49d91a
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.00557e89
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00429b00
push 0x80004005
call fcn.00429b00
int3