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

Disassembly:
push ebp
lea ebp, [esp - 0x60c]
sub esp, 0x60c
push 0xfffffffffffffffe
push 0x671590
push 0x5dfbd0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x6aae14]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x608], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 0x614]
mov dword [ebp - 0x30], eax
xor esi, esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], esi
mov byte [ebp], 0
push 0x3ff
push esi
lea ecx, [ebp + 1]
push ecx
call fcn.005dfd60
mov byte [ebp + 0x400], 0
push 0x103
push esi
lea edx, [ebp + 0x401]
push edx
call fcn.005dfd60
push esi
push esi
lea eax, [ebp + 0x400]
push eax
call fcn.004a7fc0
add esp, 0x24
cmp eax, esi
je 0x4a8921
cmp byte [ebp + 0x400], 0
je 0x4a8921
mov dword [ebp - 0x1c], esi
push 1
push esi
push 0x2c
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp + 0x504]
push edx
lea eax, [ebp + 0x400]
push eax
call fcn.004e1380
mov ebx, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
add esp, 0x18
cmp dword [ebp - 0x1c], 0xffffffff
je 0x4a8a2d
test esi, esi
je 0x4a8843
lea ecx, [ebp + 0x504]
push ecx
push str._DF__GDT:_s
push 0
call fcn.004f0f30
add esp, 0xc
lea edx, [ebp + 0x504]
push edx
call ebx
mov edi, eax
test esi, esi
je 0x4a8862
push edi
push str._DF__GDT_Res:_d
push 0
call fcn.004f0f30
add esp, 0xc
cmp edi, 3
jne 0x4a88ff
test esi, esi
je 0x4a8885
lea eax, [ebp + 0x504]
push eax
push str._DF__DFree:_s
push 0
call fcn.004f0f30
add esp, 0xc
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp + 0x504]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x4a88ff
test esi, esi
je 0x4a88bc
lea edx, [ebp + 0x504]
push edx
push str._DF__DFree_Str:_s
push 0
call fcn.004f0f30
add esp, 0xc
push esi
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp]
push ecx
mov edx, dword [ebp + 0x504]
push edx
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.004a8470
add esp, 0x28
test esi, esi
je 0x4a88ff
push str._DF__DFree_Str_Fin
push 0
call fcn.004f0f30
add esp, 8
push 1
push 0
push 0x2c
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0x504]
push ecx
lea edx, [ebp + 0x400]
push edx
call fcn.004e1380
jmp 0x4a881c
mov ebx, 0x41
mov dword [ebp - 0x3c], ebx
cmp ebx, 0x5a
jg 0x4a8a2d
mov byte [ebp + 0x504], bl
mov byte [ebp + 0x505], 0x3a
mov byte [ebp + 0x506], 0x5c
mov byte [ebp + 0x507], 0
test esi, esi
je 0x4a8967
lea eax, [ebp + 0x504]
push eax
push str._DF__GDT_A_:_s
push 0
call fcn.004f0f30
add esp, 0xc
lea ecx, [ebp + 0x504]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edi, eax
test esi, esi
je 0x4a898a
push edi
push str._DF__GDT_Res_A:_d
push 0
call fcn.004f0f30
add esp, 0xc
cmp edi, 3
jne 0x4a8a27
test esi, esi
je 0x4a89ad
lea edx, [ebp + 0x504]
push edx
push str._DF__DFree_A_:_s
push 0
call fcn.004f0f30
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp + 0x504]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x4a8a27
test esi, esi
je 0x4a89e4
lea ecx, [ebp + 0x504]
push ecx
push str._DF__DFree_Str_A_:_s
push 0
call fcn.004f0f30
add esp, 0xc
push esi
mov edx, dword [ebp - 0x30]
push edx
lea eax, [ebp]
push eax
mov ecx, dword [ebp + 0x504]
push ecx
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.004a8470
add esp, 0x28
test esi, esi
je 0x4a8a27
push str._DF__DFree_Str_Fin_A_
push 0
call fcn.004f0f30
add esp, 8
inc ebx
jmp 0x4a8926
test esi, esi
je 0x4a8a44
lea edx, [ebp]
push edx
push str._DF__Malloc_A___s_
push 0
call fcn.004f0f30
add esp, 0xc
lea eax, [ebp]
push eax
call fcn.004dd6c0
inc eax
push eax
call fcn.005e20e4
add esp, 8
mov edi, eax
mov dword [ebp - 0x2c], edi
test edi, edi
je 0x4a8a6f
lea ecx, [ebp]
mov edx, edi
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x4a8a65
test esi, esi
je 0x4a8a82
push str._DF__Fin
push 0
call fcn.004f0f30
add esp, 8
mov dword [ebp - 4], 0xfffffffe
jmp 0x4a8aad
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x608]
xor ecx, ebp
call fcn.005dfbbe
add ebp, 0x60c
mov esp, ebp
pop ebp
ret