Function at 0x411a69
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.004138ef
cmp eax, 1
jne 0x411aa1
lea ecx, [esp + 0xc]
call fcn.00413473
lea esi, [edi + 0x38]
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x411c3d
push ebx
push ecx
mov ecx, esp
push esi
call fcn.00404656
lea ecx, [esp + 0x58]
call fcn.00413fdb
push ebx
push ecx
lea eax, [edi + 0x40]
mov ecx, esp
push eax
call fcn.00404656
lea ecx, [esp + 0x40]
call fcn.00413fdb
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.004138ef
mov ecx, dword [edi + 0x58]
cmp eax, 1
lea eax, [esp + 0x28]
jne 0x411b40
push 2
push dword [edi + 0x64]
push eax
call fcn.0041780e
push eax
lea ecx, [esp + 0x1c]
call fcn.00403eca
lea ecx, [esp + 0x28]
call fcn.00404081
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push 0x1c800
push esi
call fcn.00403fc7
mov eax, dword [esp + 0x1c]
lea ecx, [esi + 0x1c800]
add eax, 0xfffe3800
jmp 0x411b80
push 1
push dword [edi + 0x64]
push eax
call fcn.0041780e
push eax
lea ecx, [esp + 0x1c]
call fcn.00403eca
lea ecx, [esp + 0x28]
call fcn.00404081
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push 0x12e00
push esi
call fcn.00403fc7
mov eax, dword [esp + 0x1c]
lea ecx, [esi + 0x12e00]
add eax, 0xfffed200
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.00403fc7
test esi, esi
jne 0x411bc3
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x411b9c
call fcn.00406f66
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x411ba9
call fcn.00406f66
lea ecx, [esp + 0x38]
call fcn.00413c16
lea ecx, [esp + 0x50]
call fcn.00413c16
or ebx, 0xffffffff
jmp 0x411ea9
push ecx
push ecx
lea ecx, [esp + 0x58]
call fcn.00413b2f
test eax, eax
je 0x411bea
push ecx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x58]
call fcn.00413ef9
lea ecx, [esp + 0x50]
call fcn.00413ee1
push ecx
push ecx
lea ecx, [esp + 0x40]
call fcn.00413b2f
test eax, eax
je 0x411c11
push ecx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x40]
call fcn.00413ef9
lea ecx, [esp + 0x38]
call fcn.00413ee1
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x411c1e
call fcn.00406f66
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x411c2b
call fcn.00406f66
lea ecx, [esp + 0x38]
call fcn.00413c16
lea ecx, [esp + 0x50]
call fcn.00413c16
lea esi, [edi + 0x3c]
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x411cca
push ebx
push ecx
mov ecx, esp
push esi
call fcn.00404656
lea ecx, [esp + 0x58]
call fcn.00413fdb
mov ecx, dword [edi + 0x58]
lea eax, [esp + 0x20]
push 3
push dword [edi + 0x64]
push eax
call fcn.0041780e
cmp dword [esp + 0x20], ebx
jne 0x411c91
lea ecx, [esp + 0x20]
call fcn.00404081
lea ecx, [esp + 0x50]
call fcn.00413c16
or ebx, 0xffffffff
jmp 0x411e9c
push ecx
push ecx
lea ecx, [esp + 0x58]
call fcn.00413b2f
test eax, eax
je 0x411cb8
push ecx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x58]
call fcn.00413ef9
lea ecx, [esp + 0x50]
call fcn.00413ee1
lea ecx, [esp + 0x20]
call fcn.00404081
lea ecx, [esp + 0x50]
call fcn.00413c16
mov ecx, edi
call fcn.00411760
mov ecx, edi
call fcn.00411747
mov ecx, edi
call fcn.004114f4
test eax, eax
jne 0x411cfb
mov ecx, dword [esp + 0xc]
call fcn.0041344c
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x5c]
push eax
push 4
jmp 0x411e26
push ecx
mov ecx, edi
call fcn.0041141f
test eax, eax
jne 0x411d1f
mov ecx, dword [esp + 0xc]
call fcn.0041344c
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x5c]
push eax
push 6
jmp 0x411e26
call fcn.004116e4
push str.SeDebugPrivilege
lea ecx, [esp + 0x14]
call fcn.0040460a
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, esi
mov ecx, eax
call fcn.004132f4
mov ecx, dword [esp + 0x10]
mov esi, eax
call fcn.00406f1d
test esi, esi
jne 0x411d6a
mov ecx, dword [esp + 0xc]
call fcn.0041344c
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x5c]
push eax
push 3
jmp 0x411e26
mov ecx, dword [edi + 0x2c]
call fcn.00414ac7
test eax, eax
jne 0x411d8e
mov ecx, dword [esp + 0xc]
call fcn.0041344c
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x5c]
push eax
push 5
jmp 0x411e26
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call esi
mov eax, dword [edi + 0x4c]
test eax, eax
je 0x411de3
mov esi, ebx
cmp esi, eax
setb cl
call fcn.00406d65
mov eax, dword [edi + 0x44]
lea ecx, [esp + 0x10]
lea eax, [eax + esi*4]
push eax
call fcn.00404656
lea eax, [esp + 0x10]
push eax
call fcn.00410e64
mov ecx, dword [esp + 0x10]
call fcn.00406f1d
mov eax, dword [edi + 0x4c]
inc esi
mov dword [esp + 0x10], ebx
cmp esi, eax
jb 0x411da6
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1f4
call esi
lea eax, [edi + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.00404656
lea eax, [esp + 0x10]
push eax
call fcn.00410e64
mov ecx, dword [esp + 0x10]
call fcn.00406f1d
push 0x3e8
call esi
push 1
call fcn.00410f97
test eax, eax
jne 0x411e2f
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x5c]
push eax
push 7
mov esi, dword [edi + 0x64]
lea ecx, [esp + 0x34]
jmp 0x411e5c
call fcn.004138ef
cmp eax, 1
jne 0x411e42
mov ecx, dword [esp + 0xc]
call fcn.0041344c
call fcn.00411906
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 0x411e7b
push 0xa
call fcn.00405b49
push eax
mov ecx, esi
call fcn.00405f32
lea ecx, [esp + 0x28]
call fcn.00405b26
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x411e9c
push ebx
call fcn.00405b49
push eax
mov ecx, esi
call fcn.00405f32
lea ecx, [esp + 0x28]
call fcn.00405b26
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 8
pop ebx
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x411ea9
call fcn.00406f66
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret