Function at 0x40aad0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x441e7c
mov eax, dword fs:[0]
push eax
sub esp, 0x330
mov eax, dword [0x458778]
xor eax, esp
mov dword [esp + 0x32c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x458778]
xor eax, esp
push eax
lea eax, [esp + 0x344]
mov dword fs:[0], eax
mov edi, dword [esp + 0x354]
push edi
mov ebp, ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x40abb6
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
test esi, esi
jne 0x40abaf
call fcn.0040e8f6
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ab4a
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push edi
lea ecx, [esp + 0x18]
push 0x44702c
push ecx
mov dword [esp + 0x358], 0
call fcn.00402000
add esp, 0xc
lea edx, [esp + 0x14]
push edx
mov ecx, ebp
call fcn.00406170
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x34c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40abaf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x40adac
lea ecx, [esp + 0x1c]
call fcn.0040fc9d
push edi
lea ecx, [esp + 0x240]
push str._s.
mov ebx, 1
push ecx
mov dword [esp + 0x358], ebx
call fcn.0042c84e
add esp, 0xc
push 0
lea edx, [esp + 0x240]
push edx
lea ecx, [esp + 0x24]
call fcn.0040fd29
test eax, eax
je 0x40acee
lea esp, [esp]
lea ecx, [esp + 0x1c]
call fcn.0040f99b
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], eax
call fcn.0040fc64
test eax, eax
jne 0x40ace3
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.0040ff58
mov esi, eax
mov eax, dword [esi]
sub eax, 0x10
mov ecx, ebx
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x104
or eax, ecx
mov byte [esp + 0x34c], 2
jge 0x40ac58
push 0x104
mov ecx, esi
call fcn.00401870
mov ecx, dword [esi]
lea edx, [esp + 0x138]
mov al, byte [ecx]
mov byte [edx], al
add ecx, ebx
add edx, ebx
test al, al
jne 0x40ac61
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x34c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ac94
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [esp + 0x20]
call eax
test eax, eax
lea ecx, [esp + 0x138]
push ecx
push edi
lea edx, [esp + 0x3c]
push str._s_s
push edx
je 0x40acd0
call fcn.0042c84e
add esp, 0x10
lea eax, [esp + 0x34]
push eax
mov ecx, ebp
call fcn.0040aad0
jmp 0x40ace3
call fcn.0042c84e
add esp, 0x10
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x18], 0
jne 0x40ac00
lea ecx, [esp + 0x1c]
call fcn.0040f8cb
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40ad96
call fcn.0040e8f6
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ad20
push 0x80004005
call fcn.004010a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push edi
lea ecx, [esp + 0x18]
push 0x44702c
push ecx
mov byte [esp + 0x358], 3
call fcn.00402000
add esp, 0xc
lea edx, [esp + 0x14]
push edx
mov ecx, ebp
call fcn.00406170
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x34c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ad7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34c], 0xffffffff
call fcn.0040fcc1
xor eax, eax
jmp 0x40adac
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34c], 0xffffffff
call fcn.0040fcc1
mov eax, ebx
mov ecx, dword [esp + 0x344]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x32c]
xor ecx, esp
call fcn.0042b460
add esp, 0x33c
ret 4