Function at 0x4150d0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x56c57b
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x5c96a4]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5c96a4]
xor eax, esp
push eax
lea eax, [esp + 0x22c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x23c]
call fcn.00441f5f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41512c
push 0x80004005
call fcn.00403c50
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x18], ebx
push 0
push 9
mov dword [esp + 0x23c], 0
mov ecx, dword [ebp + 0x1130]
push 0x110a
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
mov eax, dword [ebp + 0x1230]
test eax, eax
je 0x41517d
lea esp, [esp]
mov esi, dword [eax]
cmp dword [esi], edi
je 0x41517f
mov eax, dword [eax + 4]
test eax, eax
jne 0x415170
xor esi, esi
test edi, edi
je 0x4152de
test esi, esi
je 0x4152de
push ebp
mov ecx, 0x5e19cc
call fcn.00421920
add esp, 4
cmp eax, 1
je 0x4151c2
lea eax, [ebx - 0x10]
mov dword [esp + 0x234], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x41531b
lea ecx, [esp + 0x1c]
push ecx
lea ebx, [ebp + 0x1110]
mov ecx, edi
call fcn.00418f00
add esp, 4
test eax, eax
jne 0x41520d
push ebp
mov ecx, str.Get_file_path_failed.
call fcn.004219e0
mov dword [esp + 0x238], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x41531b
mov ebx, dword [esi + 0x18]
mov esi, ebp
call fcn.00417a60
test eax, eax
je 0x415233
mov ecx, dword [eax + 4]
call fcn.0043b1e0
mov eax, dword [ebp + 0x13b0]
test eax, eax
je 0x415233
push eax
call fcn.0040f470
push ebp
lea esi, [ebp + 0x1110]
call fcn.00418d80
lea esi, [ebp + 0x1254]
call fcn.0043fc30
cmp ebx, 2
jne 0x4152a1
lea ecx, [esp + 0x1c]
push ecx
call fcn.004197b0
add esp, 4
test eax, eax
jne 0x415293
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 3
je 0x415293
cmp eax, ebx
je 0x415293
call esi
push eax
push str.Remove_Directory_failed__err___d.
lea edx, [esp + 0x20]
push edx
call fcn.00403920
add esp, 0xc
push ebp
lea ecx, [esp + 0x1c]
call fcn.00421920
add esp, 4
lea ecx, [esp + 0x18]
call fcn.0041a0e0
jmp 0x415327
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x415293
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 3
je 0x415293
cmp esi, 2
je 0x415293
push esi
lea ecx, [esp + 0x20]
push ecx
push str.DeleteFile__s__err_d
call dword [0x5e1244]
add esp, 0xc
push esi
push str.Delete_File_failed__err___d.
jmp 0x415279
push esi
push edi
lea eax, [esp + 0x20]
push str.Operation_failed__hItem__0x_x__pItem__0x_x.
push eax
call fcn.00403920
push ebp
lea ecx, [esp + 0x2c]
call fcn.00421920
mov dword [esp + 0x248], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415327
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.0053fb0e
add esp, 0x224
ret 4