Function at 0x4f1034
Capabilities:
Delete directory
Get disk information
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffaf0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x510], eax
mov dword [ebp - 0x50c], eax
mov dword [ebp - 0x508], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x288]
mov edx, dword [0x419574]
call fcn.0040b4cc
lea eax, [ebp - 0x4f8]
mov edx, dword [0x419574]
call fcn.0040b4cc
xor eax, eax
push ebp
push 0x4f138e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
call fcn.004f0e98
xor eax, eax
mov dword [ebp - 0x500], eax
jmp 0x4f12e9
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x500]
mov edx, dword [edx + ecx*4]
call fcn.0040a91c
lea eax, [ebp - 0x508]
mov edx, dword [ebp - 4]
movzx edx, word [edx]
call fcn.0040af6c
lea eax, [ebp - 0x508]
mov edx, 0x4f13a8
call fcn.0040b140
mov eax, dword [ebp - 0x508]
call fcn.0040af48
push eax
call sub.kernel32.dll_GetDriveTypeW
mov dword [ebp - 0x4fc], eax
cmp dword [ebp - 0x4fc], 5
je 0x4f12e3
lea eax, [ebp - 0x14]
mov edx, dword [0x4f1008]
call fcn.0040cfa8
push 2
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x4f1008]
call fcn.0040ce84
add esp, 4
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.0040a8d4
mov eax, dword [ebp - 0x14]
add eax, 4
mov ecx, 0x4f13b8
mov edx, dword [ebp - 4]
call fcn.0040b198
lea edx, [ebp - 0x14]
mov edx, dword [edx]
lea eax, [ebp - 0x18]
mov ecx, dword [0x4f1008]
call fcn.0040cfec
xor edi, edi
jmp 0x4f12c1
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + edi*4]
call fcn.0040a91c
lea eax, [ebp - 0x50c]
mov ecx, 0x4f13e0
mov edx, dword [ebp - 8]
call fcn.0040b198
mov eax, dword [ebp - 0x50c]
lea ecx, [ebp - 0x288]
mov edx, 0x1ff
call fcn.004215b0
test eax, eax
jne 0x4f12c0
test byte [ebp - 0x278], 0x10
je 0x4f12ad
mov eax, dword [ebp - 0x274]
call fcn.004f0f58
test al, al
je 0x4f12ad
xor ebx, ebx
push dword [ebp - 8]
push dword [ebp - 0x274]
push 0x4f13f4
lea eax, [ebp - 0x510]
mov edx, 3
call fcn.0040b220
mov eax, dword [ebp - 0x510]
lea ecx, [ebp - 0x4f8]
mov edx, 0x1ff
call fcn.004215b0
test eax, eax
jne 0x4f1277
test byte [ebp - 0x4e8], 0x10
jne 0x4f1268
mov eax, dword [ebp - 0x4e4]
call fcn.004f0f58
test al, al
je 0x4f1268
push dword [ebp - 8]
push dword [ebp - 0x274]
push 0x4f140c
push dword [ebp - 0x4e4]
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.0040b220
mov eax, dword [0x4f98d8]
mov edx, dword [ebp - 0xc]
call fcn.00408050
call fcn.00408150
call fcn.00406fe0
mov bl, 1
push 0x80
mov eax, dword [ebp - 0xc]
call fcn.0040af48
push eax
call sub.kernel32.dll_SetFileAttributesW
mov eax, dword [ebp - 0xc]
call fcn.00421640
lea eax, [ebp - 0x4f8]
call fcn.00421600
test eax, eax
je 0x4f11fb
test bl, bl
je 0x4f12ad
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0x274]
mov edx, dword [ebp - 8]
call fcn.0040b198
push 0x80
mov eax, dword [ebp - 0xc]
call fcn.0040af48
push eax
call sub.kernel32.dll_SetFileAttributesW
mov eax, dword [ebp - 0xc]
call fcn.0040af48
push eax
call sub.kernel32.dll_RemoveDirectoryW
lea eax, [ebp - 0x288]
call fcn.00421600
test eax, eax
je 0x4f11a1
inc edi
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x4f12cd
sub esi, 4
mov esi, dword [esi]
cmp esi, edi
jg 0x4f1162
lea eax, [ebp - 0x18]
mov edx, dword [0x4f1008]
call fcn.0040cfa8
inc dword [ebp - 0x500]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x504], eax
cmp dword [ebp - 0x504], 0
je 0x4f130c
mov eax, dword [ebp - 0x504]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x504], eax
mov eax, dword [ebp - 0x500]
cmp eax, dword [ebp - 0x504]
jl 0x4f10ab
lea eax, [ebp - 0x10]
mov edx, dword [0x411a88]
call fcn.0040cfa8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f1395
lea eax, [ebp - 0x510]
mov edx, 3
call fcn.0040a554
lea eax, [ebp - 0x4f8]
mov edx, dword [0x419574]
mov ecx, 2
call fcn.0040ba94
lea eax, [ebp - 0x18]
mov edx, dword [0x4f1008]
mov ecx, 2
call fcn.0040ba94
lea eax, [ebp - 0x10]
mov edx, dword [0x411a88]
call fcn.0040cfa8
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040a554
ret