Function at 0x1002cd56
Capabilities:
Check if file exists

Disassembly:
push 0x104
mov eax, 0x100786d5
call fcn.1004e336
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, 0x100a3dd0
push eax
mov dword [ebp - 0xe4], eax
call edi
xor ebx, ebx
lea ecx, [ebp - 0x58]
push str.zeroTrust
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 4], ebx
call fcn.100017d6
lea edx, [ebp - 0x58]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x110]
call fcn.10008500
push ebx
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.10001805
push str.enabled
lea ecx, [ebp - 0x28]
call fcn.100017d6
push ebx
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x110]
call fcn.1000a5c9
pop ecx
cmp eax, 1
mov byte [ebp - 4], 3
push 0
push 1
lea ecx, [ebp - 0x28]
setne bl
call fcn.10001805
test bl, bl
je 0x1002cdfc
push str.zeroTrust_disabled
call fcn.1002f536
jmp 0x1002ced9
push str.controller
lea ecx, [ebp - 0x28]
call fcn.100017d6
sub esp, 0x18
mov byte [ebp - 4], 5
mov ecx, esp
push 0x10089368
call fcn.100017d6
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x110]
lea ecx, [ebp - 0x40]
call fcn.10008169
add esp, 0x1c
mov esi, 0x100a3c54
mov ecx, esi
push eax
call fcn.10001785
xor ebx, ebx
lea ecx, [ebp - 0x40]
push ebx
push 1
call fcn.10001805
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.10001805
push str.backupAddrs
lea ecx, [ebp - 0x28]
call fcn.100017d6
sub esp, 0x18
mov byte [ebp - 4], 6
mov ecx, esp
push 0x10089368
call fcn.100017d6
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x110]
lea ecx, [ebp - 0x40]
call fcn.10008169
add esp, 0x1c
mov ecx, 0x100a3c6c
push eax
call fcn.10001785
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.10001805
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.10001805
cmp dword [0x100a3c68], 0x10
cmovae esi, dword [0x100a3c54]
xor edx, edx
mov ecx, esi
call fcn.10030b0e
test eax, eax
jne 0x1002cedf
push str.invalid_controller_address
call fcn.1002f7ab
pop ecx
jmp 0x1002d3e5
push str.zt2_client
lea ecx, [ebp - 0x28]
call fcn.100017d6
push ecx
push ecx
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x70]
call fcn.10035a48
push 0x1008d578
mov edx, eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x40]
call fcn.1002154b
add esp, 0xc
mov esi, 0x100a0b88
mov ecx, esi
push eax
call fcn.1000970b
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.100065b4
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.100065b4
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.10001805
push 0x1008d57c
call fcn.10002f58
pop ecx
push eax
push 0x1008d57c
mov ecx, esi
call fcn.10018831
cmp dword [0x100a0b9c], 8
mov eax, esi
cmovae eax, dword [0x100a0b88]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1002cf9e
cmp dword [0x100a0b9c], 8
cmovae esi, dword [0x100a0b88]
push esi
push str.zt2_client
push str.addon_not_found:__hs_s
call fcn.1002f7ab
add esp, 0xc
jmp 0x1002d3e5
push str.zeroTrust
lea ecx, [ebp - 0x70]
call fcn.100017d6
lea edx, [ebp - 0x70]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x58]
call fcn.1002177d
xor esi, esi
mov byte [ebp - 4], 0xb
push ebx
inc esi
lea ecx, [ebp - 0x70]
push esi
call fcn.10001805
push str.EnableZtApps
lea ecx, [ebp - 0x28]
call fcn.100017d6
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x58]
call fcn.10008313
mov bl, al
mov byte [ebp - 4], 0xb
push 0
neg bl
lea ecx, [ebp - 0x28]
push esi
sbb bl, bl
call fcn.10001805
add bl, 1
je 0x1002d019
push str.zt_rule_disabled
call fcn.1002f7ab
xor ebx, ebx
pop ecx
mov dword [ebp - 0xbc], ebx
jmp 0x1002d3dd
push str.TrustFaceAddrOnly
lea ecx, [ebp - 0x28]
call fcn.100017d6
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x58]
call fcn.10008313
xor ebx, ebx
mov byte [0x100a3dcd], al
push ebx
push esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xb
call fcn.10001805
push str.ZtProcessEnabled
lea ecx, [ebp - 0x28]
call fcn.100017d6
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x58]
call fcn.10008313
push ebx
push esi
lea ecx, [ebp - 0x28]
mov byte [0x100a3dcc], al
mov byte [ebp - 4], 0xb
call fcn.10001805
mov ecx, 0x100a3cf0
call fcn.1000e3a4
cmp byte [0x100a3dcc], bl
je 0x1002d179
push str.ZtProcesses
lea ecx, [ebp - 0x40]
call fcn.100017d6
sub esp, 0x28
mov ecx, fcn.100256bc
mov dword [ebp - 0xc0], esp
mov eax, esp
mov dword [eax + 0x24], ebx
test ecx, ecx
je 0x1002d0bf
mov dword [eax], 0x1008d440
mov dword [eax + 4], ecx
mov dword [eax + 0x24], eax
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 0xcc], esp
push ecx
call fcn.1000eda4
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0x11
push eax
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x1c]
call fcn.1002c113
pop ecx
mov edx, eax
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0xf4]
call fcn.1000eb6b
mov byte [ebp - 4], 0x13
mov edx, eax
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0xec]
call fcn.1000ed16
add esp, 0x28
mov byte [ebp - 4], 0x16
mov edx, eax
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0xc8]
call fcn.1000ed16
add esp, 0x28
mov ecx, 0x100a3cf0
push eax
call fcn.1000d9f1
lea ecx, [ebp - 0xc8]
call fcn.1000d9c6
lea ecx, [ebp - 0xec]
call fcn.1000d9c6
lea ecx, [ebp - 0xf4]
call fcn.1000dae9
lea ecx, [ebp - 0x1c]
call fcn.10002888
push ebx
push esi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xb
call fcn.10001805
push dword [0x100a3cf4]
push str._d_zt_process_loaded
call fcn.1002f3da
pop ecx
pop ecx
push 0x1008c6bc
lea ecx, [ebp - 0x28]
call fcn.100017d6
push str.ZtApps
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x1a
call fcn.100017d6
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x1b
push eax
lea eax, [ebp - 0x40]
push eax
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0xe0]
call fcn.10008428
pop ecx
pop ecx
push ebx
push esi
lea ecx, [ebp - 0x40]
call fcn.10001805
push ebx
push esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x1e
call fcn.10001805
mov eax, dword [ebp - 0xe0]
cmp eax, dword [ebp - 0xdc]
sete al
test al, al
je 0x1002d1f4
push str.no_app_in_zt_rule
call fcn.1002f7ab
pop ecx
mov dword [ebp - 0xbc], ebx
jmp 0x1002d3d2
lea ecx, [ebp - 0xd4]
call fcn.1002cba0
mov byte [ebp - 4], 0x1f
cmp dword [ebp - 0xd0], 0
jne 0x1002d221
push str.no_available_app
call fcn.1002f7ab
mov dword [ebp - 0xbc], ebx
jmp 0x1002d3c6
mov esi, 0x100a3cb4
push esi
call edi
push dword [0x100a3cd0]
push dword [0x100a3ccc]
call fcn.1002de49
mov eax, dword [0x100a3ccc]
mov ecx, 0x100a3ce0
mov dword [0x100a3cd0], eax
call fcn.1002da47
mov ecx, 0x100a3cd8
call fcn.1002da47
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [ebp - 0xe0]
mov dword [ebp - 0xc4], ebx
mov dword [ebp - 0xcc], edi
cmp edi, dword [ebp - 0xdc]
je 0x1002d3b3
mov ebx, dword [ebp - 0xd4]
push edi
lea eax, [ebp - 0xc0]
push eax
lea ecx, [ebp - 0xd4]
call fcn.10009d31
mov esi, dword [ebp - 0xc0]
cmp esi, ebx
je 0x1002d2b2
lea eax, [esi + 0x10]
mov ecx, edi
push eax
call fcn.100058d6
shr eax, 0x1f
test al, al
je 0x1002d2b4
mov esi, ebx
cmp esi, ebx
je 0x1002d398
mov ebx, dword [esi + 0x5c]
cmp ebx, dword [esi + 0x60]
je 0x1002d392
mov edi, dword [ebp - 0xc4]
xor eax, eax
mov dword [ebp - 0xa4], 0xf
mov dword [ebp - 0xa8], eax
mov byte [ebp - 0xb8], al
push str.127.0.0.99
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0x20
call fcn.100017d6
mov dword [ebp - 0x78], 0x6300007f
lea edx, [ebp - 0xb8]
mov byte [ebp - 4], 0x21
mov ecx, ebx
call fcn.1002c54b
test al, al
je 0x1002d358
lea ecx, [ebp - 0xb8]
call fcn.1002cb29
shr ax, 8
lea ecx, [ebp - 0xb8]
mov word [ebp - 0xc2], ax
call fcn.1002cb29
shl ax, 8
mov ecx, 0x100a3c50
or ax, word [ebp - 0xc2]
mov word [ebp - 0x74], ax
lea eax, [ebp - 0xb8]
push eax
call fcn.1002c6f9
inc edi
push 0
push 1
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0x1f
call fcn.10001805
push 0
push 1
lea ecx, [ebp - 0xb8]
call fcn.10001805
add ebx, 0x60
cmp ebx, dword [esi + 0x60]
jne 0x1002d2ce
mov dword [ebp - 0xc4], edi
mov edi, dword [ebp - 0xcc]
mov ebx, dword [ebp - 0xd4]
add edi, 0x18
mov dword [ebp - 0xcc], edi
cmp edi, dword [ebp - 0xdc]
jne 0x1002d283
mov ebx, dword [ebp - 0xc4]
push ebx
push str._d_service_will_be_zt
call fcn.1002f3da
pop ecx
mov byte [ebp - 0xbc], 1
pop ecx
lea ecx, [ebp - 0xd4]
call fcn.1002d955
lea ecx, [ebp - 0xe0]
call fcn.10002888
lea ecx, [ebp - 0x58]
call fcn.10039283
lea ecx, [ebp - 0x110]
call fcn.10039283
push 0x100a3dd0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [ebp - 0xbc]
call fcn.1004e2e0
ret