Function at 0x411ff8
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
xor ebx, ebx
mov edi, ecx
mov esi, ebx
mov dword [esp + 0x1c], ebx
push edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call fcn.00414827
cmp eax, 1
jne 0x412030
lea ecx, [esp + 0xc]
call fcn.004146a7
lea esi, [edi + 0x38]
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4121cc
push ecx
push ecx
mov ecx, esp
push esi
call fcn.00403611
lea ecx, [esp + 0x58]
call fcn.00414dd9
push ecx
push ecx
lea eax, [edi + 0x40]
mov ecx, esp
push eax
call fcn.00403611
lea ecx, [esp + 0x40]
call fcn.00414dd9
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.00414827
mov ecx, dword [edi + 0x58]
cmp eax, 1
lea eax, [esp + 0x28]
jne 0x4120cf
push 2
push dword [edi + 0x64]
push eax
call fcn.00419ab7
push eax
lea ecx, [esp + 0x1c]
call fcn.004033a5
lea ecx, [esp + 0x28]
call fcn.00403457
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push 0x1c800
push esi
call fcn.004032d4
mov eax, dword [esp + 0x1c]
lea ecx, [esi + 0x1c800]
add eax, 0xfffe3800
jmp 0x41210f
push 1
push dword [edi + 0x64]
push eax
call fcn.00419ab7
push eax
lea ecx, [esp + 0x1c]
call fcn.004033a5
lea ecx, [esp + 0x28]
call fcn.00403457
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push 0x12e00
push esi
call fcn.004032d4
mov eax, dword [esp + 0x1c]
lea ecx, [esi + 0x12e00]
add eax, 0xfffed200
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.004032d4
test esi, esi
jne 0x412152
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x41212b
call fcn.00406955
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x412138
call fcn.00406955
lea ecx, [esp + 0x38]
call fcn.00414e30
lea ecx, [esp + 0x50]
call fcn.00414e30
or ebx, 0xffffffff
jmp 0x41243d
push ecx
push ecx
lea ecx, [esp + 0x58]
call fcn.0041523e
test eax, eax
je 0x412179
push ecx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x58]
call fcn.00415173
lea ecx, [esp + 0x50]
call fcn.0041528b
push ecx
push ecx
lea ecx, [esp + 0x40]
call fcn.0041523e
test eax, eax
je 0x4121a0
push ecx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x40]
call fcn.00415173
lea ecx, [esp + 0x38]
call fcn.0041528b
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x4121ad
call fcn.00406955
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4121ba
call fcn.00406955
lea ecx, [esp + 0x38]
call fcn.00414e30
lea ecx, [esp + 0x50]
call fcn.00414e30
lea esi, [edi + 0x3c]
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x412259
push ecx
push ecx
mov ecx, esp
push esi
call fcn.00403611
lea ecx, [esp + 0x58]
call fcn.00414dd9
mov ecx, dword [edi + 0x58]
lea eax, [esp + 0x20]
push 3
push dword [edi + 0x64]
push eax
call fcn.00419ab7
cmp dword [esp + 0x20], ebx
jne 0x412220
lea ecx, [esp + 0x20]
call fcn.00403457
lea ecx, [esp + 0x50]
call fcn.00414e30
or ebx, 0xffffffff
jmp 0x412430
push ecx
push ecx
lea ecx, [esp + 0x58]
call fcn.0041523e
test eax, eax
je 0x412247
push ecx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x58]
call fcn.00415173
lea ecx, [esp + 0x50]
call fcn.0041528b
lea ecx, [esp + 0x20]
call fcn.00403457
lea ecx, [esp + 0x50]
call fcn.00414e30
mov ecx, edi
call fcn.0041263d
lea ecx, [edi + 0x20]
lea edx, [esp + 0x50]
call fcn.004147a7
mov ecx, edi
call fcn.00412846
test eax, eax
jne 0x41228f
mov ecx, dword [esp + 0xc]
call fcn.004146d4
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x5c]
push eax
push 4
jmp 0x4123ba
push ecx
mov ecx, edi
call fcn.00412a41
test eax, eax
jne 0x4122b3
mov ecx, dword [esp + 0xc]
call fcn.004146d4
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x5c]
push eax
push 6
jmp 0x4123ba
call fcn.004127e3
push str.SeDebugPrivilege
lea ecx, [esp + 0x14]
call fcn.0040346a
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, esi
mov ecx, eax
call fcn.00414620
mov ecx, dword [esp + 0x10]
mov esi, eax
call fcn.004068b7
test esi, esi
jne 0x4122fe
mov ecx, dword [esp + 0xc]
call fcn.004146d4
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x5c]
push eax
push 3
jmp 0x4123ba
mov ecx, dword [edi + 0x2c]
call fcn.00415e50
test eax, eax
jne 0x412322
mov ecx, dword [esp + 0xc]
call fcn.004146d4
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x5c]
push eax
push 5
jmp 0x4123ba
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call esi
mov eax, dword [edi + 0x4c]
test eax, eax
je 0x412377
mov esi, ebx
cmp esi, eax
setb cl
call fcn.0040675f
mov eax, dword [edi + 0x44]
lea ecx, [esp + 0x10]
lea eax, [eax + esi*4]
push eax
call fcn.00403611
lea eax, [esp + 0x10]
push eax
call fcn.0041304c
mov ecx, dword [esp + 0x10]
call fcn.004068b7
mov eax, dword [edi + 0x4c]
inc esi
mov dword [esp + 0x10], ebx
cmp esi, eax
jb 0x41233a
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1f4
call esi
lea eax, [edi + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.00403611
lea eax, [esp + 0x10]
push eax
call fcn.0041304c
mov ecx, dword [esp + 0x10]
call fcn.004068b7
push 0x3e8
call esi
push 1
call fcn.00412b16
test eax, eax
jne 0x4123c3
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x5c]
push eax
push 7
mov esi, dword [edi + 0x64]
lea ecx, [esp + 0x34]
jmp 0x4123f0
call fcn.00414827
cmp eax, 1
jne 0x4123d6
mov ecx, dword [esp + 0xc]
call fcn.004146d4
call fcn.00412510
mov esi, dword [edi + 0x64]
lea ecx, [edi + 0x60]
lea edx, [edi + 0x5c]
push ecx
lea ecx, [esp + 0x2c]
push edx
test eax, eax
jne 0x41240f
push 0xa
call fcn.00404fb9
push eax
mov ecx, esi
call fcn.00405262
lea ecx, [esp + 0x28]
call fcn.00405014
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x412430
push ebx
call fcn.00404fb9
push eax
mov ecx, esi
call fcn.00405262
lea ecx, [esp + 0x28]
call fcn.00405014
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 8
pop ebx
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x41243d
call fcn.00406955
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret