Function at 0x421ff0
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x10c0]
mov eax, 0x10c0
call fcn.0046c720
push 0xffffffffffffffff
push 0x48ec69
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x4c2b20]
xor eax, ebp
mov dword [ebp + 0x10bc], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10d0]
mov ebx, dword [ebp + 0x10c8]
mov edx, dword [ebp + 0x10d4]
mov edi, dword [ebp + 0x10cc]
mov dword [ebp - 0x38], eax
movzx eax, byte [ebx + 0x5a7]
xor esi, esi
sub eax, 1
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
jne 0x42219a
cmp dword [ebx + 0x5ac], esi
jl 0x42219a
jg 0x422086
cmp dword [ebx + 0x5a8], esi
jbe 0x42219a
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
call fcn.00420b10
test eax, eax
jne 0x42211f
push 2
lea ecx, [ebp - 0x44]
push ecx
mov ecx, 0x4c77cc
call fcn.00437870
mov edi, eax
push 0x4b
lea edx, [ebp - 0x48]
push edx
mov ecx, 0x4c77cc
mov dword [ebp - 4], esi
call fcn.00437870
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 - 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4220f0
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 0x422828
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x422828
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebx + 0x5ac]
jl 0x42219a
jg 0x422137
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebx + 0x5a8]
jb 0x42219a
cmp byte [ebx + 0x430], 0
je 0x42214d
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x410], 1
push 2
lea ecx, [ebp - 0x20]
push ecx
mov ecx, 0x4c77cc
call fcn.00437870
mov edi, eax
push 0x4c
lea edx, [ebp - 0x40]
push edx
mov ecx, 0x4c77cc
mov dword [ebp - 4], 1
call fcn.00437870
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 - 0x40]
call fcn.00420d00
lea ecx, [ebp - 0x20]
call fcn.00420d00
jmp 0x422828
lea ecx, [ebp]
call fcn.00418610
lea esi, [ebx + 0x3e]
mov dword [ebp - 4], 2
test esi, esi
jne 0x4221b4
xor eax, eax
jmp 0x4221e1
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
inc ebx
cmp ebx, 0x3fffffff
jle 0x4221ca
xor eax, eax
jmp 0x4221de
lea eax, [ebx + ebx]
call fcn.0046b5c0
mov eax, esp
push 3
push ebx
push esi
push eax
call fcn.00418590
mov ebx, dword [ebp - 0x10]
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x28]
push edx
push 0
push eax
lea ecx, [ebp]
call fcn.00419470
test eax, eax
je 0x42220a
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov dword [ebx + 0x427], eax
mov dword [ebx + 0x42b], ecx
xor ecx, ecx
cmp dword [ebx + 0x427], ecx
je 0x42278b
cmp dword [ebx + 0x42b], ecx
je 0x42278b
movzx eax, byte [ebx + 0x326]
cmp eax, 0xb
ja case.0x42223b.4
movzx edx, byte [eax + 0x422870]
jmp dword [edx*4 + 0x422858]
lea ecx, [ebp]
mov dword [ebp - 4], 0xffffffff
call fcn.00418640
mov eax, 1
jmp 0x42282a
push 0x3fe
push ecx
lea ecx, [ebp + 0xc8a]
xor eax, eax
push ecx
mov word [ebp + 0xc88], ax
call fcn.0046a930
add esp, 0xc
push 0x200
call fcn.00438660
push eax
lea edx, [ebp + 0xc88]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea edi, [ebx + 0x5b1]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x42233f
xor eax, eax
push 0x1fe
push eax
lea ecx, [ebp + 0xa8a]
push ecx
mov word [ebp + 0xa88], ax
call fcn.0046a930
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.00420cd0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x20]
push edx
push 0x100
lea eax, [ebp + 0xa88]
push eax
push 0x4a6ea4
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov ecx, dword [ebp - 0x20]
push ecx
lea edx, [ebp - 0x10]
push str._08u
push edx
call fcn.0041c5f0
add esp, 0xc
push edi
lea ecx, [ebp - 0x10]
call fcn.00419ec0
lea ecx, [ebp - 0x10]
test eax, eax
jne 0x422336
call fcn.00420d00
lea ecx, [ebp]
mov dword [ebp - 4], 0xffffffff
call fcn.00418640
mov eax, 1
jmp 0x42282a
mov byte [ebp - 4], 2
call fcn.00420d00
test esi, esi
jne 0x422348
mov dword [ebp - 0x10], esi
jmp 0x42237a
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x422363
mov dword [ebp - 0x10], 0
jmp 0x42237a
lea eax, [edi + edi]
call fcn.0046b5c0
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.00418590
mov dword [ebp - 0x10], eax
lea edi, [ebx + 0x304]
test edi, edi
jne 0x422388
xor eax, eax
jmp 0x4223b1
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x42239b
xor eax, eax
jmp 0x4223b1
lea esi, [eax + eax]
mov eax, esi
call fcn.0046b5c0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.004185d0
mov ecx, dword [ebp - 0x10]
push 0
push 0
push ecx
lea edx, [ebp + 0xc88]
push edx
push eax
xor eax, eax
cmp byte [ebx + 0x326], 5
lea ecx, [ebp + 0x450]
sete al
push eax
push 0
call fcn.0042e0b0
mov byte [ebp - 4], 5
lea ecx, [ebp + 0x450]
call fcn.004523fd
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x450]
cmp eax, 1
je 0x422403
call fcn.004214a0
jmp case.0x42223b.4
call fcn.004214a0
jmp case.0x42223b.0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
jne case.0x42223b.0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0xe0]
call fcn.004330f0
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 6
call fcn.004523fd
cmp eax, 1
jne 0x422534
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 0x4224c0
lea ecx, [ecx]
mov edx, dword [ebp - 0x5c]
push edx
push esi
mov ecx, edi
call fcn.0041fe50
push eax
call ebx
test eax, eax
jne 0x422499
mov eax, dword [ebp - 0x54]
push eax
push esi
mov ecx, edi
call fcn.0041fe50
add eax, 0x42
push eax
call ebx
test eax, eax
je 0x4224b9
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 0x422470
jmp 0x4224c0
mov dword [ebp - 0x10], 1
mov esi, dword [ebp - 0x14]
inc esi
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
call fcn.00421560
cmp esi, 3
jl 0x422419
cmp dword [ebp - 0x10], 0
jne case.0x42223b.0
push 1
lea edx, [ebp - 0x3c]
push edx
mov ecx, 0x4c77cc
call fcn.00437870
mov esi, eax
push 0x14
lea eax, [ebp - 0x4c]
push eax
mov ecx, 0x4c77cc
mov byte [ebp - 4], 7
call fcn.00437870
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.00420d00
lea ecx, [ebp - 0x3c]
call fcn.00420d00
jmp case.0x42223b.4
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 2
call fcn.00421560
jmp case.0x42223b.4
push 0x3fe
push ecx
lea eax, [ebp + 0xc8a]
xor edx, edx
push eax
mov word [ebp + 0xc88], dx
call fcn.0046a930
add esp, 0xc
push 0x200
call fcn.00438660
push eax
lea ecx, [ebp + 0xc88]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
test esi, esi
jne 0x422587
mov dword [ebp - 0x14], esi
jmp 0x4225bc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
inc ebx
cmp ebx, 0x3fffffff
jle 0x4225a2
mov dword [ebp - 0x14], 0
jmp 0x4225b9
lea eax, [ebx + ebx]
call fcn.0046b5c0
mov eax, esp
push 3
push ebx
push esi
push eax
call fcn.00418590
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
lea eax, [ebx + 0x304]
test eax, eax
je 0x4225f5
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x4225d9
xor eax, eax
jmp 0x4225f5
lea esi, [eax + eax]
mov eax, esi
call fcn.0046b5c0
mov ecx, esp
push 3
push esi
lea eax, [ebx + 0x304]
push eax
push ecx
call fcn.004185d0
mov edx, dword [ebp - 0x14]
push edi
push 1
push edx
xor edx, edx
cmp byte [ebx + 0x326], 0xb
lea ecx, [ebp + 0xc88]
sete dl
push ecx
push eax
lea ecx, [ebp + 0x450]
push edx
push 0
call fcn.0042e0b0
mov byte [ebp - 4], 8
jmp 0x4223df
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.004215e0
test eax, eax
je 0x422740
mov eax, dword [ebp - 0x34]
push 0x30
lea ecx, [ebp + 0x1089]
push 0
push ecx
mov dword [eax], 1
mov byte [ebp + 0x1088], 0
call fcn.0046a930
xor edx, edx
push 0x3fe
push edx
lea eax, [ebp + 0x68a]
push eax
mov word [ebp + 0x688], dx
call fcn.0046a930
add esp, 0x18
push 0x495c64
call fcn.00438660
push eax
lea ecx, [ebp + 0x688]
push str._s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [ebp + 0x1088]
push edx
lea eax, [ebp + 0x688]
push eax
call fcn.0041f020
add esp, 0x18
test eax, eax
je 0x422740
mov edi, dword [ebp - 0x38]
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 0x422740
xor ebx, ebx
test eax, eax
jle 0x422740
lea ecx, [ebp + 0x1088]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x4226ef
xor eax, eax
jmp 0x422709
lea eax, [esi + esi]
call fcn.0046b5c0
mov eax, esp
push 3
push esi
lea edx, [ebp + 0x1088]
push edx
push eax
call fcn.00418590
push eax
push ebx
mov ecx, edi
call fcn.0041fe90
add eax, 0x42
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je case.0x42223b.0
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 0x4226d3
push 1
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, 0x4c77cc
call fcn.00437870
mov esi, eax
push 0x37
lea edx, [ebp - 0x18]
push edx
mov ecx, 0x4c77cc
mov byte [ebp - 4], 9
call fcn.00437870
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 - 0x18]
call fcn.00420d00
lea ecx, [ebp - 0x1c]
call fcn.00420d00
jmp case.0x42223b.4
cmp byte [ebx + 0x430], 0
je 0x4227a1
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x410], 1
push 2
lea ecx, [ebp - 0x18]
push ecx
mov ecx, 0x4c77cc
call fcn.00437870
mov esi, eax
push 0x32
lea edx, [ebp - 0x1c]
push edx
mov ecx, 0x4c77cc
mov byte [ebp - 4], 3
call fcn.00437870
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 - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4227f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
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.0x42223b.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.00418640
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 + 0x10bc]
xor ecx, ebp
call fcn.0046b5b0
add ebp, 0x10c0
mov esp, ebp
pop ebp
ret 0x10