Function at 0x421320
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0xad8]
sub esp, 0xad8
push 0xffffffffffffffff
push 0x488796
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x4b9b20]
xor eax, ebp
mov dword [ebp + 0xad4], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xae8]
mov ebx, dword [ebp + 0xae0]
mov edx, dword [ebp + 0xaec]
mov edi, dword [ebp + 0xae4]
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 0x4214c6
cmp dword [ebx + 0x5ac], esi
jl 0x4214c6
jg 0x4213b2
cmp dword [ebx + 0x5a8], esi
jbe 0x4214c6
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
call fcn.00420190
test eax, eax
jne 0x42144b
push 2
lea ecx, [ebp - 0x44]
push ecx
mov ecx, 0x4be684
call fcn.004332c0
mov edi, eax
push 0x4b
lea edx, [ebp - 0x48]
push edx
mov ecx, 0x4be684
mov dword [ebp - 4], esi
call fcn.004332c0
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 0x42141c
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 0x421b58
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x421b58
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebx + 0x5ac]
jl 0x4214c6
jg 0x421463
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebx + 0x5a8]
jb 0x4214c6
cmp byte [ebx + 0x430], 0
je 0x421479
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x218], 1
push 2
lea ecx, [ebp - 0x20]
push ecx
mov ecx, 0x4be684
call fcn.004332c0
mov edi, eax
push 0x4c
lea edx, [ebp - 0x40]
push edx
mov ecx, 0x4be684
mov dword [ebp - 4], 1
call fcn.004332c0
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.00419b80
lea ecx, [ebp - 0x20]
call fcn.00419b80
jmp 0x421b58
lea ecx, [ebp + 0x238]
call fcn.00417f10
lea esi, [ebx + 0x3e]
mov dword [ebp - 4], 2
test esi, esi
jne 0x4214e3
xor eax, eax
jmp 0x421510
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
inc ebx
cmp ebx, 0x3fffffff
jle 0x4214f9
xor eax, eax
jmp 0x42150d
lea eax, [ebx + ebx]
call fcn.00466d60
mov eax, esp
push 3
push ebx
push esi
push eax
call fcn.00417e90
mov ebx, dword [ebp - 0x10]
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x28]
push edx
push 0
push eax
lea ecx, [ebp + 0x238]
call fcn.00418d70
test eax, eax
je 0x42153c
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 0x421ab8
cmp dword [ebx + 0x42b], ecx
je 0x421ab8
movzx eax, byte [ebx + 0x326]
cmp eax, 0xb
ja case.0x42156d.4
movzx edx, byte [eax + 0x421ba0]
jmp dword [edx*4 + 0x421b88]
lea ecx, [ebp + 0x238]
mov dword [ebp - 4], 0xffffffff
call fcn.00417f40
mov eax, 1
jmp 0x421b5a
push 0x206
push ecx
lea ecx, [ebp + 0x89a]
xor eax, eax
push ecx
mov word [ebp + 0x898], ax
call fcn.004660d0
add esp, 0xc
push 0x104
call fcn.004340b0
push eax
lea edx, [ebp + 0x898]
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 0x421677
xor eax, eax
push 0x1fe
push eax
lea ecx, [ebp + 0x492]
push ecx
mov word [ebp + 0x490], ax
call fcn.004660d0
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.00419b50
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x20]
push edx
push 0x100
lea eax, [ebp + 0x490]
push eax
push 0x49ef00
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.0041bf40
add esp, 0xc
push edi
lea ecx, [ebp - 0x10]
call fcn.004197d0
lea ecx, [ebp - 0x10]
test eax, eax
jne 0x42166e
call fcn.00419b80
lea ecx, [ebp + 0x238]
mov dword [ebp - 4], 0xffffffff
call fcn.00417f40
mov eax, 1
jmp 0x421b5a
mov byte [ebp - 4], 2
call fcn.00419b80
test esi, esi
jne 0x421680
mov dword [ebp - 0x10], esi
jmp 0x4216b2
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x42169b
mov dword [ebp - 0x10], 0
jmp 0x4216b2
lea eax, [edi + edi]
call fcn.00466d60
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.00417e90
mov dword [ebp - 0x10], eax
lea edi, [ebx + 0x304]
test edi, edi
jne 0x4216c0
xor eax, eax
jmp 0x4216e9
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x4216d3
xor eax, eax
jmp 0x4216e9
lea esi, [eax + eax]
mov eax, esi
call fcn.00466d60
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00417ed0
mov ecx, dword [ebp - 0x10]
push 0
push 0
push ecx
lea edx, [ebp + 0x898]
push edx
push eax
xor eax, eax
cmp byte [ebx + 0x326], 5
lea ecx, [ebp]
sete al
push eax
push 0
call fcn.004295f0
mov byte [ebp - 4], 5
lea ecx, [ebp]
call fcn.0044dbb3
mov byte [ebp - 4], 2
lea ecx, [ebp]
cmp eax, 1
je 0x421732
call fcn.004209f0
jmp case.0x42156d.4
call fcn.004209f0
jmp case.0x42156d.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.0x42156d.0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0xe0]
call fcn.0042eaa0
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 6
call fcn.0044dbb3
cmp eax, 1
jne 0x421864
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 0x4217f0
lea esp, [esp]
mov edx, dword [ebp - 0x5c]
push edx
push esi
mov ecx, edi
call fcn.0041f950
push eax
call ebx
test eax, eax
jne 0x4217c9
mov eax, dword [ebp - 0x54]
push eax
push esi
mov ecx, edi
call fcn.0041f950
add eax, 0x42
push eax
call ebx
test eax, eax
je 0x4217e9
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 0x4217a0
jmp 0x4217f0
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.00420ab0
cmp esi, 3
jl 0x421748
cmp dword [ebp - 0x10], 0
jne case.0x42156d.0
push 1
lea edx, [ebp - 0x3c]
push edx
mov ecx, 0x4be684
call fcn.004332c0
mov esi, eax
push 0x14
lea eax, [ebp - 0x4c]
push eax
mov ecx, 0x4be684
mov byte [ebp - 4], 7
call fcn.004332c0
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.00419b80
lea ecx, [ebp - 0x3c]
call fcn.00419b80
jmp case.0x42156d.4
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 2
call fcn.00420ab0
jmp case.0x42156d.4
push 0x206
push ecx
lea eax, [ebp + 0x89a]
xor edx, edx
push eax
mov word [ebp + 0x898], dx
call fcn.004660d0
add esp, 0xc
push 0x104
call fcn.004340b0
push eax
lea ecx, [ebp + 0x898]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
test esi, esi
jne 0x4218b7
mov dword [ebp - 0x14], esi
jmp 0x4218ec
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
inc ebx
cmp ebx, 0x3fffffff
jle 0x4218d2
mov dword [ebp - 0x14], 0
jmp 0x4218e9
lea eax, [ebx + ebx]
call fcn.00466d60
mov eax, esp
push 3
push ebx
push esi
push eax
call fcn.00417e90
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
lea eax, [ebx + 0x304]
test eax, eax
je 0x421925
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x421909
xor eax, eax
jmp 0x421925
lea esi, [eax + eax]
mov eax, esi
call fcn.00466d60
mov ecx, esp
push 3
push esi
lea eax, [ebx + 0x304]
push eax
push ecx
call fcn.00417ed0
mov edx, dword [ebp - 0x14]
push edi
push 1
push edx
xor edx, edx
cmp byte [ebx + 0x326], 0xb
lea ecx, [ebp + 0x898]
sete dl
push ecx
push eax
lea ecx, [ebp]
push edx
push 0
call fcn.004295f0
mov byte [ebp - 4], 8
jmp 0x421714
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.00420b30
test eax, eax
je 0x421a6d
mov eax, dword [ebp - 0x34]
push 0x30
lea ecx, [ebp + 0xaa1]
push 0
push ecx
mov dword [eax], 1
mov byte [ebp + 0xaa0], 0
call fcn.004660d0
xor edx, edx
push 0x206
push edx
lea eax, [ebp + 0x692]
push eax
mov word [ebp + 0x690], dx
call fcn.004660d0
add esp, 0x18
push 0x48ea74
call fcn.004340b0
push eax
lea ecx, [ebp + 0x690]
push 0x48e6d8
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [ebp + 0xaa0]
push edx
lea eax, [ebp + 0x690]
push eax
call fcn.0041ebf0
add esp, 0x18
test eax, eax
je 0x421a6d
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 0x421a6d
xor ebx, ebx
test eax, eax
jle 0x421a6d
lea ecx, [ebp + 0xaa0]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x421a1c
xor eax, eax
jmp 0x421a36
lea eax, [esi + esi]
call fcn.00466d60
mov eax, esp
push 3
push esi
lea edx, [ebp + 0xaa0]
push edx
push eax
call fcn.00417e90
push eax
push ebx
mov ecx, edi
call fcn.0041f990
add eax, 0x42
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je case.0x42156d.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 0x421a00
push 1
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, 0x4be684
call fcn.004332c0
mov esi, eax
push 0x37
lea edx, [ebp - 0x18]
push edx
mov ecx, 0x4be684
mov byte [ebp - 4], 9
call fcn.004332c0
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.00419b80
lea ecx, [ebp - 0x1c]
call fcn.00419b80
jmp case.0x42156d.4
cmp byte [ebx + 0x430], 0
je 0x421ace
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x218], 1
push 2
lea ecx, [ebp - 0x18]
push ecx
mov ecx, 0x4be684
call fcn.004332c0
mov esi, eax
push 0x32
lea edx, [ebp - 0x1c]
push edx
mov ecx, 0x4be684
mov byte [ebp - 4], 3
call fcn.004332c0
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 0x421b23
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.0x42156d.4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp + 0x238]
mov dword [ebp - 4], 0xffffffff
call fcn.00417f40
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 + 0xad4]
xor ecx, ebp
call fcn.00466d50
add ebp, 0xad8
mov esp, ebp
pop ebp
ret 0x10