Function at 0x4022d0
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x437e71
mov eax, dword fs:[0]
push eax
mov eax, 0x1f70
call fcn.00423c30
mov eax, dword [0x44851c]
xor eax, esp
mov dword [esp + 0x1f68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44851c]
xor eax, esp
push eax
lea eax, [esp + 0x1f84]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1f94]
mov edi, ecx
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], esi
call fcn.00410e95
push esi
xor ebx, ebx
push str._s.
lea edx, [esp + 0xfe4]
mov dword [esp + 0x1f94], ebx
call fcn.00403e40
add esp, 8
push ebx
lea eax, [esp + 0xfe0]
push eax
lea ecx, [esp + 0x2c]
call fcn.00410f2a
cmp eax, ebx
je 0x402528
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x24]
call fcn.00410b99
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], eax
call fcn.00410e5a
test eax, eax
jne 0x40251a
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x28]
call fcn.00411164
mov esi, eax
mov byte [esp + 0x1f8c], 1
mov eax, dword [esi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x7d0
or eax, ecx
jge 0x4023be
push 0x7d0
mov ecx, esi
call fcn.00401990
mov esi, dword [esi]
push esi
lea edx, [esp + 0x810]
push 0x7d0
push edx
call fcn.00422579
mov byte [esp + 0x1f98], bl
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4023fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [esp + 0x28]
call eax
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x80c]
push ecx
push edx
push str._s_s
test eax, eax
je 0x402445
lea edx, [esp + 0x17b8]
call fcn.00403e40
add esp, 0xc
lea eax, [esp + 0x17ac]
push eax
mov ecx, edi
call fcn.004022d0
jmp 0x40251a
lea edx, [esp + 0x48]
call fcn.00403e40
inc dword [0x44c39c]
fild dword [0x44c39c]
add esp, 0xc
fidiv dword [edi + 0xcc]
fmul qword [0x43f088]
call fcn.004273a0
cmp eax, 0x64
jle 0x402478
mov eax, 0x64
push ebx
push eax
mov eax, dword [edi + 0x98]
push 0x402
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
call fcn.0040413e
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x402554
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x1c]
push 0x43eb64
push edx
mov byte [esp + 0x1f98], 2
call fcn.00401730
mov esi, dword [esp + 0x24]
add esp, 0xc
push esi
push 0x3e9
mov ecx, edi
call fcn.004073ed
push 0x80
lea eax, [esp + 0x40]
push eax
call ebp
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esi - 0x10]
mov byte [esp + 0x1f8c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40251a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x20], ebx
jne 0x402363
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x24]
call fcn.00410ab3
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov dword [esp + 0x1f8c], 0xffffffff
lea ecx, [esp + 0x24]
test eax, eax
jne 0x40255e
call fcn.00410ebb
xor al, al
jmp 0x402565
push 0x80004005
call fcn.00401b90
call fcn.00410ebb
mov al, 1
mov ecx, dword [esp + 0x1f84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1f68]
xor ecx, esp
call fcn.00421c4b
add esp, 0x1f7c
ret 4