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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a6564
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [0x639354]
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.00429250
test eax, eax
je 0x49e2a0
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 0x49de3f
mov byte [ebp - 4], 2
jmp 0x49dfb7
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.00560a80
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 0x49dfb3
cmp dword [ebp - 0x448], 2
jne 0x49dfb3
cmp dword [ebp - 0x44c], 0x400
jae 0x49dfb3
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 0x49def0
lea esi, [ebp - 0x410]
jmp 0x49df0a
lea ecx, [ebp - 0x440]
call fcn.0042a9e0
mov esi, dword [eax]
or ebx, 2
mov byte [ebp - 4], 3
mov dword [ebp - 0x434], ebx
call fcn.00429250
test eax, eax
je 0x49e2a0
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 0x49df61
test esi, 0xffff0000
jne 0x49df4b
movzx eax, si
lea ecx, [ebp - 0x430]
push eax
call fcn.00429d90
jmp 0x49df70
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49df50
sub ecx, edx
sar ecx, 1
jmp 0x49df63
xor ecx, ecx
push ecx
push esi
lea ecx, [ebp - 0x430]
call fcn.0042a060
or ebx, 1
mov dword [ebp - 4], 1
mov dword [ebp - 0x434], ebx
test bl, 2
je 0x49dfab
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 0x49dfab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x430]
jmp 0x49dfdd
mov byte [ebp - 4], 5
call fcn.00429250
test eax, eax
je 0x49e2a0
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 0x49e047
mov ecx, dword [edi + 0xc]
shr ecx, 0x1f
test cl, cl
jne 0x49e038
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x49e038
push esi
call fcn.00429b80
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 0x49e02d
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 0x49e047
push dword [eax - 0xc]
lea ecx, [ebp - 0x42c]
push eax
call fcn.0042a060
or edi, 0xffffffff
mov byte [ebp - 4], 1
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x49e062
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 0x49e095
mov ecx, dword [ebp - 0x450]
lea edx, [ebp - 0x410]
add ecx, 4
mov dword [ebp - 0x450], ecx
cmp ecx, edx
jne 0x49de10
cmp dword [eax - 0xc], 0
je 0x49e265
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 0x49e0ba
cmp ax, 6
jne 0x49e0bf
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 0x49e0ef
push 0x104
lea ecx, [ebp - 0x42c]
call fcn.00429eb0
mov edx, dword [ebp - 0x42c]
cmp dword [edx - 8], 0x104
jl 0x49e296
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 0x49e139
push dword [eax - 0xc]
lea ecx, [ebp - 0x42c]
call fcn.00429cd0
mov eax, dword [ebp - 0x42c]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.00429250
test eax, eax
je 0x49e2a0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x438], eax
mov eax, 0x5c52d8
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x438]
test eax, 0xffff0000
jne 0x49e17f
movzx eax, ax
push eax
call fcn.00429d90
jmp 0x49e18b
push 2
push 0x5c52d8
call fcn.0042a060
mov byte [ebp - 4], 8
call fcn.00486b40
test eax, eax
jne 0x49e224
mov eax, dword [ebp - 0x444]
add eax, 0x10
push 0x5c0508
push eax
lea eax, [ebp - 0x440]
push eax
call fcn.00429810
push str.wps.exe
push eax
lea eax, [ebp - 0x444]
mov byte [ebp - 4], 9
push eax
call fcn.00429810
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 0xa
push ecx
lea ecx, [ebp - 0x42c]
push ecx
push eax
call fcn.004801a0
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 0x49e205
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 0x49e242
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x49e242
push 0
push 1
push 0
push 1
push 0xffffffffffffffff
push dword [ebp - 0x438]
push dword [ebp - 0x42c]
call fcn.0047fdb0
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 0x49e25f
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 0x49e27a
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.0055c3a9
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00429b60
push 0x80004005
call fcn.00429b60
int3