Function at 0x40b4b0
Capabilities:
Delete directory
Delete file
Get file attributes
Set current directory
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x48416d
mov eax, dword fs:[0]
push eax
sub esp, 0x308
mov eax, dword [0x4a02b4]
xor eax, esp
mov dword [esp + 0x300], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a02b4]
xor eax, esp
push eax
lea eax, [esp + 0x31c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x32c]
xor edi, edi
push 0xffffffffffffffff
push edi
push eax
mov esi, 7
lea eax, [esp + 0x50]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], edi
mov word [esp + 0x54], di
call fcn.00401e00
push 0x10
lea ecx, [esp + 0x48]
mov dword [esp + 0x328], edi
call fcn.004077e0
add esp, 4
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
mov dword [esp + 0x9c], edi
mov dword [esp + 0xa0], edi
mov dword [esp + 0xbc], esi
mov dword [esp + 0xb8], edi
mov word [esp + 0xa8], di
push 4
mov byte [esp + 0x328], 1
call fcn.00468c53
add esp, 4
cmp eax, edi
je 0x40b583
mov ebx, eax
mov dword [eax], 0xffffffff
mov dword [esp + 0x20], ebx
jmp 0x40b589
mov dword [esp + 0x20], edi
mov ebx, edi
mov dword [esp + 0x24], ebx
lea eax, [esp + 0x44]
push 0x489ee0
push eax
lea esi, [esp + 0x30]
mov byte [esp + 0x32c], 2
call fcn.0040b130
add esp, 8
push eax
lea ecx, [esp + 0x80]
mov esi, ebx
mov byte [esp + 0x328], 3
call fcn.004145d0
mov ebp, 8
mov byte [esp + 0x324], 2
cmp dword [esp + 0x40], ebp
mov bl, al
jb 0x40b5e4
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00468cbd
add esp, 4
test bl, bl
je 0x40b7f2
lea esi, [esp + 0x7c]
call fcn.00414570
test al, al
jne 0x40b66c
mov eax, dword [esp + 0x9c]
and eax, 0x10
xor ecx, ecx
lea edx, [esp + 0xa4]
or eax, ecx
push edx
lea eax, [esp + 0x48]
lea edi, [esp + 0x2c]
push eax
je 0x40b63a
call fcn.00408360
push eax
mov byte [esp + 0x330], 4
call fcn.0040b4b0
add esp, 0xc
mov byte [esp + 0x324], 2
jmp 0x40b64f
call fcn.00408360
add esp, 8
lea edi, [esp + 0x28]
call fcn.0040b460
movzx eax, al
cdq
cmp dword [esp + 0x40], ebp
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
jb 0x40b66a
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00468cbd
add esp, 4
xor edi, edi
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40b682
call fcn.00468cbd
add esp, 4
lea esp, [esp]
xor edi, edi
mov esi, dword [esp + 0x20]
mov eax, dword [esi]
lea edx, [esp + 0xc4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
setne al
test al, al
je 0x40b7f6
lea edi, [esp + 0x7c]
lea ecx, [esp + 0xc4]
call fcn.00414650
mov edx, dword [esp + 0x9c]
mov eax, edx
and eax, 0x10
xor ecx, ecx
or eax, ecx
je 0x40b72f
mov ecx, dword [esp + 0xb8]
test ecx, ecx
je 0x40b72f
cmp dword [esp + 0xbc], ebp
mov eax, dword [esp + 0xa8]
jae 0x40b6e8
lea eax, [esp + 0xa8]
cmp word [eax], 0x2e
jne 0x40b72f
cmp ecx, 1
je 0x40b680
jae 0x40b708
call fcn.0046908b
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0x9c]
cmp dword [esp + 0xbc], ebp
mov eax, dword [esp + 0xa8]
jae 0x40b71f
lea eax, [esp + 0xa8]
cmp word [eax + 2], 0x2e
jne 0x40b72f
cmp ecx, 2
je 0x40b680
and edx, 0x10
mov eax, edx
xor ecx, ecx
or eax, ecx
lea ecx, [esp + 0xa4]
lea edx, [esp + 0x44]
push ecx
lea edi, [esp + 0x2c]
push edx
je 0x40b785
call fcn.00408360
push eax
mov byte [esp + 0x330], 5
call fcn.0040b4b0
add esp, 0xc
add dword [esp + 0x14], eax
mov byte [esp + 0x324], 2
adc dword [esp + 0x18], edx
cmp dword [esp + 0x40], ebp
jb 0x40b680
mov eax, dword [esp + 0x2c]
push eax
jmp 0x40b674
call fcn.00408360
mov eax, dword [esp + 0x34]
add esp, 8
cmp dword [esp + 0x40], ebp
jae 0x40b79b
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [esp + 0x2c]
and eax, 0xfffffffe
cmp dword [esp + 0x40], ebp
jae 0x40b7b3
lea ecx, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x40], ebp
mov eax, dword [esp + 0x2c]
jae 0x40b7c9
lea eax, [esp + 0x2c]
push eax
call ebx
cmp eax, 1
sete al
movzx eax, al
cdq
add dword [esp + 0x14], eax
adc dword [esp + 0x18], edx
cmp dword [esp + 0x40], ebp
jb 0x40b680
mov ecx, dword [esp + 0x2c]
push ecx
jmp 0x40b674
mov esi, dword [esp + 0x20]
mov eax, dword [esi]
cmp eax, 0xffffffff
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
je 0x40b810
push eax
call ebx
test eax, eax
je 0x40b810
mov dword [esi], 0xffffffff
push 0x20
lea ecx, [esp + 0x48]
call fcn.004077e0
add esp, 4
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], edi
mov word [esp + 0x64], di
lea esi, [esp + 0x60]
mov byte [esp + 0x324], 6
call fcn.0040b080
test al, al
je 0x40b8ae
push 0x20
mov ecx, esi
call fcn.004077e0
mov eax, dword [esp + 0x4c]
add esp, 4
cmp dword [esp + 0x5c], ebp
jae 0x40b85e
lea eax, [esp + 0x48]
mov edi, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0x64]
call fcn.00402710
test eax, eax
jne 0x40b8ac
lea edx, [esp + 0x44]
push edx
lea edi, [esp + 0x2c]
call fcn.00407c30
add esp, 4
cmp dword [eax + 0x18], ebp
jb 0x40b88f
mov eax, dword [eax + 4]
jmp 0x40b892
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp dword [esp + 0x40], ebp
jb 0x40b8ac
mov eax, dword [esp + 0x2c]
push eax
call fcn.00468cbd
add esp, 4
xor edi, edi
cmp dword [esp + 0x5c], ebp
mov eax, dword [esp + 0x48]
jae 0x40b8bc
lea eax, [esp + 0x48]
push 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x5c], ebp
mov eax, dword [esp + 0x48]
jae 0x40b8d3
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40b8e7
add dword [esp + 0x14], 1
adc dword [esp + 0x18], edi
cmp dword [esp + 0x78], ebp
jb 0x40b8fa
mov ecx, dword [esp + 0x64]
push ecx
call fcn.00468cbd
add esp, 4
mov esi, dword [esp + 0x20]
mov dword [esp + 0x78], 7
mov dword [esp + 0x74], edi
mov word [esp + 0x64], di
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x40b923
push eax
call ebx
test eax, eax
je 0x40b923
mov dword [esi], 0xffffffff
push esi
call fcn.00468cbd
add esp, 4
cmp dword [esp + 0xbc], ebp
jb 0x40b945
mov edx, dword [esp + 0xa8]
push edx
call fcn.00468cbd
add esp, 4
cmp dword [esp + 0x5c], ebp
mov dword [esp + 0xbc], 7
mov dword [esp + 0xb8], edi
mov word [esp + 0xa8], di
jb 0x40b972
mov eax, dword [esp + 0x48]
push eax
call fcn.00468cbd
add esp, 4
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x31c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x300]
xor ecx, esp
call fcn.00468c2b
add esp, 0x314
ret