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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52692b
mov eax, dword fs:[0]
push eax
sub esp, 0x2cc
mov eax, dword [0x57f7a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x4106ca
mov eax, dword [esi]
jmp 0x4106cc
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4106fc
cmp dword [esi + 0x14], 8
jb 0x4106df
mov esi, dword [esi]
push esi
push str.path___s__not_exist__delete_dir_failed_
push 0x101
push str.deleteDirectory
call fcn.00439030
add esp, 0x10
jmp 0x41097f
cmp dword [esi + 0x14], 8
jb 0x410706
mov eax, dword [esi]
jmp 0x410708
mov eax, esi
push eax
push str.deleteDirectory__s
push 0x104
push str.deleteDirectory
call fcn.00439030
push str..
mov edx, esi
lea ecx, [ebp - 0x88]
call fcn.00414200
add esp, 0x14
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2d8]
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
push ecx
cmovae eax, dword [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41095c
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea esp, [esp]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [ebp - 0x2ac], ax
jne 0x410791
xor ecx, ecx
jmp 0x4107af
lea ecx, [ebp - 0x2ac]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4107a0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x28]
call fcn.00407470
push 1
push 0x559d80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
push dword [ebp - 0x18]
push 0
call fcn.00406720
test eax, eax
je 0x41092e
push 2
push 0x559d84
push dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
push 0
call fcn.00406720
test eax, eax
je 0x41092e
test byte [ebp - 0x2d8], 0x10
lea ecx, [ebp - 0x58]
push 0x559cb4
mov edx, esi
je 0x4108c4
call fcn.00414200
add esp, 4
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
push ecx
mov edx, eax
lea ecx, [ebp - 0x70]
call fcn.00414330
add esp, 4
mov byte [ebp - 4], 4
cmp dword [ebp - 0x44], 8
jb 0x410844
push dword [ebp - 0x58]
call fcn.004db8b0
add esp, 4
push 6
push str.remote
push dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x44], 7
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
call fcn.00406720
test eax, eax
je 0x41089a
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.del_dir__s
push 0x118
push str.deleteDirectory
call fcn.00439030
add esp, 0x10
lea ecx, [ebp - 0x70]
call fcn.00410690
cmp dword [ebp - 0x5c], 8
jb 0x4108ab
push dword [ebp - 0x70]
call fcn.004db8b0
add esp, 4
xor eax, eax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
mov byte [ebp - 4], al
jmp 0x410932
call fcn.00414200
add esp, 4
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
push ecx
mov edx, eax
lea ecx, [ebp - 0x40]
call fcn.00414330
add esp, 4
cmp dword [ebp - 0x44], 8
jb 0x4108f2
push dword [ebp - 0x58]
call fcn.004db8b0
add esp, 4
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x2c], 8
jb 0x410915
push dword [ebp - 0x40]
call fcn.004db8b0
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov byte [ebp - 4], al
jmp 0x410932
mov byte [ebp - 4], 0
cmp dword [ebp - 0x14], 8
jb 0x410943
push dword [ebp - 0x28]
call fcn.004db8b0
add esp, 4
lea eax, [ebp - 0x2d8]
push eax
push edi
call ebx
test eax, eax
jne 0x410770
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esi + 0x14], 8
jb 0x410964
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp dword [ebp - 0x74], 8
jb 0x41097f
push dword [ebp - 0x88]
call fcn.004db8b0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ea604
mov esp, ebp
pop ebp
ret