Function at 0x421300
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0xad8]
sub esp, 0xad8
push 0xffffffffffffffff
push 0x4888e6
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 0x4214a6
cmp dword [ebx + 0x5ac], esi
jl 0x4214a6
jg 0x421392
cmp dword [ebx + 0x5a8], esi
jbe 0x4214a6
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
call fcn.00420170
test eax, eax
jne 0x42142b
push 2
lea ecx, [ebp - 0x44]
push ecx
mov ecx, 0x4be684
call fcn.00433260
mov edi, eax
push 0x4b
lea edx, [ebp - 0x48]
push edx
mov ecx, 0x4be684
mov dword [ebp - 4], esi
call fcn.00433260
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 0x4213fc
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 0x421b38
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x421b38
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebx + 0x5ac]
jl 0x4214a6
jg 0x421443
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebx + 0x5a8]
jb 0x4214a6
cmp byte [ebx + 0x430], 0
je 0x421459
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x218], 1
push 2
lea ecx, [ebp - 0x20]
push ecx
mov ecx, 0x4be684
call fcn.00433260
mov edi, eax
push 0x4c
lea edx, [ebp - 0x40]
push edx
mov ecx, 0x4be684
mov dword [ebp - 4], 1
call fcn.00433260
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 0x421b38
lea ecx, [ebp + 0x238]
call fcn.00417f10
lea esi, [ebx + 0x3e]
mov dword [ebp - 4], 2
test esi, esi
jne 0x4214c3
xor eax, eax
jmp 0x4214f0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
inc ebx
cmp ebx, 0x3fffffff
jle 0x4214d9
xor eax, eax
jmp 0x4214ed
lea eax, [ebx + ebx]
call fcn.00466e80
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 0x42151c
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 0x421a98
cmp dword [ebx + 0x42b], ecx
je 0x421a98
movzx eax, byte [ebx + 0x326]
cmp eax, 0xb
ja case.0x42154d.4
movzx edx, byte [eax + 0x421b80]
jmp dword [edx*4 + 0x421b68]
lea ecx, [ebp + 0x238]
mov dword [ebp - 4], 0xffffffff
call fcn.00417f40
mov eax, 1
jmp 0x421b3a
push 0x206
push ecx
lea ecx, [ebp + 0x89a]
xor eax, eax
push ecx
mov word [ebp + 0x898], ax
call fcn.004661f0
add esp, 0xc
push 0x104
call fcn.00434050
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 0x421657
xor eax, eax
push 0x1fe
push eax
lea ecx, [ebp + 0x492]
push ecx
mov word [ebp + 0x490], ax
call fcn.004661f0
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 0x49ef40
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.0041bf30
add esp, 0xc
push edi
lea ecx, [ebp - 0x10]
call fcn.004197d0
lea ecx, [ebp - 0x10]
test eax, eax
jne 0x42164e
call fcn.00419b80
lea ecx, [ebp + 0x238]
mov dword [ebp - 4], 0xffffffff
call fcn.00417f40
mov eax, 1
jmp 0x421b3a
mov byte [ebp - 4], 2
call fcn.00419b80
test esi, esi
jne 0x421660
mov dword [ebp - 0x10], esi
jmp 0x421692
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x42167b
mov dword [ebp - 0x10], 0
jmp 0x421692
lea eax, [edi + edi]
call fcn.00466e80
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 0x4216a0
xor eax, eax
jmp 0x4216c9
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x4216b3
xor eax, eax
jmp 0x4216c9
lea esi, [eax + eax]
mov eax, esi
call fcn.00466e80
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.00429570
mov byte [ebp - 4], 5
lea ecx, [ebp]
call fcn.0044db94
mov byte [ebp - 4], 2
lea ecx, [ebp]
cmp eax, 1
je 0x421712
call fcn.004209d0
jmp case.0x42154d.4
call fcn.004209d0
jmp case.0x42154d.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.0x42154d.0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0xe0]
call fcn.0042ea30
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 6
call fcn.0044db94
cmp eax, 1
jne 0x421844
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 0x4217d0
lea esp, [esp]
mov edx, dword [ebp - 0x5c]
push edx
push esi
mov ecx, edi
call fcn.0041f940
push eax
call ebx
test eax, eax
jne 0x4217a9
mov eax, dword [ebp - 0x54]
push eax
push esi
mov ecx, edi
call fcn.0041f940
add eax, 0x42
push eax
call ebx
test eax, eax
je 0x4217c9
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 0x421780
jmp 0x4217d0
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.00420a90
cmp esi, 3
jl 0x421728
cmp dword [ebp - 0x10], 0
jne case.0x42154d.0
push 1
lea edx, [ebp - 0x3c]
push edx
mov ecx, 0x4be684
call fcn.00433260
mov esi, eax
push 0x14
lea eax, [ebp - 0x4c]
push eax
mov ecx, 0x4be684
mov byte [ebp - 4], 7
call fcn.00433260
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.0x42154d.4
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 2
call fcn.00420a90
jmp case.0x42154d.4
push 0x206
push ecx
lea eax, [ebp + 0x89a]
xor edx, edx
push eax
mov word [ebp + 0x898], dx
call fcn.004661f0
add esp, 0xc
push 0x104
call fcn.00434050
push eax
lea ecx, [ebp + 0x898]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
test esi, esi
jne 0x421897
mov dword [ebp - 0x14], esi
jmp 0x4218cc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
inc ebx
cmp ebx, 0x3fffffff
jle 0x4218b2
mov dword [ebp - 0x14], 0
jmp 0x4218c9
lea eax, [ebx + ebx]
call fcn.00466e80
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 0x421905
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x4218e9
xor eax, eax
jmp 0x421905
lea esi, [eax + eax]
mov eax, esi
call fcn.00466e80
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.00429570
mov byte [ebp - 4], 8
jmp 0x4216f4
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.00420b10
test eax, eax
je 0x421a4d
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.004661f0
xor edx, edx
push 0x206
push edx
lea eax, [ebp + 0x692]
push eax
mov word [ebp + 0x690], dx
call fcn.004661f0
add esp, 0x18
push 0x48ea90
call fcn.00434050
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.0041ebe0
add esp, 0x18
test eax, eax
je 0x421a4d
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 0x421a4d
xor ebx, ebx
test eax, eax
jle 0x421a4d
lea ecx, [ebp + 0xaa0]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x4219fc
xor eax, eax
jmp 0x421a16
lea eax, [esi + esi]
call fcn.00466e80
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.0041f980
add eax, 0x42
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je case.0x42154d.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 0x4219e0
push 1
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, 0x4be684
call fcn.00433260
mov esi, eax
push 0x37
lea edx, [ebp - 0x18]
push edx
mov ecx, 0x4be684
mov byte [ebp - 4], 9
call fcn.00433260
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.0x42154d.4
cmp byte [ebx + 0x430], 0
je 0x421aae
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x218], 1
push 2
lea ecx, [ebp - 0x18]
push ecx
mov ecx, 0x4be684
call fcn.00433260
mov esi, eax
push 0x32
lea edx, [ebp - 0x1c]
push edx
mov ecx, 0x4be684
mov byte [ebp - 4], 3
call fcn.00433260
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 0x421b03
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.0x42154d.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.00466e70
add ebp, 0xad8
mov esp, ebp
pop ebp
ret 0x10