Function at 0x416aa7
Capabilities:
Delete directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x29c
mov eax, dword [0x4310b4]
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.0040d300
test eax, eax
js 0x416c9f
mov eax, dword [0x4397f0]
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.00416caa
cmp eax, 1
je 0x416c9f
mov ecx, dword [esp + 0x290]
test ecx, ecx
je 0x4254d1
mov edx, dword [esp + 0x298]
push edi
call fcn.004083c5
mov ebx, dword [esp + 0x60]
test ebx, ebx
je 0x4254dd
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 0x416bdd
sub ecx, dword [esp + 0xc]
sar ecx, 1
je 0x425544
mov edx, dword [edx + 0xc]
sub edi, 1
jne 0x416bd4
mov eax, dword [esp + 0x18]
lea edi, [esp + 0x64]
and eax, 0x10
mov dword [esp + 0x10], eax
test eax, eax
je 0x42551c
test dword [esp + 0x18], 0x2000
je 0x4254e0
mov ecx, dword [edi]
lea edx, [esp + 0xc]
call fcn.004163f1
test eax, eax
jne 0x425502
mov edi, dword [edi + 0xc]
mov eax, dword [esp + 0x10]
sub ebx, 1
jne 0x416c0d
mov eax, dword [esp + 0x290]
test eax, eax
je 0x416c96
push dword [esp + 0x298]
push eax
call fcn.00412226
mov ecx, dword [esp + 0x14]
call fcn.0041173f
mov eax, dword [esp + 0x290]
xor ecx, ecx
mov dword [esp + 0x290], ecx
test eax, eax
je 0x416c7f
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.00417b90
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x88]
jmp 0x416c4d
xor esi, esi
inc esi
jmp 0x416c63
lea ecx, [esp + 0x88]
jmp 0x416bb5
push edi
jmp 0x425547
mov ecx, dword [edi]
mov edx, 0x234e
push 0x2328
call fcn.0042d188
cmp eax, 1
je 0x416c23
xor esi, esi
inc esi
jmp 0x416c36
cmp eax, 0x91
jne 0x425514
cmp dword [esp + 0xc], 0
je 0x416c36
xor ecx, ecx
mov esi, eax
push ecx
push eax
jmp 0x425538
push dword [edi]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_RemoveDirectoryW]
test eax, eax
jne 0x416c36
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.004128ff
pop ecx
pop ecx
jmp 0x416c36
xor eax, eax
push eax
push 0x232a
call fcn.004128ff
pop ecx
pop ecx
jmp 0x416c9f