Function at 0x40af20
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4414a1
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x456600]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x5c]
xor edi, edi
push esi
mov dword [esp + 0x18], edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40af70
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
call fcn.00410348
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40af8a
push 0x80004005
call fcn.00404f30
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push esi
lea ecx, [esp + 0x1c]
push str._s
push ecx
mov dword [esp + 0x60], edi
call fcn.004048a0
add esp, 0xc
lea ecx, [esp + 0x30]
call fcn.00411249
mov byte [esp + 0x54], 1
mov edx, dword [esp + 0x18]
push edi
push edx
lea ecx, [esp + 0x38]
call fcn.004112e1
cmp eax, edi
je 0x40b1b5
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x30]
call fcn.00410f2f
mov esi, eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x34]
call fcn.0041164a
mov byte [esp + 0x54], 2
or dword [esp + 0x14], 1
mov eax, dword [eax]
mov ecx, 0x44a4dc
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40b036
test dx, dx
je 0x40b032
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40b036
add eax, 4
add ecx, 4
test dx, dx
jne 0x40b010
xor eax, eax
jmp 0x40b03b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x40b098
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x34]
call fcn.0041164a
or dword [esp + 0x14], 2
mov eax, dword [eax]
mov ecx, 0x44a4e0
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40b086
test dx, dx
je 0x40b082
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40b086
add eax, 4
add ecx, 4
test dx, dx
jne 0x40b060
xor eax, eax
jmp 0x40b08b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x40b098
xor bl, bl
jmp 0x40b09a
mov bl, 1
test byte [esp + 0x14], 2
je 0x40b0c6
mov eax, dword [esp + 0x1c]
and dword [esp + 0x14], 0xfffffffd
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b0c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x54], 1
test byte [esp + 0x14], 1
je 0x40b0fa
mov eax, dword [esp + 0x20]
and dword [esp + 0x14], 0xfffffffe
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b0fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x40b1a9
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x34]
call fcn.004115b9
mov eax, dword [eax]
push 0x80
push eax
call edi
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b13a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [esp + 0x34]
call eax
test eax, eax
je 0x40b176
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x34]
call fcn.004115b9
mov byte [esp + 0x54], 3
mov eax, dword [eax]
push eax
call fcn.0040af20
mov byte [esp + 0x58], 1
mov eax, dword [esp + 0x2c]
add esp, 4
jmp 0x40b18d
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x34]
call fcn.004115b9
mov eax, dword [eax]
push eax
call ebp
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b1a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x40afe2
mov esi, dword [esp + 0x5c]
lea ecx, [esp + 0x30]
call fcn.00410e49
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], 0
call fcn.00411272
mov dword [esp + 0x54], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b1fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret