Function at 0x10033480
Capabilities:
Get common file path
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ad514
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x100df514]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.1000ac40
mov ecx, eax
test ecx, ecx
je 0x1003398e
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x7c], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov dword [ebp - 4], 0
jge 0x100334f3
push 0x104
lea ecx, [ebp - 0x7c]
call fcn.1000c240
mov esi, dword [ebp - 0x7c]
cmp dword [esi - 8], 0x104
jl 0x10033998
push 0x104
xor eax, eax
mov dword [esi - 0xc], 0x104
push esi
mov word [esi + 0x208], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push dword [esi - 8]
push esi
call fcn.1008416d
add esp, 8
test eax, eax
js 0x10033998
cmp eax, dword [esi - 8]
jg 0x10033998
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
call fcn.1000ac40
mov ecx, eax
test ecx, ecx
je 0x100339a2
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x80], eax
push 2
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x74], 0xffffffff
call fcn.10033cc0
push dword [eax]
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 2
push 0x100b8dd4
push eax
call fcn.10013be0
mov edx, dword [ebp - 0x78]
add esp, 0xc
mov byte [ebp - 4], 1
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100335ab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x80]
push 0
push 0x80
push 3
push 0
push 3
push 0x80000080
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x78], eax
cmp eax, 0xffffffff
je 0x1003387a
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
lea ecx, [ebp - 0x84]
push 0
push ecx
push 0x20
lea ecx, [ebp - 0x6c]
push ecx
push 0
push 0
push 0x560000
push eax
call ebx
test eax, eax
jne 0x100337a3
push eax
lea eax, [ebp - 0x84]
push eax
push 0xc
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push 0x2d1080
push dword [ebp - 0x78]
call ebx
test eax, eax
je 0x100336f7
mov ebx, dword [ebp - 0x48]
mov dword [ebp - 0x74], ebx
call fcn.10060f90
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1003386c
push 0x84
push str.d:jenkins.jenkinsworkspacemaster_lu_benchmark_suite_benchmark_suite_aimarkbenchmarksuite_benchmarksuitedisk_benchmark_class.cpp
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], al
call fcn.1000eb90
push 3
push 0x100b6af0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.1000eb90
mov byte [ebp - 4], 4
call fcn.10060f90
mov dword [ebp - 0x70], eax
lea ecx, [ebp - 0x11c]
push 0x6e
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.100087f0
mov ebx, eax
push str.DeviceIoControl_disk_no:
push ebx
mov byte [ebp - 4], 5
call fcn.10009970
add esp, 8
mov ecx, ebx
push dword [ebp - 0x74]
call fcn.100096e0
mov ecx, dword [ebp - 0x70]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x1c]
lea ecx, [ebp - 0x11c]
call fcn.10009b90
lea ecx, [ebp - 0x28]
call fcn.10009280
lea ecx, [ebp - 0x40]
call fcn.10009280
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10033935
mov dword [ebp - 0x74], 0xffffffff
call fcn.10060f90
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1003386c
push 0x84
push str.d:jenkins.jenkinsworkspacemaster_lu_benchmark_suite_benchmark_suite_aimarkbenchmarksuite_benchmarksuitedisk_benchmark_class.cpp
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.1000eb90
push 3
push 0x100b6af0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.1000eb90
mov byte [ebp - 4], 7
call fcn.10060f90
mov dword [ebp - 0x70], eax
lea ecx, [ebp - 0x11c]
push 0x71
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.100087f0
mov ebx, eax
push str.DeviceIoControl_else_disk_no:___1_
push ebx
mov byte [ebp - 4], 8
call fcn.10009970
mov eax, dword [ebp - 0x70]
add esp, 8
mov ecx, eax
mov edx, dword [eax]
push ebx
call dword [edx + 0x1c]
jmp 0x10033851
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x74], eax
call fcn.10060f90
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1003386c
push 0x84
push str.d:jenkins.jenkinsworkspacemaster_lu_benchmark_suite_benchmark_suite_aimarkbenchmarksuite_benchmarksuitedisk_benchmark_class.cpp
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.1000eb90
push 3
push 0x100b6af0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 9
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.1000eb90
mov byte [ebp - 4], 0xa
call fcn.10060f90
mov dword [ebp - 0x70], eax
lea ecx, [ebp - 0x11c]
push 0x75
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.100087f0
mov ebx, eax
push str.DeviceIoControl_disk_no:
push ebx
mov byte [ebp - 4], 0xb
call fcn.10009970
add esp, 8
mov ecx, ebx
push dword [ebp - 0x74]
call fcn.100096e0
mov ecx, dword [ebp - 0x70]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x1c]
lea ecx, [ebp - 0x11c]
call fcn.10009b90
lea ecx, [ebp - 0x40]
call fcn.10009280
lea ecx, [ebp - 0x28]
call fcn.10009280
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10033935
call fcn.10060f90
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x10033935
push 0x84
push str.d:jenkins.jenkinsworkspacemaster_lu_benchmark_suite_benchmark_suite_aimarkbenchmarksuite_benchmarksuitedisk_benchmark_class.cpp
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], al
call fcn.1000eb90
push 3
push 0x100b6af0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.1000eb90
mov byte [ebp - 4], 0xd
call fcn.10060f90
mov dword [ebp - 0x70], eax
lea ecx, [ebp - 0x11c]
push 0x7a
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.100087f0
mov ebx, eax
push str.GetPrimaryDiskNo_CreateFile_INVALID_HANDLE_VALUE
push ebx
mov byte [ebp - 4], 0xe
call fcn.10009970
mov eax, dword [ebp - 0x70]
add esp, 8
mov ecx, eax
mov edx, dword [eax]
push ebx
call dword [edx + 0x1c]
lea ecx, [ebp - 0x11c]
call fcn.10009b90
lea ecx, [ebp - 0x40]
call fcn.10009280
lea ecx, [ebp - 0x28]
call fcn.10009280
or ebx, 0xffffffff
mov byte [ebp - 4], 0
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10033953
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1003396f
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100760cb
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.1000a5d0
push 0x80070057
call fcn.1000a5d0
push 0x80004005
call fcn.1000a5d0
int3