Function at 0x4039a0
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x42c108
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebp
push esi
push edi
mov eax, dword [0x439d84]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x48], 0
call fcn.0040d5a6
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4039ea
push 0x80004005
call fcn.00401030
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 1
call fcn.00401f30
push 0x2f
push 0x5c
lea ecx, [esp + 0x18]
call fcn.00402cf0
mov esi, dword [esp + 0x10]
push 0
push esi
push 1
lea ecx, [esp + 0x2c]
call fcn.0040ea9e
push 0
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], 2
call fcn.00412f48
test eax, eax
jne 0x403ab1
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], 1
call fcn.0040eae6
lea eax, [esi - 0x10]
mov byte [esp + 0x48], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403a6f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
mov dword [esp + 0x48], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403a97
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x3c
ret 4
lea ecx, [esp + 0x28]
mov edi, 1
call fcn.00412bdb
mov ecx, dword [esp + 0x50]
push 0
push ecx
lea ecx, [esp + 0x30]
mov byte [esp + 0x50], 3
call fcn.00412c67
lea ecx, [esp + 0x28]
mov esi, eax
call fcn.00412824
test esi, esi
je 0x403c29
push str..
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.004020e0
add esp, 0xc
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x50], 4
call fcn.00412c67
mov esi, eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x48], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403b38
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x403c13
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x28]
call fcn.004128f4
lea ecx, [esp + 0x28]
mov edi, eax
call fcn.00412ba2
test eax, eax
jne 0x403c0b
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [esp + 0x2c]
call eax
test eax, eax
je 0x403b8f
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push ecx
lea ecx, [esp + 0x30]
call fcn.00412e1e
mov ecx, ebp
call fcn.004039a0
jmp 0x403c0b
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x38]
push 1
lea ecx, [esp + 0x2c]
call eax
test eax, eax
je 0x403bd8
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00412e1e
push eax
mov ecx, ebp
call fcn.004028a0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403bd8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00412e1e
mov eax, dword [eax]
push eax
call esi
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 0x403c0b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
jne 0x403b46
lea ecx, [esp + 0x28]
call fcn.00412824
mov ecx, dword [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov edi, eax
lea ecx, [esp + 0x20]
call fcn.0040eaf1
lea ecx, [esp + 0x28]
mov byte [esp + 0x48], 2
call fcn.00412bff
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], 1
call fcn.0040eae6
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x48], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403c73
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
mov dword [esp + 0x48], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403c9b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x3c
ret 4