Function at 0x403360
Capabilities:
Delete directory
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x520048
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x576fe4]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x50], 0
call fcn.00418420
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4033ad
push 0x80004005
call fcn.00401210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x54], 1
call fcn.00402e20
push 4
push 0x52ff60
lea ecx, [esp + 0x1c]
call fcn.004024b0
lea ecx, [esp + 0x30]
call fcn.00418e09
mov edx, dword [esp + 0x14]
push 0
push edx
lea ecx, [esp + 0x38]
mov byte [esp + 0x58], 2
call fcn.00418e9e
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x4035b2
mov bl, 5
mov edi, edi
lea ecx, [esp + 0x30]
call fcn.00418b0d
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], eax
call fcn.00418dce
test eax, eax
jne 0x4035a7
mov eax, dword [esp + 0x30]
mov edx, dword [eax + 0x38]
push 0x10
lea ecx, [esp + 0x34]
call edx
test eax, eax
mov eax, dword [esp + 0x58]
je 0x403505
add eax, 0xfffffff0
push eax
call fcn.00401c50
add eax, 0x10
add esp, 4
mov dword [esp + 0x18], eax
push 1
push 0x52ff5c
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], 3
call fcn.004024b0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
call fcn.004190d8
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], 4
call fcn.004024b0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x50], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4034b9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x30], esp
mov edi, esp
push esi
call fcn.00401c50
mov ecx, dword [esp + 0x28]
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00403360
mov byte [esp + 0x50], 2
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4035a7
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
jmp 0x4035a7
add eax, 0xfffffff0
push eax
call fcn.00401c50
add eax, 0x10
add esp, 4
mov dword [esp + 0x18], eax
push 1
push 0x52ff5c
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], bl
call fcn.004024b0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x34]
call fcn.004190d8
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], 6
call fcn.004024b0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x50], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403573
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
push 0x80
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esi - 0x10]
mov byte [esp + 0x50], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4035a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x28], 0
jne 0x403410
lea ecx, [esp + 0x30]
call fcn.00418a27
mov ecx, dword [esp + 0x58]
push 0x80
push ecx
call ebp
mov edx, dword [esp + 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 0x30]
mov byte [esp + 0x50], 1
call fcn.00418e2f
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x50], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403605
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
mov dword [esp + 0x50], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40362d
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