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

Disassembly:
push ebp
lea ebp, [esp - 0x60c]
sub esp, 0x60c
push 0xfffffffffffffffe
push 0x10184aa0
push 0x10132540
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x10189710]
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 - 0x2c], eax
xor edi, edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], edi
mov byte [ebp], 0
push 0x3ff
push edi
lea ecx, [ebp + 1]
push ecx
call fcn.1012e060
mov byte [ebp + 0x400], 0
push 0x103
push edi
lea edx, [ebp + 0x401]
push edx
call fcn.1012e060
add esp, 0x18
lea ecx, [ebp + 0x400]
call fcn.10012120
cmp eax, edi
je 0x100129aa
cmp byte [ebp + 0x400], 0
je 0x100129aa
mov dword [ebp - 0x1c], edi
push 1
push 0x2c
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0x504]
push ecx
xor cl, cl
lea edx, [ebp + 0x400]
call fcn.10061f00
mov ebx, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
add esp, 0x10
cmp dword [ebp - 0x1c], 0xffffffff
je 0x10012ab3
test edi, edi
je 0x100128d0
lea edx, [ebp + 0x504]
push edx
push str._DF__GDT:_s
push 0
call fcn.1006ed90
add esp, 0xc
lea eax, [ebp + 0x504]
push eax
call ebx
mov esi, eax
test edi, edi
je 0x100128ef
push esi
push str._DF__GDT_Res:_d
push 0
call fcn.1006ed90
add esp, 0xc
cmp esi, 3
jne 0x10012989
test edi, edi
je 0x10012912
lea ecx, [ebp + 0x504]
push ecx
push str._DF__DFree:_s
push 0
call fcn.1006ed90
add esp, 0xc
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp + 0x504]
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x10012989
test edi, edi
je 0x10012949
lea eax, [ebp + 0x504]
push eax
push str._DF__DFree_Str:_s
push 0
call fcn.1006ed90
add esp, 0xc
mov ecx, dword [ebp + 0x504]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp]
call fcn.10012540
add esp, 0x1c
test edi, edi
je 0x10012989
push str._DF__DFree_Str_Fin
push 0
call fcn.1006ed90
add esp, 8
push 1
push 0x2c
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp + 0x504]
push eax
xor cl, cl
lea edx, [ebp + 0x400]
call fcn.10061f00
jmp 0x100128a9
mov ebx, 0x41
mov dword [ebp - 0x3c], ebx
cmp ebx, 0x5a
jg 0x10012ab3
mov byte [ebp + 0x504], bl
mov byte [ebp + 0x505], 0x3a
mov byte [ebp + 0x506], 0x5c
mov byte [ebp + 0x507], 0
test edi, edi
je 0x100129f0
lea ecx, [ebp + 0x504]
push ecx
push str._DF__GDT_A_:_s
push 0
call fcn.1006ed90
add esp, 0xc
lea edx, [ebp + 0x504]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov esi, eax
test edi, edi
je 0x10012a13
push esi
push str._DF__GDT_Res_A:_d
push 0
call fcn.1006ed90
add esp, 0xc
cmp esi, 3
jne 0x10012aad
test edi, edi
je 0x10012a36
lea eax, [ebp + 0x504]
push eax
push str._DF__DFree_A_:_s
push 0
call fcn.1006ed90
add esp, 0xc
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp + 0x504]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x10012aad
test edi, edi
je 0x10012a6d
lea edx, [ebp + 0x504]
push edx
push str._DF__DFree_Str_A_:_s
push 0
call fcn.1006ed90
add esp, 0xc
mov eax, dword [ebp + 0x504]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp]
call fcn.10012540
add esp, 0x1c
test edi, edi
je 0x10012aad
push str._DF__DFree_Str_Fin_A_
push 0
call fcn.1006ed90
add esp, 8
inc ebx
jmp 0x100129af
test edi, edi
je 0x10012aca
lea ecx, [ebp]
push ecx
push str._DF__Malloc_A___s_
push 0
call fcn.1006ed90
add esp, 0xc
lea eax, [ebp]
mov dword [ebp - 0x44], eax
cmp byte [eax], 0
je 0x10012ad8
inc eax
jmp 0x10012acd
lea edx, [ebp]
sub eax, edx
inc eax
push eax
call fcn.10128320
add esp, 4
mov esi, eax
mov dword [ebp - 0x30], esi
test esi, esi
je 0x10012aff
lea ecx, [ebp]
mov edx, esi
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x10012af5
test edi, edi
je 0x10012b12
push str._DF__Fin
push 0
call fcn.1006ed90
add esp, 8
mov dword [ebp - 4], 0xfffffffe
jmp 0x10012b3d
mov eax, esi
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.10127db1
add ebp, 0x60c
mov esp, ebp
pop ebp
ret