Function at 0x40a3ac
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.0040fba0
test eax, eax
js 0x40a5a6
mov eax, dword [0x443ce8]
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.0040a5ab
cmp eax, 1
je 0x40a5a6
mov ecx, dword [esp + 0x290]
test ecx, ecx
je 0x4218c6
mov edx, dword [esp + 0x298]
push edi
call fcn.00412c1e
mov ebx, dword [esp + 0x60]
test ebx, ebx
je 0x4218d2
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 0x40a4f2
sub ecx, dword [esp + 0xc]
sar ecx, 1
je 0x421939
mov edx, dword [edx + 0xc]
sub edi, 1
jne 0x40a4e9
mov eax, dword [esp + 0x18]
lea edi, [esp + 0x64]
and eax, 0x10
mov dword [esp + 0x10], eax
test eax, eax
je 0x421911
test dword [esp + 0x18], 0x2000
je 0x4218d5
mov ecx, dword [edi]
lea edx, [esp + 0xc]
call fcn.0040a0ba
test eax, eax
jne 0x4218f7
mov edi, dword [edi + 0xc]
mov eax, dword [esp + 0x10]
sub ebx, 1
jne 0x40a522
mov eax, dword [esp + 0x290]
test eax, eax
je 0x40a59d
push dword [esp + 0x298]
push eax
call fcn.0040fb21
mov ecx, dword [esp + 0x14]
call fcn.00411bd6
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.00416ce0
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x88]
jmp 0x40a562
xor esi, esi
inc esi
jmp 0x40a578
lea ecx, [esp + 0x88]
jmp 0x40a4ca
push edi
jmp 0x42193c
mov ecx, dword [edi]
mov edx, 0x234e
push 0x2328
call fcn.00429348
cmp eax, 1
je 0x40a538
xor esi, esi
inc esi
jmp 0x40a54b
cmp eax, 0x91
jne 0x421909
cmp dword [esp + 0xc], 0
je 0x40a54b
xor ecx, ecx
mov esi, eax
push ecx
push eax
jmp 0x42192d
push dword [edi]
call dword [sym.imp.api_ms_win_core_file_l1_2_1.dll_RemoveDirectoryW]
test eax, eax
jne 0x40a54b
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov esi, eax
xor eax, eax
push eax
push esi
call fcn.00414802
pop ecx
pop ecx
jmp 0x40a54b
xor eax, eax
push eax
push 0x232a
call fcn.00414802
pop ecx
pop ecx
jmp 0x40a5a6