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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f45cb
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x5466b0]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
mov eax, dword [0x5466b0]
xor eax, esp
push eax
lea eax, [esp + 0x248]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
xor esi, esi
inc esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x28], esi
cmp edx, esi
jne 0x4930fc
cmp dword [ebp + 0x10], esi
jb 0x4932fe
xor esi, esi
cmp eax, esi
je 0x4932fe
mov eax, dword [eax]
mov dword [esp + 0x10], 0x5c3a63
mov al, byte [eax]
mov byte [esp + 0x10], al
xor eax, eax
lea edi, [esp + 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
push esi
push esi
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x4932fe
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
mov dword [esp + 0x14], eax
cmp eax, esi
jmp 0x49315a
cmp edx, 2
jne 0x493179
cmp dword [ebp + 0x10], esi
jb 0x4932fe
test eax, eax
je 0x4932fe
mov eax, dword [eax]
mov dword [esp + 0x10], 0x5c3a63
mov al, byte [eax]
mov byte [esp + 0x10], al
xor eax, eax
lea edi, [esp + 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0
lea eax, [esp + 0x20]
push eax
push 0
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x4932fe
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
pop ecx
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0x250], esi
je 0x4932db
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.00431080
jmp 0x4932dd
cmp edx, 4
jne 0x493286
cmp dword [ebp + 0x10], esi
jb 0x4932fe
test eax, eax
je 0x4932fe
mov esi, dword [eax]
call fcn.004312d0
mov ebx, eax
test ebx, ebx
jbe 0x4932fe
push 0x105
lea eax, [esp + 0x30]
push 0
push eax
mov dword [esp + 0x1c], 0x5c3a63
call fcn.004d7710
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x4932fe
push esi
lea eax, [esp + 0x138]
push 0
push eax
call fcn.004d7710
lea esi, [esp + 0x38]
mov eax, esi
add esp, 0xc
lea edi, [esp + 0x134]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4931fc
jmp 0x49323d
mov al, byte [esi]
mov byte [esp + 0x10], al
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp ebx, eax
jne 0x49321f
mov al, byte [esi]
mov byte [edi], al
inc edi
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x493224
sub eax, edx
lea esi, [esi + eax + 1]
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x493236
sub eax, ecx
jne 0x493205
push 0x54cfe0
push 0x10
call fcn.004cba2a
pop ecx
mov esi, eax
pop ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x250], 2
test esi, esi
je 0x493275
and dword [esi], 0
lea ebx, [esp + 0x134]
call fcn.0040c040
jmp 0x493277
xor esi, esi
or dword [esp + 0x250], 0xffffffff
mov ecx, dword [esp + 0x14]
push esi
jmp 0x4932e8
cmp edx, 5
jne 0x4932ef
cmp dword [ebp + 0x10], esi
jb 0x4932fe
test eax, eax
je 0x4932fe
mov eax, dword [eax]
mov dword [esp + 0x18], 0x5c3a63
mov al, byte [eax]
push 0x54cfe0
push 0x10
mov byte [esp + 0x20], al
call fcn.004cba2a
pop ecx
pop ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x250], 3
test eax, eax
je 0x4932db
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ecx, dword [esp + 0x14]
call fcn.0041a730
jmp 0x4932dd
xor eax, eax
or dword [esp + 0x250], 0xffffffff
push eax
mov ecx, ebx
call fcn.0040ed50
jmp 0x4932fe
push ebx
push dword [ebp + 0x10]
push eax
push edx
call fcn.00466419
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x248]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.004cb38b
mov esp, ebp
pop ebp
ret 0x10