Function at 0x1004d5e0
Capabilities:
Delete directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007892d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c8
mov eax, dword [0x1009900c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2c8], edi
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
push 0x1009083c
mov edx, edi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.1004eba0
mov esi, eax
add esp, 4
lea eax, [ebp - 0x40]
cmp eax, esi
je 0x1004d6cf
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x1004d69d
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1004d693
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004da17
push ecx
push edx
call fcn.10051409
add esp, 8
mov dword [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [ebp - 0x44]
cmp ecx, 8
jb 0x1004d709
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1004d6ff
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004da17
push ecx
push edx
call fcn.10051409
add esp, 8
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
lea edx, [ebp - 0x2c0]
cmovae ecx, dword [ebp - 0x40]
call fcn.1000cc80
mov edx, eax
mov dword [ebp - 0x2c4], edx
cmp edx, 0xffffffff
je 0x1004d978
mov esi, eax
cmp word [ebp - 0x294], 0x2e
je 0x1004d903
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov edx, edi
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
push 0x10082d18
mov word [eax], cx
lea ecx, [ebp - 0x70]
call fcn.1004eba0
add esp, 4
mov esi, eax
lea edx, [ebp - 0x294]
mov byte [ebp - 4], 2
lea ecx, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1004d780
mov eax, dword [esi + 0x14]
sub edx, ecx
mov ecx, dword [esi + 0x10]
sub eax, ecx
sar edx, 1
cmp edx, eax
ja 0x1004d7dc
cmp dword [esi + 0x14], 8
lea eax, [ecx + edx]
mov dword [ebp - 0x2d0], eax
mov edi, esi
mov dword [esi + 0x10], eax
jb 0x1004d7b1
mov edi, dword [esi]
lea eax, [edx + edx]
push eax
lea eax, [ebp - 0x294]
lea ecx, [edi + ecx*2]
push eax
push ecx
call fcn.10053fa0
mov eax, dword [ebp - 0x2d0]
add esp, 0xc
xor ecx, ecx
mov word [edi + eax*2], cx
mov edi, dword [ebp - 0x2c8]
jmp 0x1004d7fb
push edx
lea eax, [ebp - 0x294]
mov byte [ebp - 0x2cc], 0
push eax
push dword [ebp - 0x2cc]
mov ecx, esi
push edx
call fcn.1004ee80
mov esi, eax
movups xmm0, xmmword [esi]
xor eax, eax
movq xmm1, qword [esi + 0x10]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [ebp - 0x14]
movq qword [ebp - 0x2d4], xmm1
movups xmmword [ebp - 0x50], xmm0
cmp ecx, 8
jb 0x1004d868
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1004d852
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004da17
push ecx
push edx
call fcn.10051409
movups xmm0, xmmword [ebp - 0x50]
add esp, 8
movq xmm1, qword [ebp - 0x2d4]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x5c]
movq qword [ebp - 0x18], xmm1
movups xmmword [ebp - 0x28], xmm0
cmp ecx, 8
jb 0x1004d8af
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1004d8a5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004da17
push ecx
push edx
call fcn.10051409
add esp, 8
test byte [ebp - 0x2c0], 0x10
je 0x1004d8ce
mov dl, 1
lea ecx, [ebp - 0x28]
call fcn.1004d5e0
mov esi, eax
test esi, esi
jne 0x1004d97a
jmp 0x1004d8fd
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x80
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1004d955
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
call fcn.1000ca40
test eax, eax
je 0x1004d955
mov esi, dword [ebp - 0x2c4]
lea edx, [ebp - 0x2c0]
mov ecx, esi
call fcn.1000ced0
cmp eax, 1
je 0x1004d732
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov esi, eax
cmp esi, 0x12
jne 0x1004d97a
mov esi, dword [ebp - 0x2c8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x1004d93f
mov eax, dword [esi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1004d95f
call edi
mov esi, eax
jmp 0x1004d97a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1004d97a
cmp dword [esi + 0x14], 8
jb 0x1004d967
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1004d978
call edi
mov esi, eax
jmp 0x1004d97a
xor esi, esi
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x1004d9b0
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1004d9a6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004da1c
push ecx
push edx
call fcn.10051409
add esp, 8
mov ecx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp ecx, 8
jb 0x1004d9fa
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1004d9f0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004da1c
push ecx
push edx
call fcn.10051409
add esp, 8
mov eax, esi
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.10050cdb
mov esp, ebp
pop ebp
ret
call fcn.1005e21b
call fcn.1005e21b
int3