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

Disassembly:
push 0xffffffffffffffff
push 0x442971
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x457600]
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 0x40c260
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.0041160a
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40c27a
push 0x80004005
call fcn.004069f0
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.00406360
add esp, 0xc
lea ecx, [esp + 0x30]
call fcn.0041250b
mov byte [esp + 0x54], 1
mov edx, dword [esp + 0x18]
push edi
push edx
lea ecx, [esp + 0x38]
call fcn.004125a3
cmp eax, edi
je 0x40c4a5
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x30]
call fcn.004121f1
mov esi, eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x34]
call fcn.0041290c
mov byte [esp + 0x54], 2
or dword [esp + 0x14], 1
mov eax, dword [eax]
mov ecx, 0x44bcbc
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40c326
test dx, dx
je 0x40c322
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40c326
add eax, 4
add ecx, 4
test dx, dx
jne 0x40c300
xor eax, eax
jmp 0x40c32b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x40c388
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x34]
call fcn.0041290c
or dword [esp + 0x14], 2
mov eax, dword [eax]
mov ecx, 0x44bcc0
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40c376
test dx, dx
je 0x40c372
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40c376
add eax, 4
add ecx, 4
test dx, dx
jne 0x40c350
xor eax, eax
jmp 0x40c37b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
jne 0x40c388
xor bl, bl
jmp 0x40c38a
mov bl, 1
test byte [esp + 0x14], 2
je 0x40c3b6
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 0x40c3b6
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 0x40c3ea
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 0x40c3ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x40c499
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x34]
call fcn.0041287b
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 0x40c42a
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 0x40c466
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x34]
call fcn.0041287b
mov byte [esp + 0x54], 3
mov eax, dword [eax]
push eax
call fcn.0040c210
mov byte [esp + 0x58], 1
mov eax, dword [esp + 0x2c]
add esp, 4
jmp 0x40c47d
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x34]
call fcn.0041287b
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 0x40c499
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x40c2d2
mov esi, dword [esp + 0x5c]
lea ecx, [esp + 0x30]
call fcn.0041210b
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp + 0x30]
mov byte [esp + 0x54], 0
call fcn.00412534
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 0x40c4eb
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