Function at 0x100372b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ac9cd
mov eax, dword fs:[0]
push eax
sub esp, 0x564
mov eax, dword [0x100dbc1c]
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 ebx, ecx
mov dword [ebp - 0x43c], ebx
push 0x208
lea eax, [ebp - 0x420]
mov dword [ebp - 0x428], 0
push 0
push eax
call fcn.100837f0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ecx, eax
mov dword [ebp - 0x434], ecx
test ecx, ecx
je 0x10037407
mov esi, ecx
lea edx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10037340
sub esi, edx
sar esi, 1
je 0x10037407
mov edx, dword [ebx + 0x6c]
mov edi, ecx
sub edi, edx
sar edi, 1
mov eax, dword [edx - 0xc]
mov dword [ebp - 0x428], eax
test esi, esi
js 0x10037a3f
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x1003738c
push esi
lea ecx, [ebx + 0x6c]
call fcn.1000a650
mov edx, dword [ebx + 0x6c]
mov eax, dword [edx - 8]
cmp edi, dword [ebp - 0x428]
ja 0x100373dc
lea ecx, [esi + esi]
lea edi, [edx + edi*2]
test ecx, ecx
je 0x100373ed
test edi, edi
jne 0x100373b7
call fcn.100875df
mov dword [eax], 0x16
call fcn.10087506
jmp 0x100373ed
add eax, eax
cmp eax, ecx
jae 0x100373cf
call fcn.100875df
mov dword [eax], 0x22
call fcn.10087506
jmp 0x100373ed
push ecx
push edi
push edx
call fcn.10083270
add esp, 0xc
jmp 0x100373ed
push esi
push dword [ebp - 0x434]
push eax
push edx
call fcn.1000a710
add esp, 0x10
mov eax, dword [ebx + 0x6c]
cmp esi, dword [eax - 8]
jg 0x10037a3f
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebx + 0x6c]
mov word [eax + esi*2], cx
jmp 0x1003740f
lea ecx, [ebx + 0x6c]
call fcn.1000a6b0
lea eax, [ebp - 0x430]
push eax
call fcn.1003b6a0
add esp, 4
cmp dword [eax], 0
mov ebx, 1
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ebx
je 0x10037466
lea eax, [ebp - 0x438]
push eax
call fcn.1003b6a0
add esp, 4
mov ecx, dword [eax]
mov dword [ebp - 4], ebx
mov ebx, 3
mov dword [ebp - 0x428], ebx
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov byte [ebp - 0x421], 1
test al, al
jne 0x1003746d
mov byte [ebp - 0x421], 0
or esi, 0xffffffff
test bl, 2
je 0x100374a1
mov edi, dword [ebp - 0x434]
and ebx, 0xfffffffd
test edi, edi
je 0x100374a1
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x100374a1
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x100374a1
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edi, dword [ebp - 0x42c]
and ebx, 0xfffffffe
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x428], ebx
test edi, edi
je 0x100374da
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x100374da
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x100374da
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
cmp byte [ebp - 0x421], 0
je 0x10037584
lea eax, [ebp - 0x430]
push eax
call fcn.1003b6a0
add esp, 4
mov ebx, dword [eax]
lea ecx, [ebp - 0x4d8]
mov dword [ebp - 4], 2
call fcn.10015e70
mov edi, eax
push str.exe_name:
push edi
mov byte [ebp - 4], 3
call fcn.10012080
mov eax, dword [ebp - 0x43c]
mov esi, 0x100b38d8
mov edx, dword [eax + 0x6c]
test edx, edx
cmovne esi, edx
push esi
push edi
call fcn.10010030
mov eax, dword [ebx]
add esp, 0x10
mov ecx, ebx
push edi
call dword [eax + 0x14]
lea ecx, [ebp - 0x4d8]
call fcn.10012280
mov edi, dword [ebp - 0x42c]
or esi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x1003757e
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x1003757e
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x1003757e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ebx, dword [ebp - 0x428]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100837f0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push dword [0x100e0ea0]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call edi
lea eax, [ebp - 0x218]
push eax
call edi
push str.lpiHpSvc.dll
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10037634
lea eax, [ebp - 0x218]
push eax
call edi
push str.WpSvc.dll
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10037634
lea eax, [ebp - 0x218]
push eax
call edi
push str.TmSvc.dll
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x438]
push eax
call fcn.1003b6a0
add esp, 4
or ebx, 4
mov dword [ebp - 4], 4
cmp dword [eax], 0
mov dword [ebp - 0x428], ebx
je 0x1003768b
lea eax, [ebp - 0x430]
push eax
call fcn.1003b6a0
add esp, 4
mov ecx, dword [eax]
or ebx, 8
mov dword [ebp - 4], 5
mov dword [ebp - 0x428], ebx
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov byte [ebp - 0x421], 1
test al, al
jne 0x10037692
mov byte [ebp - 0x421], 0
test bl, 8
je 0x100376c3
mov edi, dword [ebp - 0x42c]
and ebx, 0xfffffff7
test edi, edi
je 0x100376c3
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x100376c3
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x100376c3
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edi, dword [ebp - 0x434]
and ebx, 0xfffffffb
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x100376f6
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x100376f6
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x100376f6
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
cmp byte [ebp - 0x421], 0
je 0x1003778f
lea eax, [ebp - 0x430]
push eax
call fcn.1003b6a0
add esp, 4
mov edi, dword [eax]
lea ecx, [ebp - 0x4d8]
mov dword [ebp - 4], 6
call fcn.10015e70
mov esi, eax
push str.svc_dll_path:
push esi
mov byte [ebp - 4], 7
call fcn.10012080
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.10010030
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x14]
lea ecx, [ebp - 0x4d8]
call fcn.10012280
mov edi, dword [ebp - 0x42c]
or esi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x10037792
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x10037792
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x10037792
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
jmp 0x10037792
or esi, 0xffffffff
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10036800
add esp, 8
test eax, eax
jne 0x100378c9
lea eax, [ebp - 0x438]
push eax
call fcn.1003b6a0
add esp, 4
or ebx, 0x10
mov dword [ebp - 4], 8
cmp dword [eax], 0
mov dword [ebp - 0x428], ebx
je 0x10037802
lea eax, [ebp - 0x430]
push eax
call fcn.1003b6a0
add esp, 4
mov ecx, dword [eax]
or ebx, 0x20
mov dword [ebp - 4], 9
mov dword [ebp - 0x428], ebx
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov byte [ebp - 0x421], 1
test al, al
jne 0x10037809
mov byte [ebp - 0x421], 0
mov edi, dword [ebp - 0x42c]
test edi, edi
je 0x10037837
test bl, 0x20
je 0x10037837
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x10037837
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x10037837
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edi, dword [ebp - 0x434]
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x10037867
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x10037867
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x10037867
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
cmp byte [ebp - 0x421], 0
je 0x10037a23
lea eax, [ebp - 0x430]
push eax
call fcn.1003b6a0
add esp, 4
mov edi, dword [eax]
lea ecx, [ebp - 0x4d8]
mov dword [ebp - 4], 0xa
call fcn.10015e70
mov esi, eax
push str.check_sign_svc_dll_fail
push esi
mov byte [ebp - 4], 0xb
call fcn.10012080
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x14]
lea ecx, [ebp - 0x4d8]
call fcn.10012280
mov edi, dword [ebp - 0x42c]
jmp 0x100379fe
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 0x43c]
mov dword [ecx + 0x68], eax
test eax, eax
jne 0x10037a23
lea eax, [ebp - 0x438]
push eax
call fcn.1003b6a0
add esp, 4
or ebx, 0x40
mov dword [ebp - 4], 0xc
cmp dword [eax], 0
mov dword [ebp - 0x428], ebx
je 0x10037941
lea eax, [ebp - 0x430]
push eax
call fcn.1003b6a0
add esp, 4
mov ecx, dword [eax]
or ebx, 0x80
mov dword [ebp - 4], 0xd
mov dword [ebp - 0x428], ebx
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov byte [ebp - 0x421], 1
test al, al
jne 0x10037948
mov byte [ebp - 0x421], 0
mov edi, dword [ebp - 0x42c]
test edi, edi
je 0x10037975
test bl, bl
jns 0x10037975
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x10037975
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x10037975
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edi, dword [ebp - 0x434]
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x100379a5
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x100379a5
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov eax, esi
lock xadd dword [edi + 8], eax
jne 0x100379a5
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
cmp byte [ebp - 0x421], 0
je 0x10037a23
lea eax, [ebp - 0x440]
push eax
call fcn.1003b6a0
add esp, 4
mov edi, dword [eax]
lea ecx, [ebp - 0x570]
mov dword [ebp - 4], 0xe
call fcn.10015e70
mov esi, eax
push str.load_svc_dll_fail.
push esi
mov byte [ebp - 4], 0xf
call fcn.10012080
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x14]
lea ecx, [ebp - 0x570]
call fcn.10012280
mov edi, dword [ebp - 0x43c]
test edi, edi
je 0x10037a23
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x10037a23
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x10037a23
mov eax, dword [edi]
mov ecx, edi
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.100763b4
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.1000a7c0
int3