Function at 0x40760c
Capabilities:
Get disk information

Disassembly:
push 0x2e0
mov eax, 0x439df1
call fcn.00436b26
mov eax, dword [ebp + 8]
push 9
pop ecx
mov esi, 0x43e860
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x29c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28c], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x290], eax
mov byte [ebp - 0x275], bl
mov word [ebp - 0x18], 0x20
mov word [ebp - 0x16], 0x3a
mov word [ebp - 0x14], 0x5c
mov word [ebp - 0x12], bx
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor ecx, ecx
mov dword [ebp - 0x298], eax
mov dword [ebp - 0x27c], ecx
mov dword [ebp - 0x284], ebx
or esi, 0xffffffff
cmp byte [ebp - 0x275], bl
jne 0x407898
mov edx, dword [ebp - 0x298]
xor edi, edi
inc edi
mov eax, edi
shl eax, cl
test edx, eax
je 0x407882
lea eax, [ebp - 0x18]
add ecx, 0x41
push eax
mov word [ebp - 0x18], cx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x4076c0
cmp eax, 6
jne 0x407882
mov eax, dword [ebp - 0x284]
push ebx
push ebx
push 3
push ebx
add eax, 0x30
inc dword [ebp - 0x284]
push 3
mov word [ebp - 0x1e], ax
push 0xc0000000
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, esi
mov dword [ebp - 0x280], eax
je 0x407882
push 0x18
lea eax, [ebp - 0x2d0]
push ebx
push eax
mov dword [ebp - 0x288], ebx
call fcn.0041be10
add esp, 0xc
push ebx
lea eax, [ebp - 0x288]
push eax
push 0x18
lea eax, [ebp - 0x2d0]
push eax
push ebx
push ebx
push 0x74080
push dword [ebp - 0x280]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov al, byte [ebp - 0x2cd]
cmp al, bl
jbe 0x407876
mov cl, byte [ebp - 0x27c]
shr al, cl
push 0x21
push ebx
and al, 0x10
neg al
sbb al, al
and al, 0xb5
add al, 0xec
mov byte [ebp - 0x294], al
lea eax, [ebp - 0x274]
push eax
call fcn.0041be10
push 0x210
lea eax, [ebp - 0x250]
push ebx
push eax
call fcn.0041be10
mov dl, byte [ebp - 0x27c]
lea eax, [ebp - 0x288]
push eax
push dword [ebp - 0x294]
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 0x280]
lea eax, [ebp - 0x274]
call fcn.004073ae
add esp, 0x28
test al, al
je 0x407876
cmp dword [ebp - 0x250], 0x2e
jbe 0x407876
push 0x13
lea eax, [ebp - 0x240]
push eax
push 0xa
pop ecx
lea edx, [ebp - 0x2b8]
call fcn.0040741d
pop ecx
pop ecx
mov ecx, dword [ebp - 0x29c]
push esi
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00404abe
push ebx
push edi
lea ecx, [ebp - 0x2b8]
mov dword [ebp - 4], esi
call fcn.00404bfc
push 0x2e
lea eax, [ebp - 0x240]
push eax
push 0x1b
pop ecx
lea edx, [ebp - 0x2b8]
call fcn.0040741d
pop ecx
pop ecx
mov ecx, dword [ebp - 0x28c]
push esi
push ebx
push eax
mov dword [ebp - 4], edi
call fcn.00404abe
push ebx
push edi
lea ecx, [ebp - 0x2b8]
mov dword [ebp - 4], esi
call fcn.00404bfc
push 0x1a
lea eax, [ebp - 0x240]
push eax
push 0x17
pop ecx
lea edx, [ebp - 0x2ec]
call fcn.0040741d
pop ecx
pop ecx
mov ecx, dword [ebp - 0x290]
push esi
push ebx
push eax
mov dword [ebp - 4], 2
call fcn.00404abe
push ebx
push edi
lea ecx, [ebp - 0x2ec]
mov dword [ebp - 4], esi
call fcn.00404bfc
mov byte [ebp - 0x275], 1
push dword [ebp - 0x280]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x27c]
inc ecx
cmp ecx, 0x20
mov dword [ebp - 0x27c], ecx
jl 0x407680
mov al, byte [ebp - 0x275]
call fcn.00436ba9
ret