Function at 0x40dd72
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.00411177
cmp eax, 1
jne 0x40dda8
lea ecx, [esp + 0xc]
call fcn.00410cff
lea esi, [edi + 0x38]
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40df34
push ebx
push ecx
mov ecx, esp
push esi
call fcn.0040373f
lea ecx, [esp + 0x58]
call fcn.00411722
push ebx
push ecx
lea eax, [edi + 0x40]
mov ecx, esp
push eax
call fcn.0040373f
lea ecx, [esp + 0x40]
call fcn.00411722
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.00411177
mov ecx, dword [edi + 0x58]
cmp eax, 1
lea eax, [esp + 0x28]
jne 0x40de47
push 2
push dword [edi + 0x64]
push eax
call fcn.00415847
push eax
lea ecx, [esp + 0x1c]
call fcn.00402fce
lea ecx, [esp + 0x28]
call fcn.00403148
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push 0x1c800
push esi
call fcn.004030cc
mov eax, dword [esp + 0x1c]
lea ecx, [esi + 0x1c800]
add eax, 0xfffe3800
jmp 0x40de87
push 1
push dword [edi + 0x64]
push eax
call fcn.00415847
push eax
lea ecx, [esp + 0x1c]
call fcn.00402fce
lea ecx, [esp + 0x28]
call fcn.00403148
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push 0x12e00
push esi
call fcn.004030cc
mov eax, dword [esp + 0x1c]
lea ecx, [esi + 0x12e00]
add eax, 0xfffed200
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.004030cc
test esi, esi
jne 0x40dec2
lea ecx, [esp + 0x20]
call fcn.00403148
lea ecx, [esp + 0x10]
call fcn.00403148
lea ecx, [esp + 0x38]
call fcn.0041140c
lea ecx, [esp + 0x50]
call fcn.0041140c
or ebx, 0xffffffff
jmp 0x40e175
push ecx
push ecx
lea ecx, [esp + 0x58]
call fcn.0041130f
test eax, eax
je 0x40dee9
push ecx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x58]
call fcn.0041165c
lea ecx, [esp + 0x50]
call fcn.00411644
push ecx
push ecx
lea ecx, [esp + 0x40]
call fcn.0041130f
test eax, eax
je 0x40df10
push ecx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x40]
call fcn.0041165c
lea ecx, [esp + 0x38]
call fcn.00411644
lea ecx, [esp + 0x20]
call fcn.00403148
lea ecx, [esp + 0x10]
call fcn.00403148
lea ecx, [esp + 0x38]
call fcn.0041140c
lea ecx, [esp + 0x50]
call fcn.0041140c
lea esi, [edi + 0x3c]
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40dfb5
push ebx
push ecx
mov ecx, esp
push esi
call fcn.0040373f
lea ecx, [esp + 0x58]
call fcn.00411722
mov ecx, dword [edi + 0x58]
lea eax, [esp + 0x20]
push 3
push dword [edi + 0x64]
push eax
call fcn.00415847
cmp dword [esp + 0x20], ebx
jne 0x40df7c
lea ecx, [esp + 0x20]
call fcn.00403148
jmp 0x40deb1
push ecx
push ecx
lea ecx, [esp + 0x58]
call fcn.0041130f
test eax, eax
je 0x40dfa3
push ecx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x58]
call fcn.0041165c
lea ecx, [esp + 0x50]
call fcn.00411644
lea ecx, [esp + 0x20]
call fcn.00403148
lea ecx, [esp + 0x50]
call fcn.0041140c
mov ecx, edi
call fcn.0040db52
mov ecx, edi
call fcn.0040db39
mov ecx, edi
call fcn.0040d8fb
test eax, eax
jne 0x40dfe6
mov ecx, dword [esp + 0xc]
call fcn.00410cd8
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x5c]
push eax
push 4
jmp 0x40e110
push ecx
mov ecx, edi
call fcn.0040d856
test eax, eax
jne 0x40e00a
mov ecx, dword [esp + 0xc]
call fcn.00410cd8
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x5c]
push eax
push 6
jmp 0x40e110
call fcn.0040dad6
push str.SeDebugPrivilege
lea ecx, [esp + 0x14]
call fcn.004036f7
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, esi
mov ecx, eax
call fcn.00410b38
mov ecx, dword [esp + 0x10]
mov esi, eax
call fcn.00405feb
test esi, esi
jne 0x40e055
mov ecx, dword [esp + 0xc]
call fcn.00410cd8
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x5c]
push eax
push 3
jmp 0x40e110
mov ecx, dword [edi + 0x2c]
call fcn.0041229c
test eax, eax
jne 0x40e079
mov ecx, dword [esp + 0xc]
call fcn.00410cd8
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x5c]
push eax
push 5
jmp 0x40e110
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call esi
mov eax, dword [edi + 0x4c]
test eax, eax
je 0x40e0ce
mov esi, ebx
cmp esi, eax
setb cl
call fcn.00405de9
mov eax, dword [edi + 0x44]
lea ecx, [esp + 0x10]
lea eax, [eax + esi*4]
push eax
call fcn.0040373f
lea eax, [esp + 0x10]
push eax
call fcn.0040d3a8
mov ecx, dword [esp + 0x10]
call fcn.00405feb
mov eax, dword [edi + 0x4c]
inc esi
mov dword [esp + 0x10], ebx
cmp esi, eax
jb 0x40e091
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1f4
call esi
lea eax, [edi + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.0040373f
lea eax, [esp + 0x10]
push eax
call fcn.0040d3a8
mov ecx, dword [esp + 0x10]
call fcn.00405feb
push 0x1f4
call esi
push ecx
call fcn.0040d4db
test eax, eax
jne 0x40e134
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x5c]
push eax
push 7
lea ecx, [esp + 0x34]
call fcn.00404c5e
mov ecx, dword [edi + 0x64]
push eax
call fcn.00405044
lea ecx, [esp + 0x28]
call fcn.00404c3b
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x40e175
call fcn.00411177
cmp eax, 1
jne 0x40e147
mov ecx, dword [esp + 0xc]
call fcn.00410cd8
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x5c]
push eax
push ebx
lea ecx, [esp + 0x34]
call fcn.00404c5e
mov ecx, dword [edi + 0x64]
push eax
call fcn.00405044
lea ecx, [esp + 0x28]
call fcn.00404c3b
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 8
pop ebx
lea ecx, [esp + 0x18]
call fcn.00403148
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret