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

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xbc
push ebx
push esi
push edi
push 0x4a7658
mov dword [ebp + 0x58], ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp + 0x78]
push eax
call fcn.0042ebab
pop ecx
push 5
lea ecx, [ebp + 0x68]
call fcn.00433c42
push 0x14
lea ecx, [ebp + 0x5c]
call fcn.00433c42
lea ecx, [ebp + 0x60]
call fcn.00433c24
xor ebx, ebx
mov byte [ebp + 0x6f], 0xff
mov byte [ebp + 0x6e], bl
mov byte [ebp + 0x67], bl
jmp 0x45508a
push 9
lea eax, [ebp + 0x78]
push eax
push str._userfree
call fcn.00435950
add esp, 0xc
test al, al
je 0x454ff1
mov byte [ebp + 0x6f], bl
jmp 0x45508a
push 8
lea eax, [ebp + 0x78]
push eax
push str._userall
call fcn.00435950
add esp, 0xc
test al, al
je 0x45500e
mov byte [ebp + 0x6f], 1
jmp 0x45508a
push 5
lea eax, [ebp + 0x78]
push eax
push str._free
call fcn.00435950
add esp, 0xc
test al, al
je 0x45502b
mov byte [ebp + 0x6f], 2
jmp 0x45508a
push 4
lea eax, [ebp + 0x78]
push eax
push str._raw
call fcn.00435950
add esp, 0xc
test al, al
je 0x455048
mov byte [ebp + 0x6e], 1
jmp 0x45508a
push 2
lea eax, [ebp + 0x78]
push eax
push 0x496a28
call fcn.00435950
add esp, 0xc
test al, al
je 0x455065
mov byte [ebp + 0x67], 1
jmp 0x45508a
push 6
lea eax, [ebp + 0x78]
push eax
push str._clear
call fcn.00435950
add esp, 0xc
test al, al
jne 0x455102
lea eax, [ebp + 0x78]
push eax
call fcn.0040418b
pop ecx
mov eax, dword [ebp + 0x78]
cmp word [eax], 0x2d
je 0x454fd2
push 0x3d
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.004364f8
mov ecx, dword [ebp + 0x58]
add esp, 0xc
push ebx
lea eax, [ebp + 0x5c]
push eax
call fcn.00402c07
mov eax, dword [ebp + 0x78]
cmp word [eax], 0x3d
jne 0x4550d5
add dword [ebp + 0x78], 2
push 0x2c
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.004364f8
add esp, 0xc
mov eax, dword [ebp + 0x68]
push eax
mov dword [ebp + 0x78], eax
mov dword [ebp + 0x68], ebx
call fcn.0040ec9c
pop ecx
push eax
lea ecx, [ebp + 0x68]
call fcn.0043de31
lea ecx, [ebp + 0x78]
call fcn.0042eb98
mov esi, dword [ebp + 0x5c]
xor ecx, ecx
mov cx, word [esi]
mov eax, esi
jmp 0x455122
push 8
push ebx
push 0x4a7210
call fcn.0047b210
add esp, 0xc
jmp 0x455493
cmp cx, 0x2c
je 0x455129
inc eax
inc eax
mov cx, word [eax]
cmp cx, bx
jne 0x455117
jmp 0x455143
mov word [eax], bx
inc eax
inc eax
mov dword [ebp + 0x78], eax
push 0x2c
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.004364f8
add esp, 0xc
mov ecx, dword [ebp + 0x58]
push ebx
lea eax, [ebp + 0x60]
push eax
call fcn.00402c07
push esi
call fcn.0040c744
cmp word [esi], bx
pop ecx
jne 0x455164
mov eax, dword [ebp + 0x60]
cmp word [eax], bx
je 0x45516c
mov edi, dword [ebp + 0x68]
cmp word [edi], bx
jne 0x455174
xor ebx, ebx
inc ebx
jmp 0x455493
push edi
push 0x496728
call fcn.0042fb17
test al, al
pop ecx
pop ecx
je 0x4551bb
push 0xca
lea ecx, [ebp + 0x60]
call fcn.00433c6b
mov eax, dword [ebp + 0x60]
push ebx
push ebx
push 1
mov word [eax], bx
lea eax, [ebp + 0x68]
push 0x7c
push eax
call fcn.00438dbd
mov ecx, dword [ebp + 0x58]
add esp, 0x14
push dword [ebp + 0x68]
push esi
call fcn.004335ed
jmp 0x455493
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea eax, [esi + 0x19]
push eax
lea ecx, [ebp + 0x68]
call fcn.00433c6b
cmp byte [ebp + 0x6f], bl
jl 0x4552a2
cmp esi, 1
mov edx, dword [ebp + 0x68]
jne 0x4551f7
cmp word [edx], 0x2e
je 0x45520d
mov word [edx + 2], 0x3a
mov word [edx + 4], 0x5c
mov word [edx + 6], bx
cmp esi, 2
jne 0x45520d
cmp word [edx + 2], 0x3a
jne 0x45520d
mov word [edx + 4], 0x5c
mov word [edx + 6], bx
mov esi, 0x493508
lea edi, [ebp - 0x4c]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
push 0xe
pop ecx
lea edi, [ebp - 0x46]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov dword [ebp + 0x34], ebx
mov dword [ebp + 0x38], ebx
lea edi, [ebp + 0x3c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp + 0x3c]
push eax
lea eax, [ebp + 0x34]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov esi, eax
cmp esi, ebx
je 0x455264
movsx eax, byte [ebp + 0x6f]
push dword [ebp + eax*8 + 0x38]
push dword [ebp + eax*8 + 0x34]
lea eax, [ebp - 0x4c]
push eax
call fcn.00470dcf
add esp, 0xc
mov ecx, dword [ebp + 0x58]
lea eax, [ebp - 0x4c]
push eax
push dword [ebp + 0x5c]
call fcn.004335ed
lea ecx, [ebp + 0x60]
call fcn.0042eb98
lea ecx, [ebp + 0x5c]
call fcn.0042eb98
lea ecx, [ebp + 0x68]
call fcn.0042eb98
push 0x4a7658
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
cmp esi, ebx
sete al
jmp 0x4554b8
mov esi, dword [ebp + 0x68]
mov ax, word [esi]
cmp ax, 0x61
jb 0x4552b7
cmp ax, 0x7a
ja 0x4552b7
and byte [esi], 0xdf
push str..C:
lea ecx, [ebp + 0x4c]
call fcn.0043ddc9
mov ax, word [esi]
mov edi, dword [ebp + 0x4c]
or dword [ebp + 0x54], 0xffffffff
or dword [ebp + 0x50], 0xffffffff
push 4
mov word [edi + 8], ax
push esi
mov word [edi + 0xe], bx
push 0x49717c
mov word [edi + 0xc], bx
mov dword [ebp + 0x78], 0x800
call fcn.0042fae7
add esp, 0xc
test al, al
jne 0x4553a6
push 8
push esi
push str.Device_
call fcn.0042fae7
add esp, 0xc
test al, al
jne 0x4553a6
cmp byte [ebp + 0x67], bl
mov word [esi + 2], 0x3a
mov word [esi + 6], bx
mov word [esi + 4], bx
je 0x45534b
mov ax, word [esi]
cmp ax, 0x41
jb 0x4553a6
cmp ax, 0x42
ja 0x4553a6
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x4553a6
movzx edi, word [esi]
sub edi, 0x41
jmp 0x4553a9
mov eax, dword [ebp + 0x5c]
cmp word [eax], bx
je 0x45535e
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov esi, eax
jmp 0x455361
mov esi, dword [ebp + 0x54]
mov eax, dword [ebp + 0x60]
cmp word [eax], bx
jne 0x45537d
cmp byte [ebp + 0x6e], bl
jne 0x455389
cmp esi, 2
je 0x45537d
cmp esi, 3
je 0x45537d
cmp esi, 5
jne 0x455389
push ebx
push edi
call fcn.004356fc
pop ecx
pop ecx
mov dword [ebp + 0x50], eax
or eax, 0xffffffff
cmp byte [ebp + 0x6e], bl
jne 0x455394
mov eax, dword [ebp + 0x50]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.00431d88
mov edi, eax
jmp 0x455444
mov edi, dword [ebp + 0x78]
cmp edi, 1
mov dword [ebp + 0x78], ebx
jg 0x4553c1
lea eax, [edi*4 + 0x4a7210]
cmp dword [eax], ebx
je 0x4553c1
movsx eax, word [eax]
jmp 0x4553f1
mov eax, dword [ebp + 0x5c]
cmp word [eax], bx
je 0x4553f4
push ebx
push 0x20000000
push 3
push ebx
push 3
push 0x80000000
push esi
lea ecx, [ebp + 0x78]
call fcn.004041e7
push edi
push 1
push ebx
push dword [ebp + 0x78]
call fcn.004384dd
add esp, 0x10
mov dword [ebp + 0x54], eax
mov eax, dword [ebp + 0x60]
cmp word [eax], bx
je 0x455428
cmp dword [ebp + 0x78], ebx
jne 0x45541a
push ebx
push 0x20000000
push 3
push ebx
push 3
push 0x80000000
push esi
lea ecx, [ebp + 0x78]
call fcn.004041e7
push dword [ebp + 0x78]
push ebx
call fcn.004356fc
pop ecx
pop ecx
mov dword [ebp + 0x50], eax
lea ecx, [ebp + 0x78]
call fcn.00402ac9
push dword [ebp + 0x54]
lea edi, [ebp - 0xc]
mov eax, edi
push 0x491cbc
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebp + 0x5c]
add esp, 0xc
cmp word [eax], bx
je 0x455459
mov ecx, dword [ebp + 0x58]
push edi
push eax
call fcn.004335ed
mov esi, dword [ebp + 0x60]
cmp word [esi], bx
je 0x455483
push dword [ebp + 0x50]
lea eax, [ebp - 0xc]
push 0x491cbc
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp + 0x58]
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.004335ed
cmp word [edi], bx
jne 0x45548b
xor ebx, ebx
inc ebx
lea ecx, [ebp + 0x4c]
call fcn.0042eb98
lea ecx, [ebp + 0x60]
call fcn.0042eb98
lea ecx, [ebp + 0x5c]
call fcn.0042eb98
lea ecx, [ebp + 0x68]
call fcn.0042eb98
push 0x4a7658
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret 8