Function at 0x10009010
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10239f12
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x102cd06c]
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.1004c44f
test al, al
je 0x10009151
mov eax, dword [0x102dc9b8]
test eax, eax
je 0x10009151
cmp dword [eax + 4], 4
jl 0x10009151
push str.1114
call fcn.1004bfd9
push str.1011
mov dword [ebp - 0x288], eax
call fcn.1004bfd9
push str.1121
mov edi, eax
call fcn.1004bfd9
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, 0x102b5be0
cmovne ecx, esi
lea esi, [eax + 0x30]
push ecx
push esi
call fcn.1001cf70
test edi, edi
mov eax, 0x102b5be0
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.10015e30
push 0x102b5bdc
push esi
call fcn.1001cf70
add esp, 8
mov ecx, esi
push dword [edi + 4]
call fcn.10015e30
mov ecx, dword [ebp - 0x288]
mov eax, 0x102b5be0
test ecx, ecx
cmovne eax, ecx
push eax
push esi
call fcn.1001cf70
mov ecx, dword [0x102dc9b8]
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.1000ade0
mov ecx, eax
call fcn.1004e7aa
mov dword [ebp - 4], 1
lea edx, [edi + 0x10]
cmp dword [edi + 0x24], 8
jb 0x10009174
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 0x100091bf
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.100a5060
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
mov edi, dword [ebp - 0x294]
jmp 0x100091d7
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 0x100096ae
cmp dword [edi + 0xbc], 0
je 0x100096ae
mov byte [ebp - 0x28d], 1
mov dword [ebp - 0x28c], 1
call fcn.100576e8
cmp eax, 3
jl 0x10009472
cmp dword [edi + 0x60], 0x10
lea esi, [edi + 0x4c]
mov ecx, esi
jb 0x1000922a
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 0x10009257
mov dword [ebp - 0x28c], 1
jmp 0x10009472
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x10009261
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 0x10009372
call fcn.100570f8
test eax, eax
jne 0x1000928c
xor al, al
jmp 0x10009292
mov al, byte [ebp - 0x28d]
mov dword [ebp - 0x28c], 1
test al, al
jne 0x10009472
call fcn.1004c44f
test al, al
je 0x1000934a
mov eax, dword [0x102dc9b8]
test eax, eax
je 0x1000934a
cmp dword [eax + 4], 4
jl 0x1000934a
push 0x102b5840
call fcn.1004bfd9
push str.1121
mov dword [ebp - 0x288], eax
call fcn.1004bfd9
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, 0x102b5be0
cmovne ecx, esi
lea esi, [edi + 0x30]
push ecx
push esi
call fcn.1001cf70
mov ecx, dword [ebp - 0x288]
mov eax, 0x102b5be0
test ecx, ecx
cmovne eax, ecx
push eax
push esi
call fcn.1001cf70
mov ecx, dword [0x102dc9b8]
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 0x10009760
test cl, cl
mov ecx, eax
je 0x1000975b
call fcn.10002ca0
jmp 0x10009760
cmp dword [esi + 0x14], 0x10
jb 0x1000937a
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 0x10009472
mov dword [ebp - 0x28c], eax
call fcn.1004c44f
test al, al
je 0x10009472
mov eax, dword [0x102dc9b8]
mov dword [ebp - 0x28c], 0
test eax, eax
je 0x10009472
cmp dword [eax + 4], 4
mov dword [ebp - 0x28c], 0
jl 0x10009472
push str.1116
call fcn.1004bfd9
push str.1121
mov dword [ebp - 0x288], eax
call fcn.1004bfd9
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, 0x102b5be0
cmovne ecx, esi
lea esi, [edi + 0x30]
push ecx
push esi
call fcn.1001cf70
mov ecx, dword [ebp - 0x288]
mov eax, 0x102b5be0
test ecx, ecx
cmovne eax, ecx
push eax
push esi
call fcn.1001cf70
mov ecx, dword [0x102dc9b8]
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.1004c44f
test al, al
je 0x10009568
mov eax, dword [0x102dc9b8]
test eax, eax
je 0x10009568
cmp dword [eax + 4], 4
jl 0x10009568
push str.1117
call fcn.1004bfd9
push str.1121
mov edi, eax
call fcn.1004bfd9
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, 0x102b5be0
cmovne ecx, esi
add eax, 0x30
push ecx
push eax
call fcn.1001cf70
mov esi, 0x102b5be0
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, 0x102b583c
mov ecx, esi
call fcn.1001bdd0
mov edi, dword [ebp - 0x294]
cmp dword [edi + 0xc0], 0x10
lea edx, [edi + 0xac]
jb 0x10009541
mov edx, dword [edx]
mov ecx, esi
call fcn.1001bdd0
push dword [ebp - 0x288]
mov ecx, dword [0x102dc9b8]
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 0x1000959d
mov edi, dword [edi]
cmp eax, 0x10
jae 0x100095b4
movups xmm0, xmmword [edi]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
jmp 0x10009632
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 0x100095f9
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 0x10009860
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x1000960c
test ecx, ecx
je 0x1000960a
push ecx
call fcn.100451eb
add esp, 4
mov ecx, eax
jmp 0x1000960c
xor ecx, ecx
mov eax, dword [ebp - 0x288]
inc eax
mov dword [esi], ecx
push eax
push edi
push ecx
call fcn.100a57b0
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 0x1000964c
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.100574f4
mov byte [ebp - 4], 1
add esp, 0x18
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x1000934a
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1000969f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10009860
push edx
push ecx
call fcn.100451dd
add esp, 8
jmp 0x1000934a
call fcn.1004c44f
test al, al
je 0x10009754
mov eax, dword [0x102dc9b8]
test eax, eax
je 0x10009754
cmp dword [eax + 4], 4
jl 0x10009754
push str.1115
call fcn.1004bfd9
push str.1121
mov dword [ebp - 0x288], eax
call fcn.1004bfd9
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, 0x102b5be0
cmovne ecx, esi
lea esi, [edi + 0x30]
push ecx
push esi
call fcn.1001cf70
mov ecx, dword [ebp - 0x288]
mov eax, 0x102b5be0
test ecx, ecx
cmovne eax, ecx
push eax
push esi
call fcn.1001cf70
mov ecx, dword [0x102dc9b8]
add esp, 0x10
push edi
call fcn.100218a0
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 1
call fcn.1001d4e0
xor cl, cl
jmp 0x10009350
call fcn.10002df0
call fcn.1004c44f
test al, al
je 0x1000980b
mov eax, dword [0x102dc9b8]
test eax, eax
je 0x1000980b
cmp dword [eax + 4], 4
jl 0x1000980b
push str.1012
call fcn.1004bfd9
push str.1121
mov dword [ebp - 0x298], eax
call fcn.1004bfd9
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, 0x102b5be0
lea esi, [eax + 0x30]
cmovne ecx, edi
push ecx
push esi
call fcn.1001cf70
mov eax, dword [ebp - 0x298]
mov ecx, 0x102b5be0
test eax, eax
cmovne ecx, eax
push ecx
push esi
call fcn.1001cf70
mov ecx, dword [0x102dc9b8]
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 0x10009841
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10009837
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10009865
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.100b277d
call fcn.100b277d
int3