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

Disassembly:
push ebp
sub esp, 0xc10
lea ebp, [esp - 4]
mov eax, dword [0x1008cc50]
xor eax, ebp
mov dword [ebp + 0xc10], eax
push 0x38
mov eax, 0x10072928
call fcn.10050aeb
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 0x10015f41
xor eax, eax
jmp 0x10016158
xor eax, eax
cmp ax, word [esi + 0x9c]
jne 0x10015f3a
cmp dword [esi + 0x1c], 8
jb 0x10015f57
mov eax, dword [esi + 8]
jmp 0x10015f5a
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.10017170
cmp dword [eax + 0x18], 8
jb 0x10015f7d
mov eax, dword [eax + 4]
jmp 0x10015f80
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 0x10015f3a
lea eax, [ebp + 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 4
jl 0x100160a7
lea ecx, [ebp - 0x28]
call fcn.10012ff0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], ebx
call fcn.1001304b
lea ecx, [ebp - 0x28]
test eax, eax
jne 0x10015fdd
or dword [ebp - 4], 0xffffffff
call fcn.10013012
jmp 0x10015f3a
lea eax, [ebp + 0x410]
push eax
call fcn.100132ce
test eax, eax
jne 0x10016000
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10013012
mov eax, ebx
jmp 0x10016158
push 0x1008e7cc
lea ecx, [ebp - 0x18]
call fcn.10002cc0
lea eax, [ebp - 0x18]
push eax
push 0x1f4b
mov ecx, 0x1008e6f0
mov byte [ebp - 4], 1
call fcn.1001a8bb
push ebx
mov ecx, edi
call fcn.10017170
cmp dword [eax + 0x18], 8
jb 0x10016037
mov eax, dword [eax + 4]
jmp 0x1001603a
add eax, 4
push eax
push dword [ebp - 0x18]
lea eax, [ebp]
push 0x10076ecc
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x44]
call fcn.10002a10
lea eax, [ebp - 0x44]
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 2
call fcn.100187e4
push ebx
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.10001672
lea eax, [ebp - 0x14]
push eax
lea ecx, [esi + 0x68]
mov dword [ebp - 0x14], 0x400000
mov dword [ebp - 0x10], ebx
call fcn.10018467
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.100028c0
xor ebx, ebx
inc ebx
jmp 0x10015fed
push dword [ebp + 0x410]
call fcn.10013c4c
pop ecx
test eax, eax
je 0x10015f3a
lea eax, [ebp + 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov edi, 0x80000
cmp eax, 5
jne 0x100160de
test dword [ebp + 0xc1c], edi
je 0x10015f3a
push 0x1008e7cc
lea ecx, [ebp - 0x10]
call fcn.10002cc0
lea eax, [ebp - 0x10]
push eax
push 0x1f4b
mov ecx, 0x1008e6f0
mov dword [ebp - 4], 3
call fcn.1001a8bb
lea ecx, [ebp - 0x10]
call fcn.1001763e
push eax
lea ecx, [ebp - 0x44]
call fcn.10002a10
lea eax, [ebp - 0x44]
push eax
lea ecx, [esi + 0x80]
mov byte [ebp - 4], 4
call fcn.100187e4
push ebx
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.10001672
lea eax, [ebp - 0x1c]
push eax
lea ecx, [esi + 0x68]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
call fcn.10018467
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.100028c0
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.100503cc
add ebp, 0xc14
leave
ret 4