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

Disassembly:
push 0xffffffffffffffff
push 0x457927
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x4749e0]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4749e0]
xor eax, esp
push eax
lea eax, [esp + 0x284]
mov dword fs:[0], eax
mov esi, dword [esp + 0x294]
lea ecx, [esp + 0x24]
call fcn.0041ea27
push esi
lea eax, [esp + 0x78]
push 0x104
xor edi, edi
push eax
mov dword [esp + 0x298], edi
call fcn.00432288
lea eax, [esp + 0x80]
add esp, 0xc
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, di
jne 0x407cc1
mov ecx, dword [str..]
mov edx, dword [0x462b40]
mov dword [eax], ecx
mov cx, word [0x462b44]
mov dword [eax + 4], edx
push edi
lea edx, [esp + 0x78]
mov word [eax + 8], cx
push edx
lea ecx, [esp + 0x2c]
call fcn.0041eab5
cmp eax, edi
je 0x407f4c
mov ebp, 7
lea ecx, [esp + 0x24]
call fcn.0041e707
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], eax
call fcn.0041e9ea
test eax, eax
jne 0x407f42
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 0x38]
push 0x10
lea ecx, [esp + 0x28]
call edx
test eax, eax
je 0x407e3e
mov dword [esp + 0x70], ebp
mov dword [esp + 0x6c], edi
mov word [esp + 0x5c], di
lea eax, [esp + 0x1c]
mov bl, 1
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x290], bl
call fcn.0041ed5a
mov byte [esp + 0x28c], 2
mov ecx, dword [eax]
mov eax, ecx
lea esi, [eax + 2]
lea ecx, [ecx]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x407d70
sub eax, esi
sar eax, 1
push eax
push ecx
lea esi, [esp + 0x60]
call fcn.00403640
mov byte [esp + 0x28c], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407db1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x5c]
mov esi, 8
cmp dword [esp + 0x70], esi
jae 0x407dc4
lea eax, [esp + 0x5c]
push eax
call fcn.00407c50
mov eax, dword [esp + 0x60]
add esp, 4
cmp dword [esp + 0x70], esi
jae 0x407ddb
lea eax, [esp + 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, edi
jne 0x407e1a
cmp dword [esp + 0x70], esi
mov esi, dword [esp + 0x5c]
jae 0x407df4
lea esi, [esp + 0x5c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Error_in_deleting_folder__s._Error_Code:_d
call fcn.00415740
mov ebx, 0x461120
call fcn.00415e70
add esp, 0xc
xor edi, edi
mov esi, 8
mov byte [esp + 0x28c], 0
cmp dword [esp + 0x70], esi
jb 0x407f42
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.00416414
add esp, 4
jmp 0x407f42
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], edi
mov word [esp + 0x40], di
lea edx, [esp + 0x18]
mov bl, 3
push edx
lea ecx, [esp + 0x28]
mov byte [esp + 0x290], bl
call fcn.0041ed5a
mov byte [esp + 0x28c], 4
mov ecx, dword [eax]
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x407e71
sub eax, esi
sar eax, 1
push eax
push ecx
lea esi, [esp + 0x44]
call fcn.00403640
mov byte [esp + 0x28c], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407eb2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x40]
mov esi, 8
cmp dword [esp + 0x54], esi
jae 0x407ec5
lea eax, [esp + 0x40]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x54], esi
mov eax, dword [esp + 0x40]
jae 0x407edb
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, edi
jne 0x407f1a
cmp dword [esp + 0x54], esi
mov esi, dword [esp + 0x40]
jae 0x407ef4
lea esi, [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Error_in_deleting_file__s._Error_Code:_d
call fcn.00415740
mov ebx, 0x461120
call fcn.00415e70
add esp, 0xc
xor edi, edi
mov esi, 8
mov byte [esp + 0x28c], 0
cmp dword [esp + 0x54], esi
jb 0x407f35
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00416414
add esp, 4
mov dword [esp + 0x54], ebp
mov dword [esp + 0x50], edi
mov word [esp + 0x40], di
cmp dword [esp + 0x20], edi
jne 0x407d05
lea ecx, [esp + 0x24]
mov dword [esp + 0x28c], 0xffffffff
call fcn.0041ea4d
mov eax, 1
mov ecx, dword [esp + 0x284]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.004321fe
add esp, 0x27c
ret