Function at 0x40d0d0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b5a06
mov eax, dword fs:[0]
push eax
sub esp, 0x3cc
mov eax, dword [0x4e54c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x225], dl
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x22c], eax
cmp dword [esi + 0x10], 0x104
mov dword [ebp - 0x224], eax
jb 0x40d122
xor al, al
jmp 0x40d3d3
test dl, dl
jne 0x40d19f
xorps xmm0, xmm0
mov word [ebp - 0x270], ax
lea edx, [ebp - 0x278]
movlpd qword [ebp - 0x278], xmm0
movlpd qword [ebp - 0x268], xmm0
movlpd qword [ebp - 0x260], xmm0
movlpd qword [ebp - 0x258], xmm0
call fcn.0040d8f0
test al, al
je 0x40d181
cmp byte [ebp - 0x270], 0
je 0x40d181
cmp dword [esi + 0x14], 8
jb 0x40d170
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
jmp 0x40d3d3
cmp dword [esi + 0x14], 8
jb 0x40d18b
mov eax, dword [esi]
jmp 0x40d18d
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40d19f
mov al, 1
jmp 0x40d3d3
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push eax
call fcn.00491b10
add esp, 0xc
cmp byte [0x4eb069], 0
je 0x40d231
cmp dword [0x4eb048], 1
jg 0x40d20c
push 1
push 0x6f
push str.file_util_win.cc
lea ecx, [ebp - 0x328]
call fcn.00411d50
mov ecx, 1
mov dword [ebp - 4], 0
add eax, 8
mov dword [ebp - 0x224], ecx
push str.copying
push eax
mov dword [ebp - 0x22c], ecx
call fcn.00407470
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x224]
test al, 1
je 0x40d231
and eax, 0xfffffffe
lea ecx, [ebp - 0x328]
mov dword [ebp - 0x224], eax
call fcn.00411ec0
cmp dword [esi + 0x14], 8
jb 0x40d239
mov esi, dword [esi]
lea ecx, [ebp - 0x220]
nop
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x40d240
cmp byte [ebp - 0x225], 0
xorps xmm0, xmm0
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x220]
movdqu xmmword [ebp - 0x248], xmm0
mov dword [ebp - 0x244], eax
mov eax, 0x414
mov dword [ebp - 0x24c], 0
movq qword [ebp - 0x238], xmm0
mov dword [ebp - 0x248], 3
mov word [ebp - 0x23c], ax
jne 0x40d2ac
mov eax, 0x1494
mov word [ebp - 0x23c], ax
cmp byte [0x4eb069], 0
je 0x40d324
cmp dword [0x4eb048], 1
jg 0x40d2ff
push 1
push 0x79
push str.file_util_win.cc
lea ecx, [ebp - 0x328]
call fcn.00411d50
mov dword [ebp - 4], 1
add eax, 8
mov ecx, dword [ebp - 0x224]
or ecx, 2
push str.Performing_shell_operation
push eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x22c], ecx
call fcn.00407470
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x224]
test al, 2
je 0x40d324
and eax, 0xfffffffd
lea ecx, [ebp - 0x328]
mov dword [ebp - 0x224], eax
call fcn.00411ec0
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp byte [0x4eb069], 0
mov esi, eax
je 0x40d3ac
cmp dword [0x4eb048], 1
jg 0x40d38f
push 1
push 0x7c
push str.file_util_win.cc
lea ecx, [ebp - 0x3d8]
call fcn.00411d50
mov dword [ebp - 4], 2
add eax, 8
mov ecx, dword [ebp - 0x224]
or ecx, 4
push esi
push ecx
push str.Done:
push eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x22c], ecx
call fcn.00407470
add esp, 0xc
mov ecx, eax
call fcn.0040ca40
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x224]
test cl, 4
je 0x40d3ac
lea ecx, [ebp - 0x3d8]
call fcn.00411ec0
cmp dword [ebp - 0x23a], 0
jne 0x40d11b
test esi, esi
je 0x40d3ce
cmp esi, 2
je 0x40d3ce
cmp esi, 0x402
je 0x40d3ce
xor eax, eax
jmp 0x40d3d3
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004906bc
mov esp, ebp
pop ebp
ret