Function at 0x45a240
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x14c4]
mov eax, 0x14c4
call fcn.004d7c90
push 0xffffffffffffffff
push 0x516739
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x56c3c0]
xor eax, ebp
mov dword [ebp + 0x14c0], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x14d4]
mov ebx, dword [ebp + 0x14cc]
mov edx, dword [ebp + 0x14d8]
mov edi, dword [ebp + 0x14d0]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x14dc]
mov dword [ebp - 0x2c], eax
movzx eax, byte [ebx + 0x5a7]
xor esi, esi
sub eax, 1
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x38], esi
jne 0x45a3f3
cmp dword [ebx + 0x5ac], esi
jl 0x45a3f3
jg 0x45a2df
cmp dword [ebx + 0x5a8], esi
jbe 0x45a3f3
lea edx, [ebp - 0x40]
push edx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
call fcn.00458b90
test eax, eax
jne 0x45a378
push 2
lea eax, [ebp - 0x44]
push eax
mov ecx, 0x57148c
call fcn.0047c420
mov edi, eax
push 0x4b
lea ecx, [ebp - 0x14]
push ecx
mov ecx, 0x57148c
mov dword [ebp - 4], esi
call fcn.0047c420
mov edi, dword [edi]
mov eax, dword [eax]
push 0x40
push edi
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45a349
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x44]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45aaeb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x45aaeb
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [ebx + 0x5ac]
jl 0x45a3f3
jg 0x45a390
mov edx, dword [ebp - 0x40]
cmp edx, dword [ebx + 0x5a8]
jb 0x45a3f3
cmp byte [ebx + 0x430], 0
je 0x45a3a6
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x410], 1
push 2
lea ecx, [ebp - 0x28]
push ecx
mov ecx, 0x57148c
call fcn.0047c420
mov edi, eax
push 0x4c
lea edx, [ebp - 0x48]
push edx
mov ecx, 0x57148c
mov dword [ebp - 4], 1
call fcn.0047c420
mov ecx, dword [edi]
mov edx, dword [eax]
push 0x40
push ecx
push edx
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x48]
call fcn.0044c650
lea ecx, [ebp - 0x28]
call fcn.0044c650
jmp 0x45aaeb
lea ecx, [ebp]
call fcn.0044a390
lea esi, [ebx + 0x3e]
mov dword [ebp - 4], 2
test esi, esi
jne 0x45a40d
xor eax, eax
jmp 0x45a43c
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
cmp eax, 0x3fffffff
mov dword [ebp - 0x14], eax
jle 0x45a423
xor eax, eax
jmp 0x45a43c
mov eax, dword [ebp - 0x14]
add eax, eax
call fcn.004d6570
mov ecx, dword [ebp - 0x14]
mov eax, esp
push 3
push ecx
push esi
push eax
call fcn.0044a2c0
lea edx, [ebp - 0x38]
push edx
lea ecx, [ebp - 0x30]
push ecx
push 0
push eax
lea ecx, [ebp]
call fcn.0044b330
test eax, eax
je 0x45a465
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x38]
mov dword [ebx + 0x427], edx
mov dword [ebx + 0x42b], eax
xor edx, edx
cmp dword [ebx + 0x427], edx
je 0x45aa4e
cmp dword [ebx + 0x42b], edx
je 0x45aa4e
movzx eax, byte [ebx + 0x326]
cmp eax, 0xb
ja case.0x45a496.4
movzx ecx, byte [eax + 0x45ab34]
jmp dword [ecx*4 + 0x45ab1c]
lea ecx, [ebp]
mov dword [ebp - 4], 0xffffffff
call fcn.0044a3c0
mov eax, 1
jmp 0x45aaed
xor edx, edx
push 0x3fe
push edx
lea eax, [ebp + 0x108e]
push eax
mov word [ebp + 0x108c], dx
call fcn.004d5720
add esp, 0xc
push 0x200
lea ecx, [ebp + 0x108c]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.004577b0
lea edi, [ebx + 0x5b5]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x45a596
xor edx, edx
push 0x1fe
push edx
lea eax, [ebp + 0xe8e]
push eax
mov word [ebp + 0xe8c], dx
call fcn.004d5720
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.0044c620
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x28]
push ecx
push 0x100
lea edx, [ebp + 0xe8c]
push edx
push 0x53f45c
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x10]
push str._08u
push ecx
call fcn.0044ed60
add esp, 0xc
push edi
lea ecx, [ebp - 0x10]
call fcn.0044c1f0
lea ecx, [ebp - 0x10]
test eax, eax
jne 0x45a58d
call fcn.0044c650
lea ecx, [ebp]
mov dword [ebp - 4], 0xffffffff
call fcn.0044a3c0
mov eax, 1
jmp 0x45aaed
mov byte [ebp - 4], 2
call fcn.0044c650
test esi, esi
jne 0x45a59f
mov dword [ebp - 0x10], esi
jmp 0x45a5d1
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x45a5ba
mov dword [ebp - 0x10], 0
jmp 0x45a5d1
lea eax, [edi + edi]
call fcn.004d6570
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.0044a2c0
mov dword [ebp - 0x10], eax
lea edi, [ebx + 0x304]
test edi, edi
jne 0x45a5df
xor eax, eax
jmp 0x45a608
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x45a5f2
xor eax, eax
jmp 0x45a608
lea esi, [eax + eax]
mov eax, esi
call fcn.004d6570
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.0044a300
mov edx, dword [ebp - 0x10]
push 0
push 0
push 0
push edx
xor edx, edx
cmp byte [ebx + 0x326], 5
lea ecx, [ebp + 0x108c]
sete dl
push ecx
push eax
lea ecx, [ebp + 0x450]
push edx
push 0
call fcn.004661a0
mov byte [ebp - 4], 5
lea ecx, [ebp + 0x450]
call fcn.004a3239
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x450]
cmp eax, 1
je 0x45a65c
call fcn.00459450
jmp case.0x45a496.4
call fcn.00459450
jmp case.0x45a496.0
mov eax, dword [ebp - 0x2c]
movzx eax, word [eax]
mov esi, 0xffff
mov ecx, 3
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ecx
cmp si, ax
je 0x45a687
movzx ecx, ax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], edx
cmp ecx, edx
jbe 0x45a78b
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
jmp 0x45a6a0
cmp dword [ebp - 0x10], 0
jne case.0x45a496.0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0xe0]
call fcn.004709e0
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 6
call fcn.004a3239
cmp eax, 1
jne 0x45a7d6
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0xea0ea0eb
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
xor esi, esi
test ecx, ecx
jle 0x45a744
mov edx, dword [ebp - 0x5c]
push edx
push esi
mov ecx, edi
call fcn.00457820
push eax
call ebx
test eax, eax
jne 0x45a71d
mov eax, dword [ebp - 0x54]
push eax
push esi
mov ecx, edi
call fcn.00457820
add eax, 0x42
push eax
call ebx
test eax, eax
je 0x45a73d
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0xea0ea0eb
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
inc esi
add ecx, edx
cmp esi, ecx
jl 0x45a6f4
jmp 0x45a744
mov dword [ebp - 0x10], 1
inc dword [ebp - 0x14]
cmp dword [ebp - 0x10], 0
jne 0x45a766
mov ecx, dword [ebp - 0x2c]
movzx eax, word [ecx]
mov edx, 0xffff
cmp dx, ax
je 0x45a766
test ax, ax
jbe 0x45a766
dec eax
mov word [ecx], ax
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 2
call fcn.00459510
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
jb 0x45a6a0
cmp dword [ebp - 0x10], 0
jne case.0x45a496.0
push 1
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, 0x57148c
call fcn.0047c420
mov esi, eax
push 0x14
lea edx, [ebp - 0x4c]
push edx
mov ecx, 0x57148c
mov byte [ebp - 4], 7
call fcn.0047c420
mov esi, dword [esi]
mov eax, dword [eax]
push 0x10
push esi
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x4c]
call fcn.0044c650
lea ecx, [ebp - 0x1c]
call fcn.0044c650
jmp case.0x45a496.4
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 2
call fcn.00459510
jmp case.0x45a496.4
xor eax, eax
push 0x3fe
push eax
lea ecx, [ebp + 0x108e]
push ecx
mov word [ebp + 0x108c], ax
call fcn.004d5720
mov ecx, dword [ebp - 0x10]
add esp, 0xc
push 0x200
lea edx, [ebp + 0x108c]
push edx
call fcn.004577b0
test esi, esi
jne 0x45a825
mov dword [ebp - 0x14], esi
jmp 0x45a857
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
inc ebx
cmp ebx, 0x3fffffff
jle 0x45a840
mov dword [ebp - 0x14], 0
jmp 0x45a857
lea eax, [ebx + ebx]
call fcn.004d6570
mov eax, esp
push 3
push ebx
push esi
push eax
call fcn.0044a2c0
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x18]
add ebx, 0x304
jne 0x45a866
xor eax, eax
jmp 0x45a88f
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x45a879
xor eax, eax
jmp 0x45a88f
lea esi, [eax + eax]
mov eax, esi
call fcn.004d6570
mov eax, esp
push 3
push esi
push ebx
push eax
call fcn.0044a300
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x14]
push ecx
push edi
push 1
push edx
lea ecx, [ebp + 0x108c]
push ecx
push eax
mov eax, dword [ebp - 0x18]
xor edx, edx
cmp byte [eax + 0x326], 0xb
lea ecx, [ebp + 0x450]
sete dl
push edx
push 0
call fcn.004661a0
mov byte [ebp - 4], 8
jmp 0x45a638
mov ecx, dword [ebp - 0x1c]
push 0x30
lea edx, [ebp + 0x148d]
push 0
push edx
mov dword [ecx], 1
mov byte [ebp + 0x148c], 0
call fcn.004d5720
xor eax, eax
push 0x3fe
push eax
lea ecx, [ebp + 0xa8e]
push ecx
mov word [ebp + 0xa8c], ax
call fcn.004d5720
xor edx, edx
push 0x3fe
push edx
lea eax, [ebp + 0x68e]
push eax
mov word [ebp + 0x68c], dx
call fcn.004d5720
add esp, 0x24
push 0x200
lea ecx, [ebp + 0x68c]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.004577b0
push 0x522b08
lea edx, [ebp + 0x68c]
push edx
lea eax, [ebp + 0xa8c]
push 0x52238c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [ebp + 0x148c]
push ecx
lea edx, [ebp + 0xa8c]
push edx
call fcn.004568b0
add esp, 0x18
test eax, eax
je 0x45aa03
mov edi, dword [ebp - 0x34]
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0x63e7063f
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x45aa03
xor ebx, ebx
test eax, eax
jle 0x45aa03
lea eax, [ebp + 0x148c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x45a9af
xor eax, eax
jmp 0x45a9c9
lea eax, [esi + esi]
call fcn.004d6570
mov eax, esp
push 3
push esi
lea ecx, [ebp + 0x148c]
push ecx
push eax
call fcn.0044a2c0
push eax
push ebx
mov ecx, edi
call fcn.00457880
add eax, 0x42
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je case.0x45a496.0
mov edi, dword [ebp - 0x34]
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0x63e7063f
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
inc ebx
add eax, edx
cmp ebx, eax
jl 0x45a993
push 1
lea ecx, [ebp - 0x24]
push ecx
mov ecx, 0x57148c
call fcn.0047c420
mov esi, eax
push 0x37
lea edx, [ebp - 0x20]
push edx
mov ecx, 0x57148c
mov byte [ebp - 4], 9
call fcn.0047c420
mov esi, dword [esi]
mov eax, dword [eax]
push 0x10
push esi
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x20]
call fcn.0044c650
lea ecx, [ebp - 0x24]
call fcn.0044c650
jmp case.0x45a496.4
cmp byte [ebx + 0x430], 0
je 0x45aa64
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x410], 1
push 2
lea ecx, [ebp - 0x20]
push ecx
mov ecx, 0x57148c
call fcn.0047c420
mov esi, eax
push 0x32
lea edx, [ebp - 0x24]
push edx
mov ecx, 0x57148c
mov byte [ebp - 4], 3
call fcn.0047c420
mov esi, dword [esi]
mov eax, dword [eax]
push 0x40
push esi
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45aab9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg case.0x45a496.4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp]
mov dword [ebp - 4], 0xffffffff
call fcn.0044a3c0
xor eax, eax
lea esp, [ebp - 0xf0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x14c0]
xor ecx, ebp
call fcn.004d6555
add ebp, 0x14c4
mov esp, ebp
pop ebp
ret 0x14