Function at 0x49d780
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a844d
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x4de880]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x420], ecx
call fcn.00404760
mov dword [ebp - 0x410], eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x420]
call fcn.004047a0
mov dword [ebp - 0x40c], eax
cmp dword [ebp - 0x40c], 0
je 0x49d915
mov ecx, dword [ebp - 0x40c]
push ecx
lea edx, [ebp - 0x41c]
push edx
mov ecx, dword [ebp - 0x420]
call fcn.0042cba5
mov dword [ebp - 0x424], eax
mov eax, dword [ebp - 0x424]
mov dword [ebp - 0x428], eax
mov dword [ebp - 4], 0
push 0x64
mov ecx, dword [ebp - 0x428]
call fcn.00404410
mov dword [ebp - 0x404], eax
cmp dword [ebp - 0x404], 0
jne 0x49d838
mov dword [ebp - 0x42c], 0
jmp 0x49d8ae
mov ecx, dword [ebp - 0x404]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x400], eax
cmp dword [ebp - 0x400], 0x3fffffff
jle 0x49d866
mov dword [ebp - 0x430], 0
jmp 0x49d8a2
mov eax, dword [ebp - 0x400]
shl eax, 1
call fcn.00446dc0
mov dword [ebp - 0x434], esp
mov edx, dword [ebp - 0x410]
push edx
mov eax, dword [ebp - 0x400]
shl eax, 1
push eax
mov ecx, dword [ebp - 0x404]
push ecx
mov edx, dword [ebp - 0x434]
push edx
call fcn.004043c0
mov dword [ebp - 0x430], eax
mov eax, dword [ebp - 0x430]
mov dword [ebp - 0x42c], eax
mov ecx, dword [ebp - 0x42c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004402a0
add esp, 8
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x415], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x41c]
call fcn.00404700
movzx eax, byte [ebp - 0x415]
test eax, eax
je 0x49d8f6
mov eax, dword [ebp - 0x40c]
jmp 0x49dac6
push 1
mov ecx, dword [ebp - 0x40c]
push ecx
mov ecx, dword [ebp - 0x420]
call fcn.00404770
mov dword [ebp - 0x40c], eax
jmp 0x49d7d1
mov dword [ebp - 0x40c], 0
lea edx, [ebp - 0x3fc]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x420]
call fcn.0049d3f0
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x3fc]
push edx
call fcn.00440130
add esp, 8
lea eax, [ebp - 0x3fc]
push eax
mov ecx, dword [ebp - 0x420]
call fcn.0049ca40
mov dword [ebp - 0x408], eax
cmp dword [ebp + 0xc], 0xffff0000
jne 0x49da97
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x49d9a5
mov edx, dword [ebp - 0x408]
push edx
push 0xffff0002
mov eax, dword [ebp + 0xc]
push eax
push 5
push 5
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x420]
call fcn.0049c850
mov dword [ebp - 0x40c], eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x49d9dd
mov eax, dword [ebp - 0x408]
push eax
push 0xffff0002
mov ecx, dword [ebp + 0xc]
push ecx
push 2
push 2
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x420]
call fcn.0049c850
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jne 0x49da20
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
cmp edx, 0x41
jne 0x49da20
mov eax, dword [ebp - 0x408]
push eax
push 0xffff0002
mov ecx, dword [ebp + 0xc]
push ecx
push 4
push 4
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x420]
call fcn.0049c850
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jne 0x49da63
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
cmp edx, 0x41
je 0x49da63
mov eax, dword [ebp - 0x408]
push eax
push 0xffff0002
mov ecx, dword [ebp + 0xc]
push ecx
push 3
push 3
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x420]
call fcn.0049c850
mov dword [ebp - 0x40c], eax
cmp dword [ebp - 0x40c], 0
jne 0x49da95
mov eax, dword [ebp - 0x408]
push eax
push 0xffff0002
mov ecx, dword [ebp + 0xc]
push ecx
push 5
push 5
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x420]
call fcn.0049c850
mov dword [ebp - 0x40c], eax
jmp 0x49dac0
mov eax, dword [ebp - 0x408]
push eax
push 0xffff0002
mov ecx, dword [ebp + 0xc]
push ecx
push 1
push 0
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x420]
call fcn.0049c850
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x40c]
lea esp, [ebp - 0x438]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043f9e9
mov esp, ebp
pop ebp
ret 8