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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100afae4
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x100e2524]
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.1000b090
mov ecx, eax
test ecx, ecx
je 0x1003426e
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 0x10033dd3
push 0x104
lea ecx, [ebp - 0x7c]
call fcn.1000c6a0
mov esi, dword [ebp - 0x7c]
cmp dword [esi - 8], 0x104
jl 0x10034278
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.1008669d
add esp, 8
test eax, eax
js 0x10034278
cmp eax, dword [esi - 8]
jg 0x10034278
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
call fcn.1000b090
mov ecx, eax
test ecx, ecx
je 0x10034282
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.100345a0
push dword [eax]
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 2
push 0x100bbe2c
push eax
call fcn.10014060
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 0x10033e8b
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 0x1003415a
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 0x10034083
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 0x10033fd7
mov ebx, dword [ebp - 0x48]
mov dword [ebp - 0x74], ebx
call fcn.10063090
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1003414c
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.1000f000
push 3
push 0x100b9b00
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.1000f000
mov byte [ebp - 4], 4
call fcn.10063090
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.10008c30
mov ebx, eax
push str.DeviceIoControl_disk_no:
push ebx
mov byte [ebp - 4], 5
call fcn.10009db0
add esp, 8
mov ecx, ebx
push dword [ebp - 0x74]
call fcn.10009b20
mov ecx, dword [ebp - 0x70]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x1c]
lea ecx, [ebp - 0x11c]
call fcn.10009fe0
lea ecx, [ebp - 0x28]
call fcn.100096c0
lea ecx, [ebp - 0x40]
call fcn.100096c0
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10034215
mov dword [ebp - 0x74], 0xffffffff
call fcn.10063090
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1003414c
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.1000f000
push 3
push 0x100b9b00
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.1000f000
mov byte [ebp - 4], 7
call fcn.10063090
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.10008c30
mov ebx, eax
push str.DeviceIoControl_else_disk_no:___1_
push ebx
mov byte [ebp - 4], 8
call fcn.10009db0
mov eax, dword [ebp - 0x70]
add esp, 8
mov ecx, eax
mov edx, dword [eax]
push ebx
call dword [edx + 0x1c]
jmp 0x10034131
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x74], eax
call fcn.10063090
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1003414c
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.1000f000
push 3
push 0x100b9b00
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.1000f000
mov byte [ebp - 4], 0xa
call fcn.10063090
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.10008c30
mov ebx, eax
push str.DeviceIoControl_disk_no:
push ebx
mov byte [ebp - 4], 0xb
call fcn.10009db0
add esp, 8
mov ecx, ebx
push dword [ebp - 0x74]
call fcn.10009b20
mov ecx, dword [ebp - 0x70]
push ebx
mov eax, dword [ecx]
call dword [eax + 0x1c]
lea ecx, [ebp - 0x11c]
call fcn.10009fe0
lea ecx, [ebp - 0x40]
call fcn.100096c0
lea ecx, [ebp - 0x28]
call fcn.100096c0
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10034215
call fcn.10063090
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x10034215
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.1000f000
push 3
push 0x100b9b00
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.1000f000
mov byte [ebp - 4], 0xd
call fcn.10063090
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.10008c30
mov ebx, eax
push str.GetPrimaryDiskNo_CreateFile_INVALID_HANDLE_VALUE
push ebx
mov byte [ebp - 4], 0xe
call fcn.10009db0
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.10009fe0
lea ecx, [ebp - 0x40]
call fcn.100096c0
lea ecx, [ebp - 0x28]
call fcn.100096c0
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 0x10034233
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 0x1003424f
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.1007850b
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.1000aa20
push 0x80070057
call fcn.1000aa20
push 0x80004005
call fcn.1000aa20
int3