Function at 0x4167d4
Capabilities:
Create directory
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 9
push 0
push 0
dec ecx
jne 0x4167dd
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov byte [ebp - 0x15], al
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00404fc4
xor eax, eax
push ebp
push 0x416a68
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.00413574
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 4]
call fcn.00405030
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004136a0
push 0
push 0
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0x14]
call fcn.00413198
mov eax, dword [ebp - 0x38]
call fcn.00405068
push eax
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x416916
test byte [ebp - 0x24], 8
je 0x416916
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.00413780
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x48]
call fcn.00413bd0
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x44]
call fcn.00413198
lea eax, [ebp - 0x44]
mov edx, 0x416a88
call fcn.004052dc
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x40]
call fcn.00413780
mov eax, dword [ebp - 0x40]
pop edx
call fcn.0040583c
dec eax
sete byte [ebp - 0x1d]
cmp byte [ebp - 0x15], 0
je 0x4168e6
cmp dword [ebp - 0x14], 0
je 0x4168e6
mov edi, dword [ebp - 0x14]
test edi, edi
je 0x4168da
mov eax, edi
sub eax, 0xa
cmp word [eax], 2
je 0x4168da
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x14]
call fcn.00404a80
mov edi, eax
movzx eax, word [edi]
call fcn.004131ec
xor al, 1
jmp 0x4168e8
xor eax, eax
test al, al
je 0x41690d
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 0x14]
call fcn.00413198
mov eax, dword [ebp - 0x4c]
call fcn.00405068
push eax
call sub.kernel32.dll_GetDriveTypeW
cmp eax, 4
setne al
jmp 0x41690f
xor eax, eax
or al, byte [ebp - 0x1d]
mov byte [ebx], al
jmp 0x416919
mov byte [ebx], 0
cmp byte [ebx], 0
je 0x416a1f
lea eax, [ebp - 0xc]
mov edx, 0x416aa0
call fcn.00405030
lea eax, [ebp - 8]
call fcn.00413ef8
cmp dword [ebp - 8], 0
jne 0x41694a
lea eax, [ebp - 8]
mov edx, 0x416ab8
call fcn.00405030
mov edx, 0x416acc
mov eax, dword [ebp - 8]
call fcn.00408590
test al, al
jne 0x4169a0
lea eax, [ebp - 0x10]
mov edx, 0x416aec
call fcn.00405030
cmp byte [ebp - 0x15], 0
je 0x41697b
lea eax, [ebp - 0x10]
mov edx, 0x416b00
call fcn.00405030
push dword [ebp - 0xc]
push 0x416b18
push dword [ebp - 0x10]
push 0x416b38
push dword [ebp - 8]
push 0x416b4c
lea eax, [ebp - 0xc]
mov edx, 6
call fcn.00405480
push dword [ebp - 0xc]
push 0x416b5c
push 0x416b8c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405480
push 0
lea eax, [ebp - 0x1c]
push eax
push 1
mov eax, dword [ebp - 0xc]
call fcn.00405068
push eax
call sub.advapi32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
jne 0x4169df
call sub.kernel32.dll_GetLastError
mov dword [esi], eax
xor ebx, ebx
jmp 0x416a40
mov dword [ebp - 0x30], 0xc
xor eax, eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 4]
call fcn.00405068
push eax
call sub.kernel32.dll_CreateDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x416a14
call sub.kernel32.dll_GetLastError
mov dword [esi], eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_LocalFree
jmp 0x416a40
push 0
mov eax, dword [ebp - 4]
call fcn.00405068
push eax
call sub.kernel32.dll_CreateDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x416a40
call sub.kernel32.dll_GetLastError
mov dword [esi], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416a6f
lea eax, [ebp - 0x4c]
mov edx, 7
call fcn.00404fd4
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00404fd4
ret