Function at 0x1009d690
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b4
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
mov dword [ebp - 0x228], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x214], eax
call fcn.10009c50
test eax, eax
je 0x1009dacd
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [0x1025bea4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...360DeskAna64.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1009dab8
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push str.LocalD3743DC1_C64C_4c84_8435_F6799EABAAE7
push 0
push 1
push 0
call esi
push str.Local5C11F641_0D5F_4339_9B20_7D956E3BD8D1
push 0
push 1
push 0
mov dword [ebp - 0x218], eax
call esi
mov edi, eax
mov eax, dword [ebp - 0x218]
mov dword [ebp - 0x224], edi
test eax, eax
je 0x1009dab8
test edi, edi
je 0x1009dab8
mov esi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
call esi
push edi
call esi
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
push dword [ebp + 0x10]
add eax, 0x10
push dword [ebp - 0x21c]
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x210]
push dword [ebp - 0x228]
push str.EnumProcDLL:___s____s____d_
push eax
call fcn.10002cb0
mov esi, dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
add esp, 0x14
mov dword [ebp - 0x28c], eax
lea eax, [ebp - 0x29c]
mov dword [ebp - 0x294], 0
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x27c], 0
push eax
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x274], 0
mov dword [ebp - 0x270], 0
mov dword [ebp - 0x26c], 0
mov dword [ebp - 0x268], 0
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x29c], 0x3c
mov dword [ebp - 0x298], 0x40
mov dword [ebp - 0x290], str.open
mov dword [ebp - 0x288], esi
mov dword [ebp - 0x280], 0
call fcn.1009dfd0
test eax, eax
jne 0x1009d86d
push dword [ebp - 0x218]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x224]
call edi
xor edi, edi
jmp 0x1009da8b
push 0x1388
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x244]
call fcn.10174440
push 2
push str.LocalBB743DC1_C64C_4c84_8EAD_F6799EABAAE7
push str.LocalD79F00CF_B94D_48a3_80EF_EE4DD7A71FE2
lea ecx, [ebp - 0x244]
call fcn.10174690
lea ecx, [ebp - 0x244]
call fcn.10174680
test eax, eax
je 0x1009d982
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
push eax
lea ecx, [ebp - 0x244]
call fcn.101744a0
cmp dword [ebp - 0x21c], 0
jle 0x1009d91d
mov eax, dword [ebx + 4]
mov edi, dword [ebx]
cmp edi, eax
je 0x1009d914
or esi, 0xffffffff
mov ebx, eax
mov edx, dword [edi]
mov eax, esi
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1009d8ff
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 4
cmp edi, ebx
jne 0x1009d8e6
mov ebx, dword [ebp - 0x24c]
mov esi, dword [ebp - 0x210]
mov edi, dword [ebx]
mov dword [ebx + 4], edi
mov edi, dword [ebp - 0x224]
lea ecx, [ebp - 0x220]
call fcn.1001b890
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x244]
call fcn.101744e0
push 0x10202c44
lea ecx, [ebp - 0x210]
call fcn.10002490
push ebx
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.101b1a50
add esp, 0xc
lea ecx, [ebp - 0x210]
call fcn.10007e10
lea ecx, [ebp - 0x244]
call fcn.10174630
lea ecx, [ebp - 0x220]
call fcn.10007e10
push edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [ebp - 0x218]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x224]
call edi
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
sub eax, ecx
mov edi, dword [ebp - 0x22c]
sar eax, 2
test eax, eax
je 0x1009d9ef
push ecx
mov ecx, edi
call fcn.10002790
mov eax, dword [ebx]
push eax
push dword [ebx + 4]
add eax, 4
push eax
call fcn.1001d990
mov eax, dword [ebx + 4]
add esp, 0xc
mov edx, dword [eax - 4]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1009d9eb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add dword [ebx + 4], 0xfffffffc
lea ecx, [ebp - 0x2b4]
call fcn.101b1e40
lea ecx, [ebp - 0x260]
call fcn.101b2990
push dword [ebp - 0x228]
lea ecx, [ebp - 0x2b4]
call fcn.101b2970
lea eax, [ebp - 0x2b4]
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x250], eax
call fcn.101b31a0
mov ecx, dword [ebp - 0x214]
lea eax, [ebp - 0x2a8]
push eax
call fcn.10021770
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x2b4]
call fcn.101b25c0
push eax
lea ecx, [edi + 4]
call fcn.10002790
lea ecx, [ebp - 0x214]
call fcn.10007e10
lea ecx, [ebp - 0x260]
mov edi, 1
call fcn.101b29c0
lea ecx, [ebp - 0x2b4]
call fcn.101b1f10
lea ecx, [ebp - 0x244]
call fcn.10174470
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1009daa3
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 0x14
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 0x14
lea ecx, [ebp - 0x244]
call fcn.101b1e40
lea ecx, [ebp - 0x260]
call fcn.101b2990
push dword [ebp - 0x228]
lea ecx, [ebp - 0x244]
call fcn.101b2970
push esi
lea ecx, [ebp - 0x244]
call fcn.101b2980
lea eax, [ebp - 0x244]
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x250], eax
call fcn.101b31a0
lea eax, [ebp - 0x238]
mov ecx, ebx
push eax
call fcn.10021770
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x244]
call fcn.101b25c0
push eax
mov ecx, edi
call fcn.10002790
mov edx, dword [ebp - 0x214]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1009db5d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x260]
call fcn.101b29c0
lea ecx, [ebp - 0x244]
call fcn.101b1f10
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 0x14