Function at 0x8c017
Capabilities:
Acquire debug privileges
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.0008d780
cmp eax, 1
jne 0x8c04d
lea ecx, [esp + 0xc]
call fcn.0008d39c
lea esi, [edi + 0x38]
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x8c0ed
push ebx
push ecx
mov ecx, esp
push esi
call fcn.000833f3
lea ecx, [esp + 0x30]
call fcn.0008dd2b
call fcn.0008d780
mov ecx, dword [edi + 0x54]
cmp eax, 1
lea eax, [esp + 0x10]
jne 0x8c088
push 2
jmp 0x8c08a
push 1
push dword [edi + 0x60]
push eax
call fcn.00090ce2
push eax
lea ecx, [esp + 0x24]
call fcn.00082c65
lea ecx, [esp + 0x10]
call fcn.00082dff
cmp dword [esp + 0x20], ebx
jne 0x8c0bd
lea ecx, [esp + 0x28]
call fcn.0008da15
or ebx, 0xffffffff
jmp 0x8c32e
push ecx
push ecx
lea ecx, [esp + 0x30]
call fcn.0008d918
test eax, eax
je 0x8c0e4
push ecx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x30]
call fcn.0008dc65
lea ecx, [esp + 0x28]
call fcn.0008dc4d
lea ecx, [esp + 0x28]
call fcn.0008da15
lea esi, [edi + 0x3c]
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x8c16e
push ebx
push ecx
mov ecx, esp
push esi
call fcn.000833f3
lea ecx, [esp + 0x30]
call fcn.0008dd2b
mov ecx, dword [edi + 0x54]
lea eax, [esp + 0x10]
push 3
push dword [edi + 0x60]
push eax
call fcn.00090ce2
cmp dword [esp + 0x10], ebx
jne 0x8c135
lea ecx, [esp + 0x10]
call fcn.00082dff
jmp 0x8c0ac
push ecx
push ecx
lea ecx, [esp + 0x30]
call fcn.0008d918
test eax, eax
je 0x8c15c
push ecx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x30]
call fcn.0008dc65
lea ecx, [esp + 0x28]
call fcn.0008dc4d
lea ecx, [esp + 0x10]
call fcn.00082dff
lea ecx, [esp + 0x28]
call fcn.0008da15
mov ecx, edi
call fcn.0008bdf7
mov ecx, edi
call fcn.0008bdde
mov ecx, edi
call fcn.0008bba0
test eax, eax
jne 0x8c19f
mov ecx, dword [esp + 0xc]
call fcn.0008d375
lea eax, [edi + 0x5c]
push eax
lea eax, [edi + 0x58]
push eax
push 4
jmp 0x8c2c9
push ecx
mov ecx, edi
call fcn.0008bafb
test eax, eax
jne 0x8c1c3
mov ecx, dword [esp + 0xc]
call fcn.0008d375
lea eax, [edi + 0x5c]
push eax
lea eax, [edi + 0x58]
push eax
push 6
jmp 0x8c2c9
call fcn.0008bd7b
push str.SeDebugPrivilege
lea ecx, [esp + 0x14]
call fcn.000833ab
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, esi
mov ecx, eax
call fcn.0008d3ca
mov ecx, dword [esp + 0x10]
mov esi, eax
call fcn.000858fb
test esi, esi
jne 0x8c20e
mov ecx, dword [esp + 0xc]
call fcn.0008d375
lea eax, [edi + 0x5c]
push eax
lea eax, [edi + 0x58]
push eax
push 3
jmp 0x8c2c9
mov ecx, dword [edi + 0x2c]
call fcn.0008e7e1
test eax, eax
jne 0x8c232
mov ecx, dword [esp + 0xc]
call fcn.0008d375
lea eax, [edi + 0x5c]
push eax
lea eax, [edi + 0x58]
push eax
push 5
jmp 0x8c2c9
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call esi
mov eax, dword [edi + 0x48]
test eax, eax
je 0x8c287
mov esi, ebx
cmp esi, eax
setb cl
call fcn.000856f9
mov eax, dword [edi + 0x40]
lea ecx, [esp + 0x10]
lea eax, [eax + esi*4]
push eax
call fcn.000833f3
lea eax, [esp + 0x10]
push eax
call fcn.0008b64d
mov ecx, dword [esp + 0x10]
call fcn.000858fb
mov eax, dword [edi + 0x48]
inc esi
mov dword [esp + 0x10], ebx
cmp esi, eax
jb 0x8c24a
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1f4
call esi
lea eax, [edi + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.000833f3
lea eax, [esp + 0x10]
push eax
call fcn.0008b64d
mov ecx, dword [esp + 0x10]
call fcn.000858fb
push 0x1f4
call esi
push ecx
call fcn.0008b780
test eax, eax
jne 0x8c2ed
lea eax, [edi + 0x5c]
push eax
lea eax, [edi + 0x58]
push eax
push 7
lea ecx, [esp + 0x1c]
call fcn.000846da
mov ecx, dword [edi + 0x60]
push eax
call fcn.00084a3d
lea ecx, [esp + 0x10]
call fcn.000846b7
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x8c32e
call fcn.0008d780
cmp eax, 1
jne 0x8c300
mov ecx, dword [esp + 0xc]
call fcn.0008d375
lea eax, [edi + 0x5c]
push eax
lea eax, [edi + 0x58]
push eax
push ebx
lea ecx, [esp + 0x1c]
call fcn.000846da
mov ecx, dword [edi + 0x60]
push eax
call fcn.00084a3d
lea ecx, [esp + 0x10]
call fcn.000846b7
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 8
pop ebx
lea ecx, [esp + 0x20]
call fcn.00082dff
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret