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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
push ebx
push esi
push edi
push 0x4b069c
mov dword [ebp - 0x18], ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp + 8]
push eax
call fcn.00431c97
pop ecx
push 5
lea ecx, [ebp - 8]
call fcn.0043719c
push 0x14
lea ecx, [ebp - 0x14]
call fcn.0043719c
lea ecx, [ebp - 0x10]
call fcn.0043717e
xor ebx, ebx
mov byte [ebp - 1], 0xff
mov byte [ebp - 2], bl
mov byte [ebp - 9], bl
jmp 0x45aa8b
push 9
lea eax, [ebp + 8]
push eax
push str._userfree
call fcn.00438eee
add esp, 0xc
test al, al
je 0x45a9f2
mov byte [ebp - 1], bl
jmp 0x45aa8b
push 8
lea eax, [ebp + 8]
push eax
push str._userall
call fcn.00438eee
add esp, 0xc
test al, al
je 0x45aa0f
mov byte [ebp - 1], 1
jmp 0x45aa8b
push 5
lea eax, [ebp + 8]
push eax
push str._free
call fcn.00438eee
add esp, 0xc
test al, al
je 0x45aa2c
mov byte [ebp - 1], 2
jmp 0x45aa8b
push 4
lea eax, [ebp + 8]
push eax
push str._raw
call fcn.00438eee
add esp, 0xc
test al, al
je 0x45aa49
mov byte [ebp - 2], 1
jmp 0x45aa8b
push 2
lea eax, [ebp + 8]
push eax
push 0x49f558
call fcn.00438eee
add esp, 0xc
test al, al
je 0x45aa66
mov byte [ebp - 9], 1
jmp 0x45aa8b
push 6
lea eax, [ebp + 8]
push eax
push str._clear
call fcn.00438eee
add esp, 0xc
test al, al
jne 0x45ab03
lea eax, [ebp + 8]
push eax
call fcn.00404807
pop ecx
mov eax, dword [ebp + 8]
cmp word [eax], 0x2d
je 0x45a9d3
push 0x3d
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00439b04
mov ecx, dword [ebp - 0x18]
add esp, 0xc
push ebx
lea eax, [ebp - 0x14]
push eax
call fcn.00402c95
mov eax, dword [ebp + 8]
cmp word [eax], 0x3d
jne 0x45aad6
add dword [ebp + 8], 2
push 0x2c
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00439b04
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
mov dword [ebp + 8], eax
mov dword [ebp - 8], ebx
call fcn.0040f738
pop ecx
push eax
lea ecx, [ebp - 8]
call fcn.00441a24
lea ecx, [ebp + 8]
call fcn.00431c4c
mov esi, dword [ebp - 0x14]
xor ecx, ecx
mov cx, word [esi]
mov eax, esi
jmp 0x45ab23
push 8
push ebx
push 0x4b0238
call fcn.004832e0
add esp, 0xc
jmp 0x45aea7
cmp cx, 0x2c
je 0x45ab2a
inc eax
inc eax
mov cx, word [eax]
cmp cx, bx
jne 0x45ab18
jmp 0x45ab44
mov word [eax], bx
inc eax
inc eax
mov dword [ebp + 8], eax
push 0x2c
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00439b04
add esp, 0xc
mov ecx, dword [ebp - 0x18]
push ebx
lea eax, [ebp - 0x10]
push eax
call fcn.00402c95
push esi
call fcn.0040d1db
cmp word [esi], bx
pop ecx
jne 0x45ab65
mov eax, dword [ebp - 0x10]
cmp word [eax], bx
je 0x45ab6d
mov edi, dword [ebp - 8]
cmp word [edi], bx
jne 0x45ab75
xor ebx, ebx
inc ebx
jmp 0x45aea7
push edi
push 0x49c2ac
call fcn.00432c89
test al, al
pop ecx
pop ecx
je 0x45abbc
push 0xca
lea ecx, [ebp - 0x10]
call fcn.004371c5
mov eax, dword [ebp - 0x10]
push ebx
push ebx
push 1
mov word [eax], bx
lea eax, [ebp - 8]
push 0x7c
push eax
call fcn.0043c78f
mov ecx, dword [ebp - 0x18]
add esp, 0x14
push dword [ebp - 8]
push esi
call fcn.00436b54
jmp 0x45aea7
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea eax, [esi + 0x19]
push eax
lea ecx, [ebp - 8]
call fcn.004371c5
cmp byte [ebp - 1], bl
jl 0x45acaf
cmp esi, 1
mov edx, dword [ebp - 8]
jne 0x45abf8
cmp word [edx], 0x2e
je 0x45ac0e
mov word [edx + 2], 0x3a
mov word [edx + 4], 0x5c
mov word [edx + 6], bx
cmp esi, 2
jne 0x45ac0e
cmp word [edx + 2], 0x3a
jne 0x45ac0e
mov word [edx + 4], 0x5c
mov word [edx + 6], bx
mov esi, 0x49b454
lea edi, [ebp - 0xfc]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
push 0x1d
pop ecx
lea edi, [ebp - 0xf6]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x40]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov esi, eax
cmp esi, ebx
je 0x45ac6e
movsx eax, byte [ebp - 1]
push dword [ebp + eax*8 - 0x3c]
push dword [ebp + eax*8 - 0x40]
lea eax, [ebp - 0xfc]
push eax
call fcn.004781bb
add esp, 0xc
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0xfc]
push eax
push dword [ebp - 0x14]
call fcn.00436b54
lea ecx, [ebp - 0x10]
call fcn.00431c4c
lea ecx, [ebp - 0x14]
call fcn.00431c4c
lea ecx, [ebp - 8]
call fcn.00431c4c
push 0x4b069c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
cmp esi, ebx
sete al
jmp 0x45aecc
mov esi, dword [ebp - 8]
mov ax, word [esi]
cmp ax, 0x61
jb 0x45acc4
cmp ax, 0x7a
ja 0x45acc4
and byte [esi], 0xdf
push str..C:
lea ecx, [ebp - 0x28]
call fcn.004419bc
mov ax, word [esi]
mov edi, dword [ebp - 0x28]
or dword [ebp - 0x20], 0xffffffff
or dword [ebp - 0x1c], 0xffffffff
push 4
mov word [edi + 8], ax
push esi
mov word [edi + 0xe], bx
push 0x49fe28
mov word [edi + 0xc], bx
mov dword [ebp - 0x24], esi
mov dword [ebp + 8], 0x800
call fcn.00432c59
add esp, 0xc
test al, al
jne 0x45adb9
push 8
push esi
push str.Device_
call fcn.00432c59
add esp, 0xc
test al, al
jne 0x45adb9
cmp byte [ebp - 9], bl
mov word [esi + 2], 0x3a
mov word [esi + 6], bx
mov word [esi + 4], bx
mov dword [ebp - 0x24], edi
je 0x45ad5e
mov ax, word [esi]
cmp ax, 0x41
jb 0x45adb9
cmp ax, 0x42
ja 0x45adb9
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x45adb9
movzx esi, word [esi]
sub esi, 0x41
jmp 0x45adbc
mov eax, dword [ebp - 0x14]
cmp word [eax], bx
je 0x45ad71
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov esi, eax
jmp 0x45ad74
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
cmp word [eax], bx
jne 0x45ad90
cmp byte [ebp - 2], bl
jne 0x45ad9c
cmp esi, 2
je 0x45ad90
cmp esi, 3
je 0x45ad90
cmp esi, 5
jne 0x45ad9c
push ebx
push edi
call fcn.00438c9f
pop ecx
pop ecx
mov dword [ebp - 0x1c], eax
or eax, 0xffffffff
cmp byte [ebp - 2], bl
jne 0x45ada7
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
call fcn.004352af
mov edi, eax
jmp 0x45ae58
mov esi, dword [ebp + 8]
cmp esi, 1
mov dword [ebp + 8], ebx
mov edi, 0x80000000
jg 0x45add9
lea eax, [esi*4 + 0x4b0238]
cmp dword [eax], ebx
je 0x45add9
movsx eax, word [eax]
jmp 0x45ae07
mov eax, dword [ebp - 0x14]
cmp word [eax], bx
je 0x45ae0a
push ebx
push 0x20000000
push 3
push ebx
push 3
push edi
push dword [ebp - 0x24]
lea ecx, [ebp + 8]
call fcn.00404863
push esi
push 1
push ebx
push dword [ebp + 8]
call fcn.0043beaa
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
cmp word [eax], bx
je 0x45ae3c
cmp dword [ebp + 8], ebx
jne 0x45ae2e
push ebx
push 0x20000000
push 3
push ebx
push 3
push edi
push dword [ebp - 0x24]
lea ecx, [ebp + 8]
call fcn.00404863
push dword [ebp + 8]
push ebx
call fcn.00438c9f
pop ecx
pop ecx
mov dword [ebp - 0x1c], eax
lea ecx, [ebp + 8]
call fcn.00402b75
push dword [ebp - 0x20]
lea edi, [ebp - 0x80]
mov eax, edi
push 0x497ed0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebp - 0x14]
add esp, 0xc
cmp word [eax], bx
je 0x45ae6d
mov ecx, dword [ebp - 0x18]
push edi
push eax
call fcn.00436b54
mov esi, dword [ebp - 0x10]
cmp word [esi], bx
je 0x45ae97
push dword [ebp - 0x1c]
lea eax, [ebp - 0x80]
push 0x497ed0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 0x18]
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push esi
call fcn.00436b54
cmp word [edi], bx
jne 0x45ae9f
xor ebx, ebx
inc ebx
lea ecx, [ebp - 0x28]
call fcn.00431c4c
lea ecx, [ebp - 0x10]
call fcn.00431c4c
lea ecx, [ebp - 0x14]
call fcn.00431c4c
lea ecx, [ebp - 8]
call fcn.00431c4c
push 0x4b069c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 8