Function at 0x408720
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40bbb8
mov eax, dword fs:[0]
push eax
sub esp, 0x84c
mov eax, dword [0x41100c]
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, edx
mov ebx, ecx
mov dword [ebp - 0x834], ebx
lea ecx, [ebp - 0x858]
call dword [sym.imp.mfc120u.dll_Ordinal_503]
xor eax, eax
mov dword [ebp - 4], 0
push 0x206
push eax
mov word [ebp - 0x830], ax
lea eax, [ebp - 0x82e]
push eax
call sub.MSVCR120.dll_memset
push ebx
lea eax, [ebp - 0x830]
push str._s.
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x830]
lea ecx, [ebp - 0x858]
push 0
push eax
call dword [sym.imp.mfc120u.dll_Ordinal_4672]
test eax, eax
je 0x40892d
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
lea ecx, [ebp - 0x858]
call dword [sym.imp.mfc120u.dll_Ordinal_4692]
lea ecx, [ebp - 0x858]
mov ebx, eax
call dword [sym.imp.mfc120u.dll_Ordinal_8059]
test eax, eax
jne 0x40891f
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x838]
lea ecx, [ebp - 0x858]
push eax
call dword [sym.imp.mfc120u.dll_Ordinal_5488]
push 0xc8
mov ecx, eax
mov byte [ebp - 4], 1
call dword [sym.imp.mfc120u.dll_Ordinal_5019]
lea edx, [ebp - 0x218]
sub edx, eax
lea ebx, [ebx]
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [edx + eax - 2], cx
test cx, cx
jne 0x408830
mov byte [ebp - 4], cl
lea ecx, [ebp - 0x838]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov eax, dword [ebp - 0x858]
lea ecx, [ebp - 0x858]
push 0x10
call dword [eax + 0x40]
push 0x206
push 0
test eax, eax
je 0x4088b1
xor eax, eax
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push eax
call sub.MSVCR120.dll_memset
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x834]
lea eax, [ebp - 0x628]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
lea ecx, [ebp - 0x628]
mov edx, esi
call fcn.00408720
jmp 0x40891f
xor eax, eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call sub.MSVCR120.dll_memset
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x834]
lea eax, [ebp - 0x420]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, esi
add esp, 0x1c
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4088f0
sub ecx, edx
sar ecx, 1
je 0x408916
lea eax, [ebp - 0x218]
push esi
push eax
call dword [sym.imp.MSVCR120.dll_wcsstr]
add esp, 8
test eax, eax
je 0x40891f
lea eax, [ebp - 0x420]
push eax
call edi
test ebx, ebx
jne 0x4087c0
mov ebx, dword [ebp - 0x834]
lea ecx, [ebp - 0x858]
call dword [sym.imp.mfc120u.dll_Ordinal_2844]
lea ecx, [esi + 2]
lea esp, [esp]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x408940
sub esi, ecx
sar esi, 1
jne 0x408960
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x408960
xor esi, esi
jmp 0x408965
mov esi, 1
lea ecx, [ebp - 0x858]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.mfc120u.dll_Ordinal_1141]
mov eax, esi
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.0040a185
mov esp, ebp
pop ebp
ret