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

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xbc
push ebx
push esi
push edi
push 0x4a6658
mov dword [ebp + 0x58], ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp + 0x78]
push eax
call fcn.0042dd40
pop ecx
push 5
lea ecx, [ebp + 0x68]
call fcn.00432cd5
push 0x14
lea ecx, [ebp + 0x5c]
call fcn.00432cd5
lea ecx, [ebp + 0x60]
call fcn.00432cb7
xor ebx, ebx
mov byte [ebp + 0x6f], 0xff
mov byte [ebp + 0x6e], bl
mov byte [ebp + 0x67], bl
jmp 0x45408a
push 9
lea eax, [ebp + 0x78]
push eax
push str._userfree
call fcn.004349fd
add esp, 0xc
test al, al
je 0x453ff1
mov byte [ebp + 0x6f], bl
jmp 0x45408a
push 8
lea eax, [ebp + 0x78]
push eax
push str._userall
call fcn.004349fd
add esp, 0xc
test al, al
je 0x45400e
mov byte [ebp + 0x6f], 1
jmp 0x45408a
push 5
lea eax, [ebp + 0x78]
push eax
push str._free
call fcn.004349fd
add esp, 0xc
test al, al
je 0x45402b
mov byte [ebp + 0x6f], 2
jmp 0x45408a
push 4
lea eax, [ebp + 0x78]
push eax
push str._raw
call fcn.004349fd
add esp, 0xc
test al, al
je 0x454048
mov byte [ebp + 0x6e], 1
jmp 0x45408a
push 2
lea eax, [ebp + 0x78]
push eax
push 0x495928
call fcn.004349fd
add esp, 0xc
test al, al
je 0x454065
mov byte [ebp + 0x67], 1
jmp 0x45408a
push 6
lea eax, [ebp + 0x78]
push eax
push str._clear
call fcn.004349fd
add esp, 0xc
test al, al
jne 0x454102
lea eax, [ebp + 0x78]
push eax
call fcn.0040417e
pop ecx
mov eax, dword [ebp + 0x78]
cmp word [eax], 0x2d
je 0x453fd2
push 0x3d
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0043541b
mov ecx, dword [ebp + 0x58]
add esp, 0xc
push ebx
lea eax, [ebp + 0x5c]
push eax
call fcn.00402bfa
mov eax, dword [ebp + 0x78]
cmp word [eax], 0x3d
jne 0x4540d5
add dword [ebp + 0x78], 2
push 0x2c
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x78]
push eax
call fcn.0043541b
add esp, 0xc
mov eax, dword [ebp + 0x68]
push eax
mov dword [ebp + 0x78], eax
mov dword [ebp + 0x68], ebx
call fcn.0040e84c
pop ecx
push eax
lea ecx, [ebp + 0x68]
call fcn.0043cd64
lea ecx, [ebp + 0x78]
call fcn.0042dd2d
mov esi, dword [ebp + 0x5c]
xor ecx, ecx
mov cx, word [esi]
mov eax, esi
jmp 0x454122
push 8
push ebx
push 0x4a620c
call fcn.00479cf0
add esp, 0xc
jmp 0x454493
cmp cx, 0x2c
je 0x454129
inc eax
inc eax
mov cx, word [eax]
cmp cx, bx
jne 0x454117
jmp 0x454143
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.0043541b
add esp, 0xc
mov ecx, dword [ebp + 0x58]
push ebx
lea eax, [ebp + 0x60]
push eax
call fcn.00402bfa
push esi
call fcn.0040c79a
cmp word [esi], bx
pop ecx
jne 0x454164
mov eax, dword [ebp + 0x60]
cmp word [eax], bx
je 0x45416c
mov edi, dword [ebp + 0x68]
cmp word [edi], bx
jne 0x454174
xor ebx, ebx
inc ebx
jmp 0x454493
push edi
push 0x495608
call fcn.0042ece0
test al, al
pop ecx
pop ecx
je 0x4541bb
push 0xca
lea ecx, [ebp + 0x60]
call fcn.00432cfe
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.00437ce0
mov ecx, dword [ebp + 0x58]
add esp, 0x14
push dword [ebp + 0x68]
push esi
call fcn.00432698
jmp 0x454493
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea eax, [esi + 0x19]
push eax
lea ecx, [ebp + 0x68]
call fcn.00432cfe
cmp byte [ebp + 0x6f], bl
jl 0x4542a2
cmp esi, 1
mov edx, dword [ebp + 0x68]
jne 0x4541f7
cmp word [edx], 0x2e
je 0x45420d
mov word [edx + 2], 0x3a
mov word [edx + 4], 0x5c
mov word [edx + 6], bx
cmp esi, 2
jne 0x45420d
cmp word [edx + 2], 0x3a
jne 0x45420d
mov word [edx + 4], 0x5c
mov word [edx + 6], bx
mov esi, 0x4924c0
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 0x454264
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.0046f8bf
add esp, 0xc
mov ecx, dword [ebp + 0x58]
lea eax, [ebp - 0x4c]
push eax
push dword [ebp + 0x5c]
call fcn.00432698
lea ecx, [ebp + 0x60]
call fcn.0042dd2d
lea ecx, [ebp + 0x5c]
call fcn.0042dd2d
lea ecx, [ebp + 0x68]
call fcn.0042dd2d
push 0x4a6658
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
cmp esi, ebx
sete al
jmp 0x4544b8
mov esi, dword [ebp + 0x68]
mov ax, word [esi]
cmp ax, 0x61
jb 0x4542b7
cmp ax, 0x7a
ja 0x4542b7
and byte [esi], 0xdf
push str..C:
lea ecx, [ebp + 0x4c]
call fcn.0043ccfc
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 str.._
mov word [edi + 0xc], bx
mov dword [ebp + 0x78], 0x800
call fcn.0042ecb0
add esp, 0xc
test al, al
jne 0x4543a6
push 8
push esi
push str.Device_
call fcn.0042ecb0
add esp, 0xc
test al, al
jne 0x4543a6
cmp byte [ebp + 0x67], bl
mov word [esi + 2], 0x3a
mov word [esi + 6], bx
mov word [esi + 4], bx
je 0x45434b
mov ax, word [esi]
cmp ax, 0x41
jb 0x4543a6
cmp ax, 0x42
ja 0x4543a6
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x4543a6
movzx edi, word [esi]
sub edi, 0x41
jmp 0x4543a9
mov eax, dword [ebp + 0x5c]
cmp word [eax], bx
je 0x45435e
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov esi, eax
jmp 0x454361
mov esi, dword [ebp + 0x54]
mov eax, dword [ebp + 0x60]
cmp word [eax], bx
jne 0x45437d
cmp byte [ebp + 0x6e], bl
jne 0x454389
cmp esi, 2
je 0x45437d
cmp esi, 3
je 0x45437d
cmp esi, 5
jne 0x454389
push ebx
push edi
call fcn.004347a9
pop ecx
pop ecx
mov dword [ebp + 0x50], eax
or eax, 0xffffffff
cmp byte [ebp + 0x6e], bl
jne 0x454394
mov eax, dword [ebp + 0x50]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.00430e5f
mov edi, eax
jmp 0x454444
mov edi, dword [ebp + 0x78]
cmp edi, 1
mov dword [ebp + 0x78], ebx
jg 0x4543c1
lea eax, [edi*4 + 0x4a620c]
cmp dword [eax], ebx
je 0x4543c1
movsx eax, word [eax]
jmp 0x4543f1
mov eax, dword [ebp + 0x5c]
cmp word [eax], bx
je 0x4543f4
push ebx
push 0x20000000
push 3
push ebx
push 3
push 0x80000000
push esi
lea ecx, [ebp + 0x78]
call fcn.004041da
push edi
push 1
push ebx
push dword [ebp + 0x78]
call fcn.00437400
add esp, 0x10
mov dword [ebp + 0x54], eax
mov eax, dword [ebp + 0x60]
cmp word [eax], bx
je 0x454428
cmp dword [ebp + 0x78], ebx
jne 0x45441a
push ebx
push 0x20000000
push 3
push ebx
push 3
push 0x80000000
push esi
lea ecx, [ebp + 0x78]
call fcn.004041da
push dword [ebp + 0x78]
push ebx
call fcn.004347a9
pop ecx
pop ecx
mov dword [ebp + 0x50], eax
lea ecx, [ebp + 0x78]
call fcn.00402ad9
push dword [ebp + 0x54]
lea edi, [ebp - 0xc]
mov eax, edi
push 0x490dc4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebp + 0x5c]
add esp, 0xc
cmp word [eax], bx
je 0x454459
mov ecx, dword [ebp + 0x58]
push edi
push eax
call fcn.00432698
mov esi, dword [ebp + 0x60]
cmp word [esi], bx
je 0x454483
push dword [ebp + 0x50]
lea eax, [ebp - 0xc]
push 0x490dc4
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.00432698
cmp word [edi], bx
jne 0x45448b
xor ebx, ebx
inc ebx
lea ecx, [ebp + 0x4c]
call fcn.0042dd2d
lea ecx, [ebp + 0x60]
call fcn.0042dd2d
lea ecx, [ebp + 0x5c]
call fcn.0042dd2d
lea ecx, [ebp + 0x68]
call fcn.0042dd2d
push 0x4a6658
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret 8