Function at 0x418c00
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7917df
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x82f184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x1c]
jne 0x418c3f
xor al, al
jmp 0x418f9b
push esi
lea ecx, [ebp - 0x2b4]
call fcn.00404120
mov dword [ebp - 4], 0
xor eax, eax
movups xmm0, xmmword [ebp - 0x2b4]
mov word [ebp - 0x2b4], ax
movups xmmword [ebp - 0x2d0], xmm0
movq xmm0, qword [ebp - 0x2a4]
movq qword [ebp - 0x2c0], xmm0
mov dword [ebp - 0x2a4], 0
mov dword [ebp - 0x2a0], 7
lea ecx, [ebp - 0x2d0]
mov byte [ebp - 4], 1
call fcn.00427e60
lea ecx, [ebp - 0x2d0]
mov byte [ebp - 0x295], al
call fcn.00404490
lea ecx, [ebp - 0x2b4]
mov dword [ebp - 4], 0xffffffff
call fcn.00404490
cmp byte [ebp - 0x295], 0
jne 0x418c38
push 0x260
lea eax, [ebp - 0x294]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, 0x5c
mov dword [ebp - 0x294], 0
add esp, 0xc
mov dword [ebp - 0x40], 0
mov word [ebp - 0x3c], ax
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 2
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x418d14
mov eax, dword [esi]
push ecx
push eax
lea ecx, [ebp - 0x294]
call fcn.00415f30
test eax, eax
je 0x418d4d
cmp dword [ebp - 0x38], 0
je 0x418d39
mov eax, dword [ebp - 0x290]
shr eax, 4
and eax, 1
jne 0x418d4d
push esi
call fcn.00418800
add esp, 4
mov byte [ebp - 0x295], al
jmp 0x418f66
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x2ac]
mov dword [ebp - 0x2ac], 4
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x2a8], 0x9300e4
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x2a4], 0x910094
mov dword [ebp - 0x2a0], 0xbc
call fcn.00403e20
push eax
lea eax, [ebp - 0x34]
mov ecx, esi
push eax
call fcn.004031c0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x34]
cmp dword [ebp - 0x20], 8
push ecx
cmovae eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x294]
push eax
call fcn.00415f30
test eax, eax
je 0x418f33
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x294]
test ecx, ecx
je 0x418e18
mov eax, dword [ebp - 0x290]
shr eax, 4
and eax, 1
je 0x418e18
cmp word [ebp - 0x264], 0x2e
jne 0x418e18
mov ax, word [ebp - 0x262]
test ax, ax
je 0x418e09
cmp ax, 0x2e
jne 0x418e18
cmp word [ebp - 0x260], 0
jne 0x418e18
test edx, edx
jne 0x418f11
xor eax, eax
jmp 0x418f26
lea eax, [ebp - 0x29c]
push eax
lea ecx, [ebp - 0x294]
call fcn.00415c80
mov byte [ebp - 4], 4
mov edx, dword [eax]
xor eax, eax
mov word [ebp - 0x2d0], ax
mov eax, edx
mov dword [ebp - 0x2c0], 0
mov dword [ebp - 0x2bc], 7
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418e52
sub eax, edi
lea ecx, [ebp - 0x2d0]
sar eax, 1
push eax
push edx
call fcn.004044f0
lea eax, [ebp - 0x2d0]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x34]
call fcn.00403b80
lea ecx, [ebp - 0x2d0]
call fcn.00404490
mov edx, dword [ebp - 0x29c]
add edx, 0xfffffff0
mov byte [ebp - 4], 6
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x418eae
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
cmp dword [ebp - 0x38], 0
je 0x418ee6
mov eax, dword [ebp - 0x290]
shr eax, 4
and eax, 1
je 0x418ee6
lea eax, [ebp - 0x34]
push eax
call fcn.00418c00
add esp, 4
lea eax, [ebp - 0x34]
cmp dword [ebp - 0x20], 8
cmovae eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x418ef2
lea eax, [ebp - 0x34]
push eax
call fcn.00418800
add esp, 4
mov edx, dword [ebp - 0x294]
mov ecx, dword [ebp - 0x38]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
test edx, edx
jne 0x418f09
xor eax, eax
jmp 0x418f26
test ecx, ecx
jne 0x418f11
xor eax, eax
jmp 0x418f26
lea eax, [ebp - 0x290]
push eax
push edx
call edi
mov edx, dword [ebp - 0x294]
mov ecx, eax
mov dword [ebp - 0x38], ecx
test eax, eax
setne al
test al, al
jne 0x418dd1
lea ecx, [ebp - 0x294]
call fcn.00415c40
cmp dword [esi + 0x14], 8
jb 0x418f46
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
lea ecx, [ebp - 0x1c]
setne byte [ebp - 0x295]
call fcn.00404220
lea ecx, [ebp - 0x34]
call fcn.00404490
push dword [ebp - 0x40]
mov dword [ebp - 0x38], 0
call fcn.0078f0d5
mov eax, dword [ebp - 0x294]
add esp, 4
mov dword [ebp - 0x40], 0
test eax, eax
je 0x418f95
cmp eax, 0xffffffff
je 0x418f95
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, byte [ebp - 0x295]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0076d59e
mov esp, ebp
pop ebp
ret