Function at 0x40e1f1
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x394]
sub esp, 0x414
mov eax, dword [0x49ab28]
xor eax, ebp
mov dword [ebp + 0x390], eax
mov eax, dword [ebp + 0x3a0]
and dword [ebp - 0x78], 0
cmp byte [edi + 0x1b8], 0
push ebx
mov ebx, dword [edi + 0x115]
mov dword [ebp - 0x80], eax
je 0x40e3ec
mov eax, dword [edi + 3]
mov byte [ebp - 0x70], 0
test eax, eax
je 0x40e275
cmp byte [edi + 2], 0x41
jne 0x40e24c
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0046eb90
pop ecx
pop ecx
jmp 0x40e25e
push 0x400
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0046fe9f
add esp, 0xc
lea eax, [ebp - 0x70]
push 0x48684c
push eax
call fcn.0046e7b0
pop ecx
pop ecx
test eax, eax
je 0x40e275
mov byte [eax], 0
push 0x1000
call fcn.0046e254
pop ecx
mov dword [ebp - 0x74], eax
test eax, eax
je 0x40e3ec
push esi
lea esi, [eax + 1]
mov byte [eax], 1
push 0x10
lea eax, [edi + 0x1a8]
push eax
push esi
call fcn.0046c470
mov al, byte [ebp + 0x39c]
add esi, 0x10
push 0x10
mov byte [esi], al
inc esi
push 0x49c128
push esi
call fcn.0046c470
mov eax, dword [0x49c460]
add esi, 0x10
mov dword [esi], eax
mov ecx, dword [edi + 0x7c]
add esp, 0x18
push 4
pop eax
add esi, eax
mov dword [esi], ecx
mov ecx, dword [edi + 0x80]
add esi, eax
mov dword [esi], ecx
mov ecx, dword [edi + 0x181]
add esi, eax
mov dword [esi], ecx
mov ecx, dword [edi + 0x18f]
add esi, eax
mov dword [esi], ecx
mov ecx, dword [edi + 0x163]
add esi, eax
mov dword [esi], ecx
add esi, eax
test ebx, ebx
je 0x40e309
mov ecx, dword [ebx + 0xb9]
mov dword [esi], ecx
jmp 0x40e30c
and dword [esi], 0
add esi, eax
test ebx, ebx
je 0x40e31c
mov ecx, dword [ebx + 0x13]
sub ecx, dword [ebx + 0x1f]
mov dword [esi], ecx
jmp 0x40e31f
and dword [esi], 0
add esi, eax
mov al, byte [edi + 0x53]
mov byte [esi], al
mov al, byte [edi + 0x28]
inc esi
mov byte [esi], al
mov ax, word [edi + 0x50]
inc esi
mov word [esi], ax
mov al, byte [edi + 0x3b0]
inc esi
inc esi
mov byte [esi], al
mov al, byte [edi + 0x3b1]
inc esi
mov byte [esi], al
inc esi
cmp byte [ebp - 0x70], 0
je 0x40e35c
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov byte [esi], al
jmp 0x40e35f
mov byte [esi], 0
mov eax, dword [edi + 3]
inc esi
test eax, eax
je 0x40e3a5
cmp byte [edi + 2], 0x41
push eax
jne 0x40e384
call fcn.0046df70
mov byte [esi], al
push dword [edi + 3]
inc esi
push esi
call fcn.0046eb90
add esp, 0xc
jmp 0x40e39d
call fcn.0046de55
mov byte [esi], al
movzx eax, byte [esi]
inc esi
inc eax
push eax
push dword [edi + 3]
push esi
call fcn.0046fe9f
add esp, 0x10
movzx eax, byte [esi - 1]
add esi, eax
jmp 0x40e3a9
mov byte [esi], 0
inc esi
lea eax, [ebp - 0x7c]
push eax
mov eax, esi
sub eax, dword [ebp - 0x74]
push esi
push eax
push dword [ebp - 0x74]
mov dword [ebp - 0x7c], 0x400
push 0x1004c
call fcn.004026b0
add esp, 0x14
test eax, eax
je 0x40e3e2
xor eax, eax
inc eax
cmp dword [ebp - 0x7c], eax
jne 0x40e3e2
movzx ecx, byte [esi]
mov edx, dword [ebp - 0x80]
mov dword [edx], ecx
mov dword [ebp - 0x78], eax
push dword [ebp - 0x74]
call fcn.0046e0df
pop ecx
pop esi
mov ecx, dword [ebp + 0x390]
mov eax, dword [ebp - 0x78]
xor ecx, ebp
pop ebx
call fcn.0046c1d2
add ebp, 0x394
leave
ret