Function at 0x49a715
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x3fc]
sub esp, 0x47c
mov eax, dword [0x503270]
push esi
mov esi, dword [ebp + 0x404]
push 0x4f15cc
push esi
mov dword [ebp + 0x3f8], eax
call fcn.004a2b4d
test eax, eax
pop ecx
pop ecx
je 0x49a75f
call fcn.004980c9
push 2
pop esi
mov dword [eax], esi
call fcn.004980d2
mov dword [eax], esi
or eax, 0xffffffff
jmp 0x49a9fe
push edi
xor edi, edi
cmp word [esi + 2], 0x3a
jne 0x49a79f
mov ax, word [esi]
cmp ax, di
je 0x49a790
cmp word [esi + 4], di
jne 0x49a790
call fcn.004980c9
push 2
pop esi
mov dword [eax], esi
call fcn.004980d2
mov dword [eax], esi
or eax, 0xffffffff
jmp 0x49a9fd
push eax
call fcn.004a2b02
movzx eax, ax
pop ecx
sub eax, 0x60
jmp 0x49a7a4
call fcn.004a1ae0
mov dword [ebp - 0x80], eax
push ebx
lea eax, [ebp + 0x1a8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
or ebx, 0xffffffff
cmp eax, ebx
mov dword [ebp - 0x74], eax
jne 0x49a86a
push 0x4f15c4
push esi
call fcn.004a2b4d
test eax, eax
pop ecx
pop ecx
je 0x49a854
push 0x104
lea eax, [ebp - 0x60]
push esi
push eax
call fcn.004a29f3
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x49a854
push esi
call fcn.004a29dd
cmp eax, 3
pop ecx
je 0x49a802
call fcn.0049a68a
test eax, eax
je 0x49a854
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x49a854
push ebx
push edi
push edi
push edi
push 1
push 1
push 0x7bc
mov dword [ebp + 0x1a8], 0x10
mov dword [ebp + 0x1c4], edi
mov dword [ebp + 0x1c8], edi
mov word [ebp + 0x1d4], di
call fcn.004a1772
mov esi, dword [ebp + 0x408]
add esp, 0x1c
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x20], eax
jmp 0x49a9a5
call fcn.004980c9
push 2
pop esi
mov dword [eax], esi
call fcn.004980d2
mov dword [eax], esi
jmp 0x49a9fa
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x1bc]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x49a9e4
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x49a9e4
movzx eax, word [ebp - 0x64]
push ebx
push eax
movzx eax, word [ebp - 0x66]
push eax
movzx eax, word [ebp - 0x68]
push eax
movzx eax, word [ebp - 0x6a]
push eax
movzx eax, word [ebp - 0x6e]
push eax
movzx eax, word [ebp - 0x70]
push eax
call fcn.004a1772
mov esi, dword [ebp + 0x408]
add esp, 0x1c
cmp dword [ebp + 0x1b4], edi
mov dword [esi + 0x1c], eax
jne 0x49a8d9
cmp dword [ebp + 0x1b8], edi
je 0x49a92f
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x1b4]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x49a9e4
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x49a9e4
movzx eax, word [ebp - 0x64]
push ebx
push eax
movzx eax, word [ebp - 0x66]
push eax
movzx eax, word [ebp - 0x68]
push eax
movzx eax, word [ebp - 0x6a]
push eax
movzx eax, word [ebp - 0x6e]
push eax
movzx eax, word [ebp - 0x70]
push eax
call fcn.004a1772
add esp, 0x1c
cmp dword [ebp + 0x1ac], edi
mov dword [esi + 0x18], eax
jne 0x49a947
cmp dword [ebp + 0x1b0], edi
jne 0x49a947
mov eax, dword [esi + 0x1c]
jmp 0x49a999
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x1ac]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x49a9e4
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x49a9e4
movzx eax, word [ebp - 0x64]
push ebx
push eax
movzx eax, word [ebp - 0x66]
push eax
movzx eax, word [ebp - 0x68]
push eax
movzx eax, word [ebp - 0x6a]
push eax
movzx eax, word [ebp - 0x6e]
push eax
movzx eax, word [ebp - 0x70]
push eax
call fcn.004a1772
add esp, 0x1c
push dword [ebp - 0x74]
mov dword [esi + 0x20], eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 0x404]
push dword [ebp + 0x1a8]
call fcn.0049a5c7
mov word [esi + 6], ax
mov eax, dword [ebp + 0x1c8]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0x80]
dec eax
pop ecx
mov dword [esi], eax
mov dword [esi + 0x10], eax
pop ecx
mov word [esi + 8], 1
mov word [esi + 4], di
mov word [esi + 0xc], di
mov word [esi + 0xa], di
xor eax, eax
jmp 0x49a9fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004980db
pop ecx
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
pop ebx
pop edi
mov ecx, dword [ebp + 0x3f8]
pop esi
call fcn.0049bcd6
add ebp, 0x3fc
leave
ret