Function at 0x1001643f
Capabilities:
Get disk information
Get file attributes

Disassembly:
push ebp
sub esp, 0xc10
lea ebp, [esp - 4]
mov eax, dword [0x1008dd90]
xor eax, ebp
mov dword [ebp + 0xc10], eax
push 0x38
mov eax, 0x100731d5
call fcn.1005109b
mov esi, ecx
lea edi, [esi + 0x38]
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
cmp eax, 1
je 0x10016480
xor eax, eax
jmp 0x10016697
xor eax, eax
cmp ax, word [esi + 0x9c]
jne 0x10016479
cmp dword [esi + 0x1c], 8
jb 0x10016496
mov eax, dword [esi + 8]
jmp 0x10016499
lea eax, [esi + 8]
push eax
lea eax, [ebp + 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor ebx, ebx
push ebx
mov ecx, edi
call fcn.10017818
cmp dword [eax + 0x18], 8
jb 0x100164bc
mov eax, dword [eax + 4]
jmp 0x100164bf
add eax, 4
push eax
lea eax, [ebp + 0x410]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp + 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x10016479
lea eax, [ebp + 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 4
jl 0x100165e6
lea ecx, [ebp - 0x28]
call fcn.10013321
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], ebx
call fcn.1001337c
lea ecx, [ebp - 0x28]
test eax, eax
jne 0x1001651c
or dword [ebp - 4], 0xffffffff
call fcn.10013343
jmp 0x10016479
lea eax, [ebp + 0x410]
push eax
call fcn.100135ff
test eax, eax
jne 0x1001653f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10013343
mov eax, ebx
jmp 0x10016697
push 0x1008f90c
lea ecx, [ebp - 0x18]
call fcn.10002c90
lea eax, [ebp - 0x18]
push eax
push 0x1f4b
mov ecx, 0x1008f830
mov byte [ebp - 4], 1
call fcn.1001aeaa
push ebx
mov ecx, edi
call fcn.10017818
cmp dword [eax + 0x18], 8
jb 0x10016576
mov eax, dword [eax + 4]
jmp 0x10016579
add eax, 4
push eax
push dword [ebp - 0x18]
lea eax, [ebp]
push 0x10077fb8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x44]
call fcn.100029e0
lea eax, [ebp - 0x44]
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 2
call fcn.10018e26
push ebx
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.1000166a
lea eax, [ebp - 0x14]
push eax
lea ecx, [esi + 0x68]
mov dword [ebp - 0x14], 0x400000
mov dword [ebp - 0x10], ebx
call fcn.10018aa9
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.10002890
xor ebx, ebx
inc ebx
jmp 0x1001652c
push dword [ebp + 0x410]
call fcn.1001418b
pop ecx
test eax, eax
je 0x10016479
lea eax, [ebp + 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov edi, 0x80000
cmp eax, 5
jne 0x1001661d
test dword [ebp + 0xc1c], edi
je 0x10016479
push 0x1008f90c
lea ecx, [ebp - 0x10]
call fcn.10002c90
lea eax, [ebp - 0x10]
push eax
push 0x1f4b
mov ecx, 0x1008f830
mov dword [ebp - 4], 3
call fcn.1001aeaa
lea ecx, [ebp - 0x10]
call fcn.10017c1d
push eax
lea ecx, [ebp - 0x44]
call fcn.100029e0
lea eax, [ebp - 0x44]
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 4
call fcn.10018e26
push ebx
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.1000166a
lea eax, [ebp - 0x1c]
push eax
lea ecx, [esi + 0x68]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
call fcn.10018aa9
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.10002890
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc10]
xor ecx, ebp
call fcn.1005097c
add ebp, 0xc14
leave
ret 4