Function at 0x4152f5
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 + 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 + 0x64], ecx
lea edi, [esp + 0x7c]
mov dword [esp + 0x68], ecx
mov byte [esp + 0x6c], cl
mov dword [esp + 0x70], 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.0040e3f0
test eax, eax
js 0x4154ed
mov eax, dword [0x435778]
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.004154f2
cmp eax, 1
je 0x4154ed
mov ecx, dword [esp + 0x290]
test ecx, ecx
je 0x42107e
mov edx, dword [esp + 0x298]
push edi
call fcn.00408e9e
mov ebx, dword [esp + 0x60]
test ebx, ebx
je 0x42108a
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 0x41542b
sub ecx, dword [esp + 0xc]
sar ecx, 1
je 0x4210f1
mov edx, dword [edx + 0xc]
sub edi, 1
jne 0x415422
mov eax, dword [esp + 0x18]
lea edi, [esp + 0x64]
and eax, 0x10
mov dword [esp + 0x10], eax
test eax, eax
je 0x4210c9
test dword [esp + 0x18], 0x2000
je 0x42108d
mov ecx, dword [edi]
lea edx, [esp + 0xc]
call fcn.00414ec1
test eax, eax
jne 0x4210af
mov edi, dword [edi + 0xc]
mov eax, dword [esp + 0x10]
sub ebx, 1
jne 0x41545b
mov eax, dword [esp + 0x290]
test eax, eax
je 0x4154e4
push dword [esp + 0x298]
push eax
call fcn.0041238b
mov ecx, dword [esp + 0x14]
call fcn.0041198f
mov eax, dword [esp + 0x290]
xor ecx, ecx
mov dword [esp + 0x290], ecx
test eax, eax
je 0x4154cd
push eax
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.00416b50
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x88]
jmp 0x41549b
xor esi, esi
inc esi
jmp 0x4154b1
lea ecx, [esp + 0x88]
jmp 0x415403
push edi
jmp 0x4210f4
mov ecx, dword [edi]
mov edx, 0x234e
push 0x2328
call fcn.00429bf0
cmp eax, 1
je 0x415471
xor esi, esi
inc esi
jmp 0x415484
cmp eax, 0x91
jne 0x4210c1
cmp dword [esp + 0xc], 0
je 0x415484
xor ecx, ecx
mov esi, eax
push ecx
push eax
jmp 0x4210e5
push dword [edi]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_RemoveDirectoryW]
test eax, eax
jne 0x415484
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.004078e4
pop ecx
pop ecx
jmp 0x415484
xor eax, eax
push eax
push 0x232a
call fcn.004078e4
pop ecx
pop ecx
jmp 0x4154ed