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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.1000fc58
cmp eax, 1
jne 0x1000df08
lea ecx, [esp + 0xc]
call fcn.1000f7e0
lea esi, [edi + 0x38]
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000e094
push ebx
push ecx
mov ecx, esp
push esi
call fcn.1000362d
lea ecx, [esp + 0x58]
call fcn.10010203
push ebx
push ecx
lea eax, [edi + 0x40]
mov ecx, esp
push eax
call fcn.1000362d
lea ecx, [esp + 0x40]
call fcn.10010203
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.1000fc58
mov ecx, dword [edi + 0x58]
cmp eax, 1
lea eax, [esp + 0x28]
jne 0x1000dfa7
push 2
push dword [edi + 0x64]
push eax
call fcn.100137a8
push eax
lea ecx, [esp + 0x1c]
call fcn.10002e93
lea ecx, [esp + 0x28]
call fcn.10003036
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push 0x1c800
push esi
call fcn.10002f91
mov eax, dword [esp + 0x1c]
lea ecx, [esi + 0x1c800]
add eax, 0xfffe3800
jmp 0x1000dfe7
push 1
push dword [edi + 0x64]
push eax
call fcn.100137a8
push eax
lea ecx, [esp + 0x1c]
call fcn.10002e93
lea ecx, [esp + 0x28]
call fcn.10003036
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push 0x12e00
push esi
call fcn.10002f91
mov eax, dword [esp + 0x1c]
lea ecx, [esi + 0x12e00]
add eax, 0xfffed200
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.10002f91
test esi, esi
jne 0x1000e022
lea ecx, [esp + 0x20]
call fcn.10003036
lea ecx, [esp + 0x10]
call fcn.10003036
lea ecx, [esp + 0x38]
call fcn.1000feed
lea ecx, [esp + 0x50]
call fcn.1000feed
or ebx, 0xffffffff
jmp 0x1000e2d5
push ecx
push ecx
lea ecx, [esp + 0x58]
call fcn.1000fdf0
test eax, eax
je 0x1000e049
push ecx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x58]
call fcn.1001013d
lea ecx, [esp + 0x50]
call fcn.10010125
push ecx
push ecx
lea ecx, [esp + 0x40]
call fcn.1000fdf0
test eax, eax
je 0x1000e070
push ecx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x40]
call fcn.1001013d
lea ecx, [esp + 0x38]
call fcn.10010125
lea ecx, [esp + 0x20]
call fcn.10003036
lea ecx, [esp + 0x10]
call fcn.10003036
lea ecx, [esp + 0x38]
call fcn.1000feed
lea ecx, [esp + 0x50]
call fcn.1000feed
lea esi, [edi + 0x3c]
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000e115
push ebx
push ecx
mov ecx, esp
push esi
call fcn.1000362d
lea ecx, [esp + 0x58]
call fcn.10010203
mov ecx, dword [edi + 0x58]
lea eax, [esp + 0x20]
push 3
push dword [edi + 0x64]
push eax
call fcn.100137a8
cmp dword [esp + 0x20], ebx
jne 0x1000e0dc
lea ecx, [esp + 0x20]
call fcn.10003036
jmp 0x1000e011
push ecx
push ecx
lea ecx, [esp + 0x58]
call fcn.1000fdf0
test eax, eax
je 0x1000e103
push ecx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x58]
call fcn.1001013d
lea ecx, [esp + 0x50]
call fcn.10010125
lea ecx, [esp + 0x20]
call fcn.10003036
lea ecx, [esp + 0x50]
call fcn.1000feed
mov ecx, edi
call fcn.1000dcb2
mov ecx, edi
call fcn.1000dc99
mov ecx, edi
call fcn.1000da5b
test eax, eax
jne 0x1000e146
mov ecx, dword [esp + 0xc]
call fcn.1000f7b9
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x5c]
push eax
push 4
jmp 0x1000e270
push ecx
mov ecx, edi
call fcn.1000d9b6
test eax, eax
jne 0x1000e16a
mov ecx, dword [esp + 0xc]
call fcn.1000f7b9
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x5c]
push eax
push 6
jmp 0x1000e270
call fcn.1000dc36
push str.SeDebugPrivilege
lea ecx, [esp + 0x14]
call fcn.100035e5
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, esi
mov ecx, eax
call fcn.1000f619
mov ecx, dword [esp + 0x10]
mov esi, eax
call fcn.10005ea5
test esi, esi
jne 0x1000e1b5
mov ecx, dword [esp + 0xc]
call fcn.1000f7b9
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x5c]
push eax
push 3
jmp 0x1000e270
mov ecx, dword [edi + 0x2c]
call fcn.10010cf6
test eax, eax
jne 0x1000e1d9
mov ecx, dword [esp + 0xc]
call fcn.1000f7b9
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x5c]
push eax
push 5
jmp 0x1000e270
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call esi
mov eax, dword [edi + 0x4c]
test eax, eax
je 0x1000e22e
mov esi, ebx
cmp esi, eax
setb cl
call fcn.10005ca3
mov eax, dword [edi + 0x44]
lea ecx, [esp + 0x10]
lea eax, [eax + esi*4]
push eax
call fcn.1000362d
lea eax, [esp + 0x10]
push eax
call fcn.1000d508
mov ecx, dword [esp + 0x10]
call fcn.10005ea5
mov eax, dword [edi + 0x4c]
inc esi
mov dword [esp + 0x10], ebx
cmp esi, eax
jb 0x1000e1f1
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1f4
call esi
lea eax, [edi + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.1000362d
lea eax, [esp + 0x10]
push eax
call fcn.1000d508
mov ecx, dword [esp + 0x10]
call fcn.10005ea5
push 0x1f4
call esi
push ecx
call fcn.1000d63b
test eax, eax
jne 0x1000e294
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x5c]
push eax
push 7
lea ecx, [esp + 0x34]
call fcn.10004b91
mov ecx, dword [edi + 0x64]
push eax
call fcn.10004f2b
lea ecx, [esp + 0x28]
call fcn.10004b6e
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1000e2d5
call fcn.1000fc58
cmp eax, 1
jne 0x1000e2a7
mov ecx, dword [esp + 0xc]
call fcn.1000f7b9
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x5c]
push eax
push ebx
lea ecx, [esp + 0x34]
call fcn.10004b91
mov ecx, dword [edi + 0x64]
push eax
call fcn.10004f2b
lea ecx, [esp + 0x28]
call fcn.10004b6e
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 8
pop ebx
lea ecx, [esp + 0x18]
call fcn.10003036
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret