Function at 0x421ee0
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x10c0]
mov eax, 0x10c0
call fcn.00467cb0
push 0xffffffffffffffff
push 0x48a199
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x4bcb20]
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 0x42208a
cmp dword [ebx + 0x5ac], esi
jl 0x42208a
jg 0x421f76
cmp dword [ebx + 0x5a8], esi
jbe 0x42208a
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
call fcn.00420bb0
test eax, eax
jne 0x42200f
push 2
lea ecx, [ebp - 0x44]
push ecx
mov ecx, 0x4c17cc
call fcn.00435810
mov edi, eax
push 0x4b
lea edx, [ebp - 0x48]
push edx
mov ecx, 0x4c17cc
mov dword [ebp - 4], esi
call fcn.00435810
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 0x421fe0
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 0x422718
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x422718
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebx + 0x5ac]
jl 0x42208a
jg 0x422027
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebx + 0x5a8]
jb 0x42208a
cmp byte [ebx + 0x430], 0
je 0x42203d
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x410], 1
push 2
lea ecx, [ebp - 0x20]
push ecx
mov ecx, 0x4c17cc
call fcn.00435810
mov edi, eax
push 0x4c
lea edx, [ebp - 0x40]
push edx
mov ecx, 0x4c17cc
mov dword [ebp - 4], 1
call fcn.00435810
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.00420920
lea ecx, [ebp - 0x20]
call fcn.00420920
jmp 0x422718
lea ecx, [ebp]
call fcn.00418610
lea esi, [ebx + 0x3e]
mov dword [ebp - 4], 2
test esi, esi
jne 0x4220a4
xor eax, eax
jmp 0x4220d1
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
inc ebx
cmp ebx, 0x3fffffff
jle 0x4220ba
xor eax, eax
jmp 0x4220ce
lea eax, [ebx + ebx]
call fcn.00466b50
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 0x4220fa
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 0x42267b
cmp dword [ebx + 0x42b], ecx
je 0x42267b
movzx eax, byte [ebx + 0x326]
cmp eax, 0xb
ja case.0x42212b.4
movzx edx, byte [eax + 0x422760]
jmp dword [edx*4 + 0x422748]
lea ecx, [ebp]
mov dword [ebp - 4], 0xffffffff
call fcn.00418640
mov eax, 1
jmp 0x42271a
push 0x3fe
push ecx
lea ecx, [ebp + 0xc8a]
xor eax, eax
push ecx
mov word [ebp + 0xc88], ax
call fcn.00465ec0
add esp, 0xc
push 0x200
call fcn.00436600
push eax
lea edx, [ebp + 0xc88]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea edi, [ebx + 0x5b0]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x42222f
xor eax, eax
push 0x1fe
push eax
lea ecx, [ebp + 0xa8a]
push ecx
mov word [ebp + 0xa88], ax
call fcn.00465ec0
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.0041a240
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x20]
push edx
push 0x100
lea eax, [ebp + 0xa88]
push eax
push 0x4a1d14
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.0041c600
add esp, 0xc
push edi
lea ecx, [ebp - 0x10]
call fcn.00419ec0
lea ecx, [ebp - 0x10]
test eax, eax
jne 0x422226
call fcn.00420920
lea ecx, [ebp]
mov dword [ebp - 4], 0xffffffff
call fcn.00418640
mov eax, 1
jmp 0x42271a
mov byte [ebp - 4], 2
call fcn.00420920
test esi, esi
jne 0x422238
mov dword [ebp - 0x10], esi
jmp 0x42226a
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x422253
mov dword [ebp - 0x10], 0
jmp 0x42226a
lea eax, [edi + edi]
call fcn.00466b50
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 0x422278
xor eax, eax
jmp 0x4222a1
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x42228b
xor eax, eax
jmp 0x4222a1
lea esi, [eax + eax]
mov eax, esi
call fcn.00466b50
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.0042c010
mov byte [ebp - 4], 5
lea ecx, [ebp + 0x450]
call fcn.0044d864
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x450]
cmp eax, 1
je 0x4222f3
call fcn.004214f0
jmp case.0x42212b.4
call fcn.004214f0
jmp case.0x42212b.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.0x42212b.0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0xe0]
call fcn.004310e0
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 6
call fcn.0044d864
cmp eax, 1
jne 0x422424
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 0x4223b0
lea ecx, [ecx]
mov edx, dword [ebp - 0x5c]
push edx
push esi
mov ecx, edi
call fcn.0041fed0
push eax
call ebx
test eax, eax
jne 0x422389
mov eax, dword [ebp - 0x54]
push eax
push esi
mov ecx, edi
call fcn.0041fed0
add eax, 0x42
push eax
call ebx
test eax, eax
je 0x4223a9
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 0x422360
jmp 0x4223b0
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.004215b0
cmp esi, 3
jl 0x422309
cmp dword [ebp - 0x10], 0
jne case.0x42212b.0
push 1
lea edx, [ebp - 0x3c]
push edx
mov ecx, 0x4c17cc
call fcn.00435810
mov esi, eax
push 0x14
lea eax, [ebp - 0x4c]
push eax
mov ecx, 0x4c17cc
mov byte [ebp - 4], 7
call fcn.00435810
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.00420920
lea ecx, [ebp - 0x3c]
call fcn.00420920
jmp case.0x42212b.4
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 2
call fcn.004215b0
jmp case.0x42212b.4
push 0x3fe
push ecx
lea eax, [ebp + 0xc8a]
xor edx, edx
push eax
mov word [ebp + 0xc88], dx
call fcn.00465ec0
add esp, 0xc
push 0x200
call fcn.00436600
push eax
lea ecx, [ebp + 0xc88]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
test esi, esi
jne 0x422477
mov dword [ebp - 0x14], esi
jmp 0x4224ac
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
inc ebx
cmp ebx, 0x3fffffff
jle 0x422492
mov dword [ebp - 0x14], 0
jmp 0x4224a9
lea eax, [ebx + ebx]
call fcn.00466b50
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 0x4224e5
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x4224c9
xor eax, eax
jmp 0x4224e5
lea esi, [eax + eax]
mov eax, esi
call fcn.00466b50
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.0042c010
mov byte [ebp - 4], 8
jmp 0x4222cf
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.00421630
test eax, eax
je 0x422630
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.00465ec0
xor edx, edx
push 0x3fe
push edx
lea eax, [ebp + 0x68a]
push eax
mov word [ebp + 0x688], dx
call fcn.00465ec0
add esp, 0x18
push 0x490c6c
call fcn.00436600
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.0041f0a0
add esp, 0x18
test eax, eax
je 0x422630
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 0x422630
xor ebx, ebx
test eax, eax
jle 0x422630
lea ecx, [ebp + 0x1088]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x4225df
xor eax, eax
jmp 0x4225f9
lea eax, [esi + esi]
call fcn.00466b50
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.0041ff10
add eax, 0x42
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je case.0x42212b.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 0x4225c3
push 1
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, 0x4c17cc
call fcn.00435810
mov esi, eax
push 0x37
lea edx, [ebp - 0x18]
push edx
mov ecx, 0x4c17cc
mov byte [ebp - 4], 9
call fcn.00435810
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.00420920
lea ecx, [ebp - 0x1c]
call fcn.00420920
jmp case.0x42212b.4
cmp byte [ebx + 0x430], 0
je 0x422691
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x410], 1
push 2
lea ecx, [ebp - 0x18]
push ecx
mov ecx, 0x4c17cc
call fcn.00435810
mov esi, eax
push 0x32
lea edx, [ebp - 0x1c]
push edx
mov ecx, 0x4c17cc
mov byte [ebp - 4], 3
call fcn.00435810
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 0x4226e6
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.0x42212b.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.00466b40
add ebp, 0x10c0
mov esp, ebp
pop ebp
ret 0x10