Function at 0x4088d8
Capabilities:
Delete directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x29c
mov eax, dword [0x42d0b4]
xor eax, esp
mov dword [esp + 0x298], eax
xor eax, eax
mov byte [esp + 0x288], 1
push ebx
mov dword [esp + 0x20], eax
mov ebx, ecx
xor ecx, ecx
mov word [esp + 0x28], ax
push esi
push edi
mov dword [esp + 0x18], ecx
lea edi, [esp + 0x52]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x32], ecx
mov dword [esp + 0x36], ecx
mov dword [esp + 0x3a], ecx
mov dword [esp + 0x3e], ecx
mov dword [esp + 0x42], ecx
mov dword [esp + 0x46], ecx
mov dword [esp + 0x4a], ecx
mov dword [esp + 0x4e], ecx
stosd dword es:[edi], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x290], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov dword [esp + 0x60], ecx
lea edi, [esp + 0x7c]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], ecx
mov byte [esp + 0x6c], cl
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, 0x104
push eax
mov dword [esp + 0x29c], eax
lea eax, [esp + 0x8c]
push ecx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [esp + 0x88]
push 0x7fe9
call fcn.00410c70
test eax, eax
js 0x408ad2
mov eax, dword [0x443cd8]
lea edx, [esp + 0x18]
xor edi, edi
mov dword [esp + 0x14], eax
mov ecx, ebx
mov dword [esp + 0x1c], 6
mov esi, edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x74], edi
call fcn.00408ad7
cmp eax, 1
je 0x408ad2
mov ecx, dword [esp + 0x290]
test ecx, ecx
je 0x4206ab
mov edx, dword [esp + 0x298]
push edi
call fcn.004136cb
mov ebx, dword [esp + 0x60]
test ebx, ebx
je 0x4206b7
lea edx, [esp + 0x64]
mov edi, ebx
mov ecx, dword [edx]
lea eax, [ecx + 2]
mov dword [esp + 0xc], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x10]
jne 0x408a1e
sub ecx, dword [esp + 0xc]
sar ecx, 1
je 0x42071e
mov edx, dword [edx + 0xc]
sub edi, 1
jne 0x408a15
mov eax, dword [esp + 0x18]
lea edi, [esp + 0x64]
and eax, 0x10
mov dword [esp + 0x10], eax
test eax, eax
je 0x4206f6
test dword [esp + 0x18], 0x2000
je 0x4206ba
mov ecx, dword [edi]
lea edx, [esp + 0xc]
call fcn.004085ea
test eax, eax
jne 0x4206dc
mov edi, dword [edi + 0xc]
mov eax, dword [esp + 0x10]
sub ebx, 1
jne 0x408a4e
mov eax, dword [esp + 0x290]
test eax, eax
je 0x408ac9
push dword [esp + 0x298]
push eax
call fcn.00410bfc
mov ecx, dword [esp + 0x14]
call fcn.00412a06
push dword [esp + 0x290]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov ecx, dword [esp + 0x2a4]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00416fd0
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x88]
jmp 0x408a8e
xor esi, esi
inc esi
jmp 0x408aa4
lea ecx, [esp + 0x88]
jmp 0x4089f6
push edi
jmp 0x420721
mov ecx, dword [edi]
mov edx, 0x234e
push 0x2328
call fcn.00429583
cmp eax, 1
je 0x408a64
xor esi, esi
inc esi
jmp 0x408a77
cmp eax, 0x91
jne 0x4206ee
cmp dword [esp + 0xc], 0
je 0x408a77
xor ecx, ecx
mov esi, eax
push ecx
push eax
jmp 0x420712
push dword [edi]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_RemoveDirectoryW]
test eax, eax
jne 0x408a77
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
xor eax, eax
push eax
push esi
call fcn.0040c5a2
pop ecx
pop ecx
jmp 0x408a77
xor eax, eax
push eax
push 0x232a
call fcn.0040c5a2
pop ecx
pop ecx
jmp 0x408ad2