Function at 0x4038f0
Capabilities:
Delete directory
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x44c430
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x461978]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x50], 0
mov ebp, dword [esp + 0x58]
push 0x5c
push ebp
call fcn.004302f0
add esp, 8
or edi, 0xffffffff
test eax, eax
je 0x403990
sub eax, ebp
sar eax, 1
cmp eax, edi
je 0x403990
mov ecx, dword [ebp - 0xc]
add ecx, edi
cmp eax, ecx
jne 0x403990
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x60]
call fcn.004026b0
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x54], 1
call fcn.00403670
mov byte [esp + 0x50], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40398c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x58]
cmp dword [ebp - 0xc], 0
jne 0x4039a2
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x403c7f
lea ecx, [esp + 0x30]
call fcn.0041d5fd
push 0x4541d8
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x5c], 2
call fcn.004058e0
add esp, 0xc
mov byte [esp + 0x50], 3
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x38]
call fcn.0041d68b
mov esi, eax
mov byte [esp + 0x50], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403a00
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x403c61
lea ecx, [esp + 0x30]
call fcn.0041d3fd
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], eax
call fcn.0041d95f
mov byte [esp + 0x50], 4
mov edx, dword [esp + 0x14]
mov ecx, dword [edx - 0x10]
test ecx, ecx
je 0x403a3e
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
test eax, eax
jne 0x403a4c
call fcn.00416705
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x10]
call eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
mov edx, 0x4541e0
call fcn.004059c0
mov byte [esp + 0x50], 5
mov esi, dword [esp + 0x18]
xor eax, eax
test esi, esi
setne al
test eax, eax
je 0x403cb2
mov eax, dword [esp + 0x14]
mov ecx, esi
jmp 0x403a80
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x403aa6
test dx, dx
je 0x403aa2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x403aa6
add eax, 4
add ecx, 4
test dx, dx
jne 0x403a80
xor eax, eax
jmp 0x403aaa
sbb eax, eax
sbb eax, edi
test eax, eax
lea eax, [esi - 0x10]
sete bl
mov byte [esp + 0x50], 4
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403acf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x403c32
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x403aed
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
test eax, eax
jne 0x403afb
call fcn.00416705
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x10]
call eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
mov edx, 0x4541e4
call fcn.004059c0
mov byte [esp + 0x50], 6
mov esi, dword [esp + 0x1c]
xor eax, eax
test esi, esi
setne al
test eax, eax
je 0x403cb2
mov eax, dword [esp + 0x14]
mov ecx, esi
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x403b56
test dx, dx
je 0x403b52
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x403b56
add eax, 4
add ecx, 4
test dx, dx
jne 0x403b30
xor eax, eax
jmp 0x403b5a
sbb eax, eax
sbb eax, edi
test eax, eax
lea eax, [esi - 0x10]
sete bl
mov byte [esp + 0x50], 4
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403b7f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x403c32
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x34]
call fcn.0041d8ce
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], 7
call fcn.00403670
mov byte [esp + 0x50], 4
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403bc8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [esp + 0x34]
call eax
test eax, eax
je 0x403c1d
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov esi, esp
push eax
call fcn.004036f0
mov ecx, dword [esp + 0x2c]
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.004038f0
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x403c32
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x403c32
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [esp + 0x50], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov edx, edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403c56
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x28], 0
jne 0x403a08
lea ecx, [esp + 0x30]
call fcn.0041d32d
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp + 0x30]
mov byte [esp + 0x50], 0
call fcn.0041d623
lea eax, [ebp - 0x10]
lea ecx, [eax + 0xc]
mov dword [esp + 0x50], edi
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x403c9c
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
push 0x80004005
call fcn.00403280
int3