Function at 0x1012ba00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012f5d6
mov eax, dword fs:[0]
push eax
sub esp, 0x830
mov eax, dword [0x101870dc]
xor eax, ebp
mov dword [ebp - 0x24], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x1c]
call fcn.10001be0
mov dword [ebp - 4], 0
push str.V3Svc
push str.SystemCurrentControlSetServices_s
lea eax, [ebp - 0x1c]
push eax
call fcn.100031b0
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.100013d0
mov byte [ebp - 4], 1
call fcn.10128ff0
push eax
lea ecx, [ebp - 0x1c]
call fcn.10003960
push eax
push closesocket
lea ecx, [ebp - 0x14]
call fcn.10001470
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1012bc8d
xor ecx, ecx
mov word [ebp - 0x824], cx
push 0x7fe
push 0
lea edx, [ebp - 0x822]
push edx
call fcn.10108c60
add esp, 0xc
mov dword [ebp - 0x20], 0x400
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x824]
push ecx
push str.ImagePath
lea ecx, [ebp - 0x14]
call fcn.100015a0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1012bc2d
lea edx, [ebp - 0x824]
push edx
lea ecx, [ebp - 0x828]
call fcn.10001c20
mov byte [ebp - 4], 2
push 0x22
lea ecx, [ebp - 0x828]
call fcn.10001fd0
push 0x22
lea ecx, [ebp - 0x828]
call fcn.10001e90
lea ecx, [ebp - 0x828]
call fcn.10003960
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1012bba7
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x828]
call fcn.10003960
push eax
call fcn.101262d0
add esp, 8
movzx ecx, al
test ecx, ecx
jne 0x1012bba5
push 0
push str..esmgmt.cpp
mov ecx, 0x1019d688
call fcn.101281f0
mov edx, dword [ebp - 0x828]
push edx
mov eax, dword [ebp - 0x18]
push eax
push str._csr__svf___u___s
push 0x1019d688
call fcn.10128830
add esp, 0x10
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x82c], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x828]
call fcn.10001ca0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.10001400
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.10001ca0
mov eax, dword [ebp - 0x82c]
jmp 0x1012bd0a
jmp 0x1012bc1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
push 0
push str..esmgmt.cpp
mov ecx, 0x1019d688
call fcn.101281f0
lea edx, [ebp - 0x824]
push edx
mov eax, dword [ebp - 0x18]
push eax
push str._csr__asdsvc.exe_not_exist__u___s_
push 0x1019d688
call fcn.10128830
add esp, 0x10
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x830], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x828]
call fcn.10001ca0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.10001400
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.10001ca0
mov eax, dword [ebp - 0x830]
jmp 0x1012bd0a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x828]
call fcn.10001ca0
jmp 0x1012bc83
push 0
push str..esmgmt.cpp
mov ecx, 0x1019d688
call fcn.101281f0
mov edx, dword [ebp - 0x18]
push edx
push str._csr__ImagePath_not_exist__u_
push 0x1019d688
call fcn.10128830
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x834], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.10001400
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.10001ca0
mov eax, dword [ebp - 0x834]
jmp 0x1012bd0a
lea ecx, [ebp - 0x14]
call fcn.10001420
jmp 0x1012bce0
push 0
push str..esmgmt.cpp
mov ecx, 0x1019d688
call fcn.101281f0
mov ecx, dword [ebp - 0x18]
push ecx
push str._csr__v3svc_reg_open__u
push 0x1019d688
call fcn.10128830
add esp, 0xc
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x838], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.10001400
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.10001ca0
mov eax, dword [ebp - 0x838]
jmp 0x1012bd0a
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x83c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.10001400
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.10001ca0
mov eax, dword [ebp - 0x83c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.10108bbf
mov esp, ebp
pop ebp
ret