Function at 0x100356ff
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1ac
mov eax, dword [0x1009a008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push 0x100026f0
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x118], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10035762
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
jmp 0x100359c4
push 0x40
lea eax, [ebp - 0x16c]
push ebx
push eax
call fcn.100620c0
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
add esp, 0xc
push ebx
lea eax, [ebp - 0x128]
push eax
push 0x40
lea eax, [ebp - 0x16c]
push eax
push 8
push eax
push 0x223800
push esi
mov dword [ebp - 0x16c], 0x72417453
mov dword [ebp - 0x168], 0x30001
call edi
test eax, eax
jne 0x100357c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x10c]
push esi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100359c4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x128], 0x40
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x11c], eax
jne 0x100359b8
cmp dword [ebp - 0x16c], 0x52615473
jne 0x100359b8
cmp dword [ebp - 0x164], 0x30001
je 0x1003582d
mov eax, dword [ebp - 0x10c]
mov dword [eax], 0x666
jmp 0x100359c4
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
cmp eax, ebx
jne 0x1003584c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x10c]
mov dword [ecx], eax
push 5
jmp 0x100359c6
shr eax, 2
mov dword [ebp - 0x110], eax
mov byte [ebp - 0x105], 0x43
mov dword [ebp - 0x114], ebx
test byte [ebp - 0x110], 1
je 0x10035962
movsx eax, byte [ebp - 0x105]
push eax
push 0x10002828
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.100631a3
add esp, 0x10
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100358c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x10c]
mov dword [ecx], eax
jmp 0x10035962
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x1a8], eax
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x1a4], eax
mov eax, dword [ebp - 0x11c]
push ebx
mov dword [ebp - 0x1a0], eax
lea eax, [ebp - 0x118]
push eax
push 0x40
lea eax, [ebp - 0x1ac]
push eax
push 0x40
push eax
push 0x223840
push esi
mov dword [ebp - 0x1ac], 0x72417453
call edi
test eax, eax
je 0x1003595b
cmp dword [ebp - 0x118], 0x40
jne 0x1003595b
cmp dword [ebp - 0x1ac], 0x52615473
jne 0x1003595b
mov eax, dword [ebp - 0x15c]
cmp eax, dword [ebp - 0x120]
jne 0x1003595b
mov eax, dword [ebp - 0x158]
cmp eax, dword [ebp - 0x11c]
jne 0x1003595b
mov eax, dword [ebp - 0x124]
cmp dword [ebp - 0x160], eax
jne 0x1003595b
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x1a8]
je 0x10035983
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc byte [ebp - 0x105]
shr dword [ebp - 0x110], 1
inc dword [ebp - 0x114]
cmp dword [ebp - 0x114], 0x1e
jb 0x10035862
jmp 0x10035994
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x105]
cmp al, bl
jne 0x100359a4
mov eax, dword [ebp - 0x10c]
mov dword [eax], 0xf
push 0x11
jmp 0x100359c6
mov ecx, dword [ebp - 0x12c]
mov byte [ecx], al
mov eax, dword [ebp - 0x10c]
mov dword [eax], ebx
xor eax, eax
jmp 0x100359c7
mov eax, dword [ebp - 0x10c]
mov dword [eax], 0xd
push 0xa
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10062074
leave
ret 0xc