Function at 0x410960
Capabilities:
Check for peb ntglobalflag flag
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a7018
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x4ccecc]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
push edi
mov eax, dword [0x4ccecc]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x38], ecx
mov ecx, dword [ebp + 0x10]
xor edi, edi
mov dword [esp + 0x3c], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x10], edi
call fcn.0040d990
push eax
lea esi, [esp + 0x60]
call fcn.0040dc60
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x8c], edi
call fcn.00430ce0
mov byte [esp + 0x88], 1
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x48], ax
push edi
mov eax, esi
lea ecx, [esp + 0x48]
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], edi
call fcn.004083f0
push 9
mov eax, 0x4b6160
lea ecx, [esp + 0x44]
mov byte [esp + 0x8c], 2
call fcn.00409310
cmp dword [esp + 0x58], 8
mov ecx, dword [esp + 0x44]
jae 0x410a2d
lea ecx, [esp + 0x44]
lea edx, [esp + 0x14]
push edx
call fcn.004190f0
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
add esp, 4
cmp esi, eax
jbe 0x410a4f
call fcn.0044ea2b
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
lea ebx, [esi + 4]
mov esi, eax
cmp dword [esp + 0x20], eax
jbe 0x410a63
call fcn.0044ea2b
test edi, edi
je 0x410a6d
cmp edi, dword [esp + 0x14]
je 0x410a72
call fcn.0044ea2b
lea eax, [ebx - 4]
cmp eax, esi
je 0x410b0a
test edi, edi
jne 0x410aa3
call fcn.0044ea2b
xor eax, eax
lea ecx, [ebx - 4]
cmp ecx, dword [eax + 0x10]
jb 0x410a95
call fcn.0044ea2b
mov esi, 8
cmp dword [ebx + 0x14], esi
jb 0x410aa7
mov eax, dword [ebx]
jmp 0x410aa9
mov eax, dword [edi]
jmp 0x410a88
mov eax, ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x410ae2
test edi, edi
jne 0x410ad5
call fcn.0044ea2b
xor eax, eax
lea ecx, [ebx - 4]
cmp ecx, dword [eax + 0x10]
jb 0x410acc
call fcn.0044ea2b
cmp dword [ebx + 0x14], esi
jb 0x410ad9
mov eax, dword [ebx]
jmp 0x410adb
mov eax, dword [edi]
jmp 0x410abf
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test edi, edi
jne 0x410b06
call fcn.0044ea2b
xor eax, eax
lea ecx, [ebx - 4]
cmp ecx, dword [eax + 0x10]
jb 0x410afa
call fcn.0044ea2b
mov eax, dword [esp + 0x24]
add ebx, 0x1c
jmp 0x410a56
mov eax, dword [edi]
jmp 0x410aed
mov eax, dword [esp + 0x60]
mov esi, 8
cmp dword [esp + 0x74], esi
jae 0x410b1d
lea eax, [esp + 0x60]
mov ebx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x3c]
push eax
call fcn.0040ea10
test eax, eax
je 0x410b55
mov eax, dword [esp + 0x60]
cmp dword [esp + 0x74], esi
jae 0x410b3e
lea eax, [esp + 0x60]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x34]
push eax
call fcn.0040f9c0
test eax, eax
je 0x410b5d
mov dword [esp + 0x10], 0xffffffff
cmp dword [esp + 0x58], esi
jb 0x410b70
mov edx, dword [esp + 0x44]
push edx
call fcn.00442977
add esp, 4
xor eax, eax
xor edi, edi
mov word [esp + 0x44], ax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], edi
cmp eax, edi
je 0x410bd2
mov ebx, dword [esp + 0x24]
cmp eax, ebx
je 0x410bc9
lea esi, [eax + 0x18]
cmp dword [esi], 8
jb 0x410ba9
mov ecx, dword [esi - 0x14]
push ecx
call fcn.00442977
add esp, 4
xor edx, edx
mov dword [esi], 7
mov dword [esi - 4], edi
mov word [esi - 0x14], dx
add esi, 0x1c
lea eax, [esi - 0x18]
cmp eax, ebx
jne 0x410b98
mov eax, dword [esp + 0x20]
lea esi, [edx + 8]
push eax
call fcn.00442977
add esp, 4
mov ecx, dword [esp + 0x14]
push ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call fcn.00442977
add esp, 4
cmp dword [esp + 0x74], esi
jb 0x410bfe
mov edx, dword [esp + 0x60]
push edx
call fcn.00442977
add esp, 4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0044e200
mov esp, ebp
pop ebp
ret 0xc