Function at 0x40b080
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4687df
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x4896a0]
xor eax, esp
mov dword [esp + 0x114], eax
push ebp
push esi
push edi
mov eax, dword [0x4896a0]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
mov dword [esp + 0x130], 0
call fcn.0042fb43
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b0df
push 0x80004005
call fcn.00402930
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
push 0x103
lea ecx, [esp + 0x25]
push 0
push ecx
mov byte [esp + 0x13c], 1
mov byte [esp + 0x2c], 0
call fcn.00449a70
add esp, 0xc
push 0x104
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.drivers_
lea eax, [esp + 0x24]
push eax
call esi
push str.Estdlock
lea ecx, [esp + 0x24]
push ecx
call esi
push str..sys
lea edx, [esp + 0x24]
push edx
call esi
push 0x80
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x40b1c2
mov byte [esp + 0x130], al
lea eax, [edi - 0x10]
or ebp, 0xffffffff
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b194
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x138]
add eax, 0xfffffff0
mov dword [esp + 0x130], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x40b1bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40b41d
push 0x46e59c
lea ecx, [esp + 0x13c]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.004038b0
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x134], 2
call fcn.004037f0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
or ebp, 0xffffffff
mov byte [esp + 0x130], 1
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b218
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x18]
push 1
push edi
push str.Estdlock
call fcn.00466e80
add esp, 0xc
test eax, eax
jne 0x40b3ba
lea ecx, [esp + 0x10]
push ecx
call fcn.0040af80
add esp, 4
mov byte [esp + 0x130], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x430
jne 0x40b2ff
call fcn.0042fb43
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b274
push 0x80004005
call fcn.00402930
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
push 0x38
lea ecx, [esp + 0x18]
push ecx
mov ecx, 0x48c1b8
mov byte [esp + 0x138], 4
call fcn.0041aa20
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x138], 5
call fcn.004036d0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x130], 4
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b2dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x130], 3
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b2ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 2
lea ecx, [esp + 0x18]
push ecx
mov ecx, 0x48c1b8
call fcn.0041aa20
mov eax, dword [eax]
mov edx, dword [esp + 0x10]
push 0x30
push eax
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b341
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x130], 1
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b368
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x130], 0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b38b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x138]
add eax, 0xfffffff0
mov dword [esp + 0x130], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x40b1bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x40b41d
lea ecx, [esp + 0x1c]
push ecx
push 0
push str.Estdlock
call fcn.00467060
lea eax, [edi - 0x10]
add esp, 0xc
mov byte [esp + 0x130], 0
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b3f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x138]
add eax, 0xfffffff0
mov dword [esp + 0x130], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x40b418
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00449ba6
add esp, 0x124
ret