Function at 0x40d7f0
Capabilities:
Delete directory
Delete file
Get file attributes
Resolve function by parsing pe exports
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x446252
mov eax, dword fs:[0]
push eax
sub esp, 0x2f0
mov eax, dword [0x459210]
xor eax, esp
mov dword [esp + 0x2e8], eax
push ebx
push esi
push edi
mov eax, dword [0x459210]
xor eax, esp
push eax
lea eax, [esp + 0x300]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x54], ecx
mov word [esp + 0x44], cx
push 0xffffffffffffffff
lea ecx, [esp + 0x44]
mov esi, 7
push ecx
xor ebx, ebx
mov dword [esp + 0x60], esi
call fcn.00401322
xor edi, edi
push 0x10
lea ecx, [esp + 0x44]
mov dword [esp + 0x30c], edi
call fcn.0040cf00
add esp, 4
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x9c], esi
mov dword [esp + 0x98], edi
mov word [esp + 0x88], di
push 4
mov byte [esp + 0x30c], 1
call fcn.004354c3
add esp, 4
cmp eax, edi
je 0x40d8d9
mov esi, eax
mov dword [eax], 0xffffffff
mov dword [esp + 0x1c], esi
jmp 0x40d8df
mov dword [esp + 0x1c], edi
mov esi, edi
mov dword [esp + 0x20], esi
push 0x44a4a0
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0x314], 2
call fcn.0040438b
add esp, 0xc
lea edx, [esp + 0x5c]
mov ecx, eax
mov byte [esp + 0x308], 3
call fcn.0040e630
mov byte [esp + 0x308], 2
cmp dword [esp + 0x3c], 8
mov bl, al
jb 0x40d933
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00435588
add esp, 4
test bl, bl
je 0x40db89
lea esi, [esp + 0x5c]
call fcn.0040e520
test al, al
jne 0x40d9f5
mov eax, dword [esp + 0x7c]
and eax, 0x10
xor ecx, ecx
or eax, ecx
je 0x40d9b0
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00408301
add esp, 0xc
push eax
mov byte [esp + 0x30c], 4
call fcn.0040d7f0
add esp, 4
mov byte [esp + 0x308], 2
cmp dword [esp + 0x3c], 8
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
jb 0x40d9f5
mov edx, dword [esp + 0x28]
push edx
call fcn.00435588
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 4
jmp 0x40da07
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.00408301
add esp, 0xc
lea edi, [esp + 0x24]
call fcn.0040d7a0
cmp dword [esp + 0x3c], 8
movzx eax, al
cdq
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
jb 0x40d9f3
mov eax, dword [esp + 0x28]
push eax
call fcn.00435588
add esp, 4
xor edi, edi
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40da07
call fcn.00435588
add esp, 4
xor edi, edi
mov esi, dword [esp + 0x1c]
mov edx, dword [esi]
lea ecx, [esp + 0xa4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
setne al
test al, al
je 0x40db8d
lea edi, [esp + 0x5c]
lea ecx, [esp + 0xa4]
call fcn.0040e6c0
mov edx, dword [esp + 0x7c]
mov eax, edx
xor ecx, ecx
and eax, 0x10
or eax, ecx
lea esi, [ecx + 8]
je 0x40dab1
mov ecx, dword [esp + 0x98]
test ecx, ecx
je 0x40dab1
cmp dword [esp + 0x9c], esi
mov eax, dword [esp + 0x88]
jae 0x40da6d
lea eax, [esp + 0x88]
cmp word [eax], 0x2e
jne 0x40dab1
cmp ecx, 1
je 0x40da05
jae 0x40da8a
call fcn.004358f5
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x7c]
cmp dword [esp + 0x9c], esi
mov eax, dword [esp + 0x88]
jae 0x40daa1
lea eax, [esp + 0x88]
cmp word [eax + 2], 0x2e
jne 0x40dab1
cmp ecx, 2
je 0x40da05
and edx, 0x10
mov eax, edx
xor ecx, ecx
or eax, ecx
je 0x40db0b
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.00408301
add esp, 0xc
push eax
mov byte [esp + 0x30c], 5
call fcn.0040d7f0
add esp, 4
add dword [esp + 0x14], eax
mov byte [esp + 0x308], 2
adc dword [esp + 0x18], edx
cmp dword [esp + 0x3c], esi
jb 0x40da05
mov eax, dword [esp + 0x28]
push eax
jmp 0x40d9fd
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.00408301
mov eax, dword [esp + 0x34]
add esp, 0xc
cmp dword [esp + 0x3c], esi
jae 0x40db33
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [esp + 0x28]
and eax, 0xfffffffe
cmp dword [esp + 0x3c], esi
jae 0x40db4b
lea ecx, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x3c], esi
mov eax, dword [esp + 0x28]
jae 0x40db61
lea eax, [esp + 0x28]
push eax
call ebx
test eax, eax
setne cl
movzx eax, cl
cdq
add dword [esp + 0x14], eax
adc dword [esp + 0x18], edx
cmp dword [esp + 0x3c], esi
jb 0x40da05
mov edx, dword [esp + 0x28]
push edx
jmp 0x40d9fd
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x40dba5
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x40dba5
mov dword [esi], 0xffffffff
push 0x20
lea ecx, [esp + 0x44]
call fcn.0040cf00
mov eax, dword [esp + 0x48]
mov ebx, 8
add esp, 4
cmp dword [esp + 0x58], ebx
jae 0x40dbc6
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [esp + 0x44]
and eax, 0xfffffffe
cmp dword [esp + 0x58], ebx
jae 0x40dbde
lea ecx, [esp + 0x44]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x58], ebx
mov eax, dword [esp + 0x44]
jae 0x40dbf4
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
mov ebx, dword [esp + 0x14]
je 0x40dc0a
add ebx, 1
adc dword [esp + 0x18], edi
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x40dc22
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x40dc22
mov dword [esi], 0xffffffff
push esi
call fcn.00435588
mov esi, 8
add esp, 4
cmp dword [esp + 0x9c], esi
jb 0x40dc49
mov eax, dword [esp + 0x88]
push eax
call fcn.00435588
add esp, 4
cmp dword [esp + 0x58], esi
mov dword [esp + 0x9c], 7
mov dword [esp + 0x98], edi
mov word [esp + 0x88], di
jb 0x40dc76
mov ecx, dword [esp + 0x44]
push ecx
call fcn.00435588
add esp, 4
mov edx, dword [esp + 0x18]
mov eax, ebx
mov ecx, dword [esp + 0x300]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2e8]
xor ecx, esp
call fcn.004351c0
mov esp, ebp
pop ebp
ret