Function at 0x10009000
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10239572
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x102cc06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x294], edi
mov dword [ebp - 0x298], eax
mov byte [ebp - 0x281], 1
call fcn.1004c3d3
test al, al
je 0x10009141
mov eax, dword [0x102db9b8]
test eax, eax
je 0x10009141
cmp dword [eax + 4], 4
jl 0x10009141
push str.1114
call fcn.1004bf5d
push str.1011
mov dword [ebp - 0x288], eax
call fcn.1004bf5d
push str.1121
mov edi, eax
call fcn.1004bf5d
push 0x378
push str.CCloudTaskClient::DoRunLocalExe
push ecx
lea ecx, [ebp - 0x160]
mov esi, eax
call fcn.100216e0
mov dword [ebp - 0x28c], eax
test esi, esi
mov dword [ebp - 4], 0
mov ecx, 0x102b5bd0
cmovne ecx, esi
lea esi, [eax + 0x30]
push ecx
push esi
call fcn.1001cf70
test edi, edi
mov eax, 0x102b5bd0
cmovne eax, edi
push eax
push esi
call fcn.1001cf70
mov edi, dword [ebp - 0x294]
add esp, 0x10
mov ecx, esi
push dword [edi]
call fcn.10015e20
push 0x102b5bcc
push esi
call fcn.1001cf70
add esp, 8
mov ecx, esi
push dword [edi + 4]
call fcn.10015e20
mov ecx, dword [ebp - 0x288]
mov eax, 0x102b5bd0
test ecx, ecx
cmovne eax, ecx
push eax
push esi
call fcn.1001cf70
mov ecx, dword [0x102db9b8]
add esp, 8
push dword [ebp - 0x28c]
call fcn.100218a0
lea ecx, [ebp - 0x160]
mov dword [ebp - 4], 0xffffffff
call fcn.1001d4e0
lea eax, [ebp - 0x28]
push eax
call fcn.1000add0
mov ecx, eax
call fcn.1004e6e4
mov dword [ebp - 4], 1
lea edx, [edi + 0x10]
cmp dword [edi + 0x24], 8
jb 0x10009164
mov edx, dword [edi + 0x10]
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov ecx, dword [edi + 0x20]
sub eax, esi
mov dword [ebp - 0x288], esi
cmp ecx, eax
ja 0x100091af
cmp dword [ebp - 0x14], 8
lea edi, [esi + ecx]
lea eax, [ecx + ecx]
mov dword [ebp - 0x18], edi
push eax
mov eax, dword [ebp - 0x288]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push edx
lea eax, [esi + eax*2]
push eax
call fcn.100a46c0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
mov edi, dword [ebp - 0x294]
jmp 0x100091c7
push ecx
push edx
mov byte [ebp - 0x288], 0
push dword [ebp - 0x288]
push ecx
lea ecx, [ebp - 0x28]
call fcn.1001c7e0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000969e
cmp dword [edi + 0xbc], 0
je 0x1000969e
mov byte [ebp - 0x28d], 1
mov dword [ebp - 0x28c], 1
call fcn.1005735f
cmp eax, 3
jl 0x10009462
cmp dword [edi + 0x60], 0x10
lea esi, [edi + 0x4c]
mov ecx, esi
jb 0x1000921a
mov ecx, dword [esi]
mov eax, dword [esi + 0x10]
push 6
push str.normal
push eax
push ecx
mov dword [ebp - 0x28c], eax
call fcn.1001d280
add esp, 0x10
test eax, eax
jne 0x10009247
mov dword [ebp - 0x28c], 1
jmp 0x10009462
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x10009251
mov eax, dword [esi]
push 4
push str.high
push dword [ebp - 0x28c]
push eax
call fcn.1001d280
add esp, 0x10
test eax, eax
jne 0x10009362
call fcn.10056d6f
test eax, eax
jne 0x1000927c
xor al, al
jmp 0x10009282
mov al, byte [ebp - 0x28d]
mov dword [ebp - 0x28c], 1
test al, al
jne 0x10009462
call fcn.1004c3d3
test al, al
je 0x1000933a
mov eax, dword [0x102db9b8]
test eax, eax
je 0x1000933a
cmp dword [eax + 4], 4
jl 0x1000933a
push 0x102b5830
call fcn.1004bf5d
push str.1121
mov dword [ebp - 0x288], eax
call fcn.1004bf5d
push ecx
push 0x3b6
push str.CCloudTaskClient::DoRunLocalExe
push ecx
lea ecx, [ebp - 0x160]
mov esi, eax
call fcn.100216e0
mov edi, eax
test esi, esi
mov byte [ebp - 4], 5
mov ecx, 0x102b5bd0
cmovne ecx, esi
lea esi, [edi + 0x30]
push ecx
push esi
call fcn.1001cf70
mov ecx, dword [ebp - 0x288]
mov eax, 0x102b5bd0
test ecx, ecx
cmovne eax, ecx
push eax
push esi
call fcn.1001cf70
mov ecx, dword [0x102db9b8]
add esp, 0x10
push edi
call fcn.100218a0
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 1
call fcn.1001d4e0
mov cl, byte [ebp - 0x281]
mov eax, dword [ebp - 0x298]
test eax, eax
je 0x10009750
test cl, cl
mov ecx, eax
je 0x1000974b
call fcn.10002ca0
jmp 0x10009750
cmp dword [esi + 0x14], 0x10
jb 0x1000936a
mov esi, dword [esi]
push 0xa
push str.forcedhigh
push dword [ebp - 0x28c]
push esi
call fcn.1001d280
add esp, 0x10
mov dword [ebp - 0x28c], 1
test eax, eax
jne 0x10009462
mov dword [ebp - 0x28c], eax
call fcn.1004c3d3
test al, al
je 0x10009462
mov eax, dword [0x102db9b8]
mov dword [ebp - 0x28c], 0
test eax, eax
je 0x10009462
cmp dword [eax + 4], 4
mov dword [ebp - 0x28c], 0
jl 0x10009462
push str.1116
call fcn.1004bf5d
push str.1121
mov dword [ebp - 0x288], eax
call fcn.1004bf5d
push ecx
push 0x3a2
push str.CCloudTaskClient::DoRunLocalExe
push ecx
lea ecx, [ebp - 0x160]
mov esi, eax
call fcn.100216e0
mov edi, eax
test esi, esi
mov byte [ebp - 4], 2
mov ecx, 0x102b5bd0
cmovne ecx, esi
lea esi, [edi + 0x30]
push ecx
push esi
call fcn.1001cf70
mov ecx, dword [ebp - 0x288]
mov eax, 0x102b5bd0
test ecx, ecx
cmovne eax, ecx
push eax
push esi
call fcn.1001cf70
mov ecx, dword [0x102db9b8]
add esp, 0x10
push edi
call fcn.100218a0
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 1
call fcn.1001d4e0
mov edi, dword [ebp - 0x294]
mov dword [ebp - 0x28c], 0
call fcn.1004c3d3
test al, al
je 0x10009558
mov eax, dword [0x102db9b8]
test eax, eax
je 0x10009558
cmp dword [eax + 4], 4
jl 0x10009558
push str.1117
call fcn.1004bf5d
push str.1121
mov edi, eax
call fcn.1004bf5d
push ecx
push 0x3a9
push str.CCloudTaskClient::DoRunLocalExe
push ecx
lea ecx, [ebp - 0x160]
mov esi, eax
call fcn.100216e0
mov dword [ebp - 0x288], eax
test esi, esi
mov byte [ebp - 4], 3
mov ecx, 0x102b5bd0
cmovne ecx, esi
add eax, 0x30
push ecx
push eax
call fcn.1001cf70
mov esi, 0x102b5bd0
test edi, edi
mov eax, esi
cmovne eax, edi
mov edi, dword [ebp - 0x288]
push eax
lea eax, [edi + 0x30]
push eax
call fcn.1001cf70
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov eax, esi
lea esi, [edi + 0x30]
cmovae ecx, dword [ebp - 0x28]
test ecx, ecx
cmovne eax, ecx
push eax
push esi
call fcn.1001cf70
add esp, 0x18
mov edx, 0x102b582c
mov ecx, esi
call fcn.1001bdd0
mov edi, dword [ebp - 0x294]
cmp dword [edi + 0xc0], 0x10
lea edx, [edi + 0xac]
jb 0x10009531
mov edx, dword [edx]
mov ecx, esi
call fcn.1001bdd0
push dword [ebp - 0x288]
mov ecx, dword [0x102db9b8]
call fcn.100218a0
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 1
call fcn.1001d4e0
push 0
push 0
push 0
push 0x3a8
sub esp, 0x18
add edi, 0xac
mov esi, esp
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
cmp dword [edi + 0x14], 0x10
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x288], eax
jb 0x1000958d
mov edi, dword [edi]
cmp eax, 0x10
jae 0x100095a4
movups xmm0, xmmword [edi]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
jmp 0x10009622
or eax, 0xf
mov ecx, SysReAllocString
cmp eax, ecx
cmova eax, ecx
mov dword [ebp - 0x294], eax
lea ecx, [eax + 1]
cmp ecx, 0x1000
jb 0x100095e9
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.100451eb
add esp, 4
test eax, eax
je 0x10009850
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x100095fc
test ecx, ecx
je 0x100095fa
push ecx
call fcn.100451eb
add esp, 4
mov ecx, eax
jmp 0x100095fc
xor ecx, ecx
mov eax, dword [ebp - 0x288]
inc eax
mov dword [esi], ecx
push eax
push edi
push ecx
call fcn.100a4e10
mov eax, dword [ebp - 0x288]
add esp, 0xc
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x294]
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x40]
push eax
call fcn.10049263
add esp, 0x20
mov ecx, eax
mov byte [ebp - 4], 4
cmp dword [ecx + 0x14], 8
jb 0x1000963c
mov ecx, dword [ecx]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
push dword [ebp - 0x28c]
call fcn.1005716b
mov byte [ebp - 4], 1
add esp, 0x18
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x1000933a
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000968f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10009850
push edx
push ecx
call fcn.100451dd
add esp, 8
jmp 0x1000933a
call fcn.1004c3d3
test al, al
je 0x10009744
mov eax, dword [0x102db9b8]
test eax, eax
je 0x10009744
cmp dword [eax + 4], 4
jl 0x10009744
push str.1115
call fcn.1004bf5d
push str.1121
mov dword [ebp - 0x288], eax
call fcn.1004bf5d
push ecx
push 0x3bd
push str.CCloudTaskClient::DoRunLocalExe
push ecx
lea ecx, [ebp - 0x160]
mov esi, eax
call fcn.100216e0
mov edi, eax
test esi, esi
mov byte [ebp - 4], 6
mov ecx, 0x102b5bd0
cmovne ecx, esi
lea esi, [edi + 0x30]
push ecx
push esi
call fcn.1001cf70
mov ecx, dword [ebp - 0x288]
mov eax, 0x102b5bd0
test ecx, ecx
cmovne eax, ecx
push eax
push esi
call fcn.1001cf70
mov ecx, dword [0x102db9b8]
add esp, 0x10
push edi
call fcn.100218a0
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 1
call fcn.1001d4e0
xor cl, cl
jmp 0x10009340
call fcn.10002df0
call fcn.1004c3d3
test al, al
je 0x100097fb
mov eax, dword [0x102db9b8]
test eax, eax
je 0x100097fb
cmp dword [eax + 4], 4
jl 0x100097fb
push str.1012
call fcn.1004bf5d
push str.1121
mov dword [ebp - 0x298], eax
call fcn.1004bf5d
push ecx
push 0x3c7
push str.CCloudTaskClient::DoRunLocalExe
push ecx
lea ecx, [ebp - 0x280]
mov edi, eax
call fcn.100216e0
mov dword [ebp - 0x288], eax
test edi, edi
mov byte [ebp - 4], 7
mov ecx, 0x102b5bd0
lea esi, [eax + 0x30]
cmovne ecx, edi
push ecx
push esi
call fcn.1001cf70
mov eax, dword [ebp - 0x298]
mov ecx, 0x102b5bd0
test eax, eax
cmovne ecx, eax
push ecx
push esi
call fcn.1001cf70
mov ecx, dword [0x102db9b8]
add esp, 0x10
push dword [ebp - 0x288]
call fcn.100218a0
lea ecx, [ebp - 0x280]
call fcn.1001d4e0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x10009831
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10009827
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10009855
push edx
push ecx
call fcn.100451dd
add esp, 8
mov al, 1
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.100451cc
mov esp, ebp
pop ebp
ret 0x10
call fcn.100b1ddd
call fcn.100b1ddd
int3