Function at 0x100140d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007b854
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x100a6204]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x248], esi
push dword [esi]
push str.CComputerZLockHelper_enter_app_s
call fcn.10007880
push dword [esi + 8]
call fcn.100293b0
push dword [esi + 0x10]
push dword [esi + 0xc]
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.10029000
add esp, 0x1c
mov dword [ebp - 4], 0
push dword [ebp - 0x24c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1001417a
push dword [ebp - 0x24c]
push str.CComputerZLockHelper_rootdir_s_is_not_exist
call fcn.10007880
add esp, 8
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x24c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jmp 0x100148aa
mov eax, dword [esi + 0x4c]
cmp dword [eax - 0xc], 0
jne 0x10014192
push str.CComputerZLockHelper_drivename_empty
call fcn.10007880
add esp, 4
jmp 0x1001415a
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x240], 0
push ecx
push eax
call fcn.10014e60
add esp, 8
test eax, eax
js 0x10014213
cmp dword [ebp - 0x240], 0
je 0x10014213
lea eax, [ebp - 0x240]
mov dword [ebp - 0x240], 0
push eax
push dword [esi + 0x4c]
call fcn.10014d70
add esp, 8
test eax, eax
js 0x10014213
cmp dword [ebp - 0x240], 0
je 0x10014213
lea eax, [ebp - 0x234]
push eax
push dword [esi + 0x4c]
call fcn.10014bc0
add esp, 8
test eax, eax
js 0x10014213
cmp dword [ebp - 0x230], 4
jne 0x10014213
push str.CComputerZLockHelper_drive_ok
call fcn.10007880
add esp, 4
jmp 0x1001415a
call fcn.10008280
mov ecx, eax
test ecx, ecx
je 0x100148e0
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x244], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x244]
push str.drv_start
call fcn.100074e0
test al, al
jne 0x1001425c
push 9
push str.drv_start
lea ecx, [ebp - 0x244]
call fcn.1000f980
mov byte [ebp - 4], 5
mov ecx, dword [0x100a7988]
test ecx, ecx
jne 0x100142c4
push 0x100a5060
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x100a7988], 0
jne 0x100142b3
push 0xc
call fcn.10048f93
add esp, 4
mov dword [ebp - 0x250], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x100142a1
mov ecx, eax
call fcn.10021e80
mov ecx, eax
jmp 0x100142a3
xor ecx, ecx
mov byte [ebp - 4], 5
xchg dword [ebp - 0x240], eax
mov dword [0x100a7988], ecx
push 0x100a5060
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x100a7988]
push 0
push esi
lea eax, [ebp - 0x244]
push eax
call fcn.10022460
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp - 0x244]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100142f7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10051fb0
add esp, 0xc
cmp dword [0x100a5038], 0
je 0x10014403
push str.GetNativeSystemInfo
push 0x10083f94
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100143f9
xorps xmm0, xmm0
mov dword [ebp - 0x21c], 0
lea ecx, [ebp - 0x23c]
push ecx
movups xmmword [ebp - 0x23c], xmm0
movups xmmword [ebp - 0x22c], xmm0
call eax
mov ax, word [ebp - 0x23c]
cmp ax, 9
je 0x100143ef
cmp ax, 6
je 0x100143ef
cmp ax, 0xc
je 0x100143ef
push str.IsWow64Process2
push 0x100840cc
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x250], eax
test eax, eax
je 0x100143e6
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x250]
test eax, eax
je 0x100143e6
xor eax, eax
mov ecx, 0xaa64
cmp word [ebp - 0x240], cx
sete al
mov dword [0x100a797c], eax
jmp 0x100143f9
xor eax, eax
mov dword [0x100a797c], eax
jmp 0x100143f9
mov dword [0x100a797c], 1
mov dword [0x100a5038], 0
xor eax, eax
cmp dword [0x100a797c], eax
setne al
push dword [esi + eax*4 + 0x44]
lea eax, [eax*4 + 0x44]
push dword [ebp - 0x24c]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100144a1
lea eax, [ebp - 0x218]
push eax
push str.CComputerZLockHelper_drivepath_s_is_not_fail
call fcn.10007880
add esp, 8
lea ecx, [ebp - 0x248]
push str.drv_other
call fcn.10003ca0
mov byte [ebp - 4], 8
lea eax, [ebp - 0x248]
push 0
push esi
push eax
call fcn.10008140
mov ecx, eax
call fcn.10022460
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x248]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001449c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10014892
lea eax, [ebp - 0x240]
mov dword [ebp - 0x240], 0
push eax
push dword [esi + 0x4c]
call fcn.10014e60
add esp, 8
test eax, eax
js 0x100144ce
cmp dword [ebp - 0x240], 0
jne 0x1001468d
call fcn.10008280
mov ecx, eax
test ecx, ecx
je 0x100148ea
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x244], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x244]
call fcn.100074e0
test al, al
jne 0x10014532
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10014510
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x244]
call fcn.1000f980
mov byte [ebp - 4], 0xc
mov esi, dword [ebp - 0x244]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10014552
mov dword [ebp - 0x240], eax
jmp 0x10014600
mov ecx, dword [0x100a79ac]
test ecx, ecx
jne 0x100145b6
push 0x100a5084
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x100a79ac], 0
jne 0x100145a5
push 4
call fcn.10048f93
add esp, 4
mov dword [ebp - 0x250], eax
mov byte [ebp - 4], 0xd
test eax, eax
je 0x10014593
mov ecx, eax
call fcn.10013420
mov ecx, eax
jmp 0x10014595
xor ecx, ecx
mov byte [ebp - 4], 0xc
xchg dword [ebp - 0x250], eax
mov dword [0x100a79ac], ecx
push 0x100a5084
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x100a79ac]
push esi
call fcn.10013520
test eax, eax
jne 0x100145d9
push str.check_sign_fail
call fcn.10007880
add esp, 4
mov dword [ebp - 0x240], 0
jmp 0x10014600
mov eax, dword [ebp - 0x248]
push 0
push 0
push esi
mov eax, dword [eax + 0x4c]
push 1
push eax
push eax
call fcn.10014c90
xor ecx, ecx
add esp, 0x18
test eax, eax
setns cl
mov dword [ebp - 0x240], ecx
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1001461b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x240], 0
jne 0x10014687
push str.CComputerZLockHelper_install_fail
call fcn.10007880
add esp, 4
lea ecx, [ebp - 0x240]
push str.drv_fails
call fcn.10003ca0
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x240]
mov esi, dword [ebp - 0x248]
push 0
push esi
push eax
call fcn.10008140
mov ecx, eax
call fcn.10022460
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x240]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10014682
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10014892
mov esi, dword [ebp - 0x248]
lea eax, [ebp - 0x248]
mov dword [ebp - 0x248], 0
push eax
push dword [esi + 0x4c]
call fcn.10014d70
add esp, 8
test eax, eax
js 0x100146b6
cmp dword [ebp - 0x248], 0
jne 0x10014724
push 0
push dword [esi + 0x4c]
call fcn.10014a60
add esp, 8
test eax, eax
jns 0x10014724
push str.CComputerZLockHelper_Enable_fail
call fcn.10007880
add esp, 4
lea ecx, [ebp - 0x248]
push str.drv_fails
call fcn.10003ca0
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x248]
push 0
push esi
push eax
call fcn.10008140
mov ecx, eax
call fcn.10022460
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x248]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001471f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10014892
lea eax, [ebp - 0x234]
push eax
push dword [esi + 0x4c]
call fcn.10014bc0
add esp, 8
test eax, eax
js 0x10014743
cmp dword [ebp - 0x230], 4
je 0x100147b1
push 0
push dword [esi + 0x4c]
call fcn.10014f40
add esp, 8
test eax, eax
jns 0x100147b1
push str.CComputerZLockHelper_StartPlusWaiting_fail
call fcn.10007880
add esp, 4
lea ecx, [ebp - 0x248]
push str.drv_fails
call fcn.10003ca0
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0x248]
push 0
push esi
push eax
call fcn.10008140
mov ecx, eax
call fcn.10022460
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x248]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100147ac
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10014892
call fcn.10008280
mov ecx, eax
test ecx, ecx
je 0x100148f4
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x244], eax
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x244]
push str.drv_succ
call fcn.100074e0
test al, al
jne 0x100147fa
push 8
push str.drv_succ
lea ecx, [ebp - 0x244]
call fcn.1000f980
mov byte [ebp - 4], 0x19
mov ecx, dword [0x100a7988]
test ecx, ecx
jne 0x10014862
push 0x100a5060
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x100a7988], 0
jne 0x10014851
push 0xc
call fcn.10048f93
add esp, 4
mov dword [ebp - 0x250], eax
mov byte [ebp - 4], 0x1a
test eax, eax
je 0x1001483f
mov ecx, eax
call fcn.10021e80
mov ecx, eax
jmp 0x10014841
xor ecx, ecx
mov byte [ebp - 4], 0x19
xchg dword [ebp - 0x250], eax
mov dword [0x100a7988], ecx
push 0x100a5060
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x100a7988]
push 0
push esi
lea eax, [ebp - 0x244]
push eax
call fcn.10022460
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x244]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10014892
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x24c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x100148b4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esi]
push str.CComputerZLockHelper_end_app_s
call fcn.10007880
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10049342
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.100074c0
push 0x80004005
call fcn.100074c0
push 0x80004005
call fcn.100074c0
int3