Function at 0x492597
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8b1c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7a8
mov dword [ebp - 0x7ac], ecx
mov dword [ebp - 0x414], 0
jmp 0x4925d6
mov eax, dword [ebp - 0x414]
add eax, 1
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0x1a
jge 0x4925f1
mov ecx, dword [ebp - 0x7ac]
add ecx, dword [ebp - 0x414]
mov byte [ecx + 0x34], 1
jmp 0x4925c7
lea edx, [ebp - 0x410]
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea eax, [ebp - 0x410]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
movsx edx, byte [ecx]
test edx, edx
je 0x4929bf
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 2
je 0x492649
cmp dword [ebp - 0x418], 3
je 0x492649
cmp dword [ebp - 0x418], 6
jne 0x4929a4
mov dword [ebp - 0x528], 0
mov byte [ebp - 0x524], 0
push 0x104
lea ecx, [ebp - 0x758]
push ecx
push 0
push 0
push 0
push 0x104
lea edx, [ebp - 0x524]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x4926d2
push 4
push str.NTFS
lea ecx, [ebp - 0x758]
push ecx
call fcn.004acde0
add esp, 0xc
test eax, eax
jne 0x4926ac
mov dword [ebp - 0x528], 2
jmp 0x4926d0
push 3
push 0x52fe0c
lea edx, [ebp - 0x758]
push edx
call fcn.004acde0
add esp, 0xc
test eax, eax
jne 0x4926d0
mov dword [ebp - 0x528], 1
jmp 0x49272b
mov dword [ebp - 0x528], 0
lea ecx, [ebp - 0x75c]
call fcn.00404dc0
mov dword [ebp - 4], 0
push 0xefa3
lea ecx, [ebp - 0x75c]
call fcn.004d46c7
lea ecx, [ebp - 0x75c]
call fcn.00447470
push eax
lea eax, [ebp - 0x758]
push eax
call fcn.004aa670
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x75c]
call fcn.004d37cb
movsx ecx, byte [ebp - 0x524]
test ecx, ecx
jne 0x492785
lea ecx, [ebp - 0x760]
call fcn.00404dc0
mov dword [ebp - 4], 1
push 0xefa4
lea ecx, [ebp - 0x760]
call fcn.004d46c7
lea ecx, [ebp - 0x760]
call fcn.00447470
push eax
lea edx, [ebp - 0x524]
push edx
call fcn.004aa670
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x760]
call fcn.004d37cb
mov eax, dword [ebp - 0x10]
mov cl, byte [eax]
mov byte [ebp - 0x420], cl
movsx edx, byte [ebp - 0x420]
push edx
call fcn.004aaac7
add esp, 4
mov byte [ebp - 0x420], al
push 0
mov al, byte [ebp - 0x420]
push eax
mov ecx, dword [ebp - 0x7ac]
call fcn.00493191
mov dword [ebp - 0x41c], eax
mov ecx, dword [ebp + 8]
and ecx, 0xff
test ecx, ecx
je 0x4927da
cmp dword [ebp - 0x41c], 0
jne 0x492969
mov dword [ebp - 0x774], 0
mov dword [ebp - 0x770], 0
lea edx, [ebp - 0x788]
push edx
lea eax, [ebp - 0x774]
push eax
lea ecx, [ebp - 0x768]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
lea ecx, [ebp - 0x778]
call fcn.00404dc0
mov dword [ebp - 4], 2
push 0xefaf
lea ecx, [ebp - 0x778]
call fcn.004d46c7
fild qword [ebp - 0x774]
sub esp, 8
fstp qword [esp]
lea eax, [ebp - 0x7a8]
push eax
call fcn.004524c3
add esp, 0xc
mov dword [ebp - 0x7b0], eax
mov ecx, dword [ebp - 0x7b0]
mov dword [ebp - 0x7b4], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x7b4]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x758]
push ecx
movsx edx, byte [ebp - 0x420]
push edx
lea eax, [ebp - 0x524]
push eax
lea ecx, [ebp - 0x778]
call fcn.00447470
push eax
lea ecx, [ebp - 0x654]
push ecx
call fcn.004a9b8d
add esp, 0x18
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x7a8]
call fcn.004d37cb
xor edx, edx
cmp dword [ebp - 0x418], 2
sete dl
push edx
lea eax, [ebp - 0x654]
push eax
mov ecx, dword [ebp - 0x528]
push ecx
mov dl, byte [ebp - 0x420]
push edx
lea ecx, [ebp - 0x7a0]
call fcn.00464700
mov byte [ebp - 4], 4
lea eax, [ebp - 0x7a0]
push eax
lea ecx, [ebp - 0x780]
call fcn.004910c0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x780]
push ecx
mov ecx, dword [ebp - 0x7ac]
add ecx, 4
call fcn.00490ee0
movsx edx, byte [ebp - 0x420]
sub edx, 0x41
mov dword [ebp - 0x76c], edx
cmp dword [ebp - 0x76c], 0
jl 0x492937
cmp dword [ebp - 0x76c], 0x1a
jge 0x492937
mov eax, dword [ebp - 0x7ac]
add eax, dword [ebp - 0x76c]
mov byte [eax + 0x34], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x780]
call fcn.00491180
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x7a0]
call fcn.00464782
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x778]
call fcn.004d37cb
jmp 0x4929a4
cmp dword [ebp - 0x41c], 0
je 0x4929a4
movsx ecx, byte [ebp - 0x420]
sub ecx, 0x41
mov dword [ebp - 0x7a4], ecx
cmp dword [ebp - 0x7a4], 0
jl 0x4929a4
cmp dword [ebp - 0x7a4], 0x1a
jge 0x4929a4
mov edx, dword [ebp - 0x7ac]
add edx, dword [ebp - 0x7a4]
mov byte [edx + 0x34], 0
mov eax, dword [ebp - 0x10]
push eax
call fcn.004a9710
add esp, 4
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x10], edx
jmp 0x49260c
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4