Function at 0x402c00
Capabilities:
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x459c60
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4737e0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x50], 0
call fcn.0041f78b
mov byte [esp + 0x50], 1
call fcn.0041d42a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402c5b
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov byte [esp + 0x50], 2
call fcn.0041d42a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402c8a
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov bl, 3
mov byte [esp + 0x50], bl
mov ecx, dword [esp + 0x58]
push ecx
lea edx, [esp + 0x1c]
push str._s.
push edx
call fcn.00402130
mov eax, dword [esp + 0x24]
add esp, 0xc
push 0
push eax
lea ecx, [esp + 0x38]
call fcn.0041f823
test eax, eax
je 0x402e21
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [esp + 0x30]
call fcn.0041f5bf
mov edx, dword [esp + 0x30]
mov dword [esp + 0x28], eax
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [esp + 0x34]
call eax
test eax, eax
je 0x402d9e
lea ecx, [esp + 0x30]
call fcn.0041f74c
test eax, eax
jne 0x402e16
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x34]
call fcn.0041fa94
mov byte [esp + 0x50], 4
mov edx, dword [eax]
push edx
lea eax, [esp + 0x18]
push 0x462d84
push eax
call fcn.00402130
mov byte [esp + 0x5c], 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 0x402d56
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0x38]
push 1
lea ecx, [esp + 0x34]
call eax
mov esi, dword [esp + 0x14]
test eax, eax
je 0x402d7b
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push esi
call ebp
push ecx
lea eax, [esi - 0x10]
mov dword [esp + 0x30], esp
mov edi, esp
push eax
call fcn.00401ff0
mov ecx, dword [esp + 0x28]
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00402c00
jmp 0x402e16
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x34]
call fcn.0041fa94
mov byte [esp + 0x50], 5
mov edx, dword [eax]
push edx
lea eax, [esp + 0x18]
push 0x462d84
push eax
call fcn.00402130
mov byte [esp + 0x5c], bl
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402dea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0x38]
push 1
lea ecx, [esp + 0x34]
call eax
mov esi, dword [esp + 0x14]
test eax, eax
je 0x402e0f
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x28], 0
jne 0x402cd5
lea ecx, [esp + 0x30]
call fcn.0041f4d9
mov ecx, dword [esp + 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov byte [esp + 0x50], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402e5a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x50], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402e7b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x50], 0
call fcn.0041f7b4
mov dword [esp + 0x50], 0xffffffff
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402eb1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 4