Function at 0x4219e0
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x10c0]
mov eax, 0x10c0
call fcn.0046a1a0
push 0xffffffffffffffff
push 0x48ab39
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 0x421b8a
cmp dword [ebx + 0x5ac], esi
jl 0x421b8a
jg 0x421a76
cmp dword [ebx + 0x5a8], esi
jbe 0x421b8a
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
call fcn.00420730
test eax, eax
jne 0x421b0f
push 2
lea ecx, [ebp - 0x44]
push ecx
mov ecx, 0x4c1874
call fcn.00435490
mov edi, eax
push 0x4b
lea edx, [ebp - 0x48]
push edx
mov ecx, 0x4c1874
mov dword [ebp - 4], esi
call fcn.00435490
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 0x421ae0
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 0x422218
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x422218
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebx + 0x5ac]
jl 0x421b8a
jg 0x421b27
mov edx, dword [ebp - 0x30]
cmp edx, dword [ebx + 0x5a8]
jb 0x421b8a
cmp byte [ebx + 0x430], 0
je 0x421b3d
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x410], 1
push 2
lea ecx, [ebp - 0x20]
push ecx
mov ecx, 0x4c1874
call fcn.00435490
mov edi, eax
push 0x4c
lea edx, [ebp - 0x40]
push edx
mov ecx, 0x4c1874
mov dword [ebp - 4], 1
call fcn.00435490
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.004204e0
lea ecx, [ebp - 0x20]
call fcn.004204e0
jmp 0x422218
lea ecx, [ebp]
call fcn.00418620
lea esi, [ebx + 0x3e]
mov dword [ebp - 4], 2
test esi, esi
jne 0x421ba4
xor eax, eax
jmp 0x421bd1
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
inc ebx
cmp ebx, 0x3fffffff
jle 0x421bba
xor eax, eax
jmp 0x421bce
lea eax, [ebx + ebx]
call fcn.00469040
mov eax, esp
push 3
push ebx
push esi
push eax
call fcn.004185a0
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.00419480
test eax, eax
je 0x421bfa
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 0x42217b
cmp dword [ebx + 0x42b], ecx
je 0x42217b
movzx eax, byte [ebx + 0x326]
cmp eax, 0xb
ja case.0x421c2b.4
movzx edx, byte [eax + 0x422260]
jmp dword [edx*4 + 0x422248]
lea ecx, [ebp]
mov dword [ebp - 4], 0xffffffff
call fcn.00418650
mov eax, 1
jmp 0x42221a
push 0x3fe
push ecx
lea ecx, [ebp + 0xc8a]
xor eax, eax
push ecx
mov word [ebp + 0xc88], ax
call fcn.004683b0
add esp, 0xc
push 0x200
call fcn.00436280
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 0x421d2f
xor eax, eax
push 0x1fe
push eax
lea ecx, [ebp + 0xa8a]
push ecx
mov word [ebp + 0xa88], ax
call fcn.004683b0
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 0x4a17a4
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.0041c610
add esp, 0xc
push edi
lea ecx, [ebp - 0x10]
call fcn.00419ec0
lea ecx, [ebp - 0x10]
test eax, eax
jne 0x421d26
call fcn.004204e0
lea ecx, [ebp]
mov dword [ebp - 4], 0xffffffff
call fcn.00418650
mov eax, 1
jmp 0x42221a
mov byte [ebp - 4], 2
call fcn.004204e0
test esi, esi
jne 0x421d38
mov dword [ebp - 0x10], esi
jmp 0x421d6a
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x421d53
mov dword [ebp - 0x10], 0
jmp 0x421d6a
lea eax, [edi + edi]
call fcn.00469040
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.004185a0
mov dword [ebp - 0x10], eax
lea edi, [ebx + 0x304]
test edi, edi
jne 0x421d78
xor eax, eax
jmp 0x421da1
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x421d8b
xor eax, eax
jmp 0x421da1
lea esi, [eax + eax]
mov eax, esi
call fcn.00469040
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.004185e0
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.0042b890
mov byte [ebp - 4], 5
lea ecx, [ebp + 0x450]
call fcn.0044fd77
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x450]
cmp eax, 1
je 0x421df3
call fcn.00420ff0
jmp case.0x421c2b.4
call fcn.00420ff0
jmp case.0x421c2b.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.0x421c2b.0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0xe0]
call fcn.00430d60
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 6
call fcn.0044fd77
cmp eax, 1
jne 0x421f24
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 0x421eb0
lea ecx, [ecx]
mov edx, dword [ebp - 0x5c]
push edx
push esi
mov ecx, edi
call fcn.0041feb0
push eax
call ebx
test eax, eax
jne 0x421e89
mov eax, dword [ebp - 0x54]
push eax
push esi
mov ecx, edi
call fcn.0041feb0
add eax, 0x42
push eax
call ebx
test eax, eax
je 0x421ea9
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 0x421e60
jmp 0x421eb0
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.004210b0
cmp esi, 3
jl 0x421e09
cmp dword [ebp - 0x10], 0
jne case.0x421c2b.0
push 1
lea edx, [ebp - 0x3c]
push edx
mov ecx, 0x4c1874
call fcn.00435490
mov esi, eax
push 0x14
lea eax, [ebp - 0x4c]
push eax
mov ecx, 0x4c1874
mov byte [ebp - 4], 7
call fcn.00435490
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.004204e0
lea ecx, [ebp - 0x3c]
call fcn.004204e0
jmp case.0x421c2b.4
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 2
call fcn.004210b0
jmp case.0x421c2b.4
push 0x3fe
push ecx
lea eax, [ebp + 0xc8a]
xor edx, edx
push eax
mov word [ebp + 0xc88], dx
call fcn.004683b0
add esp, 0xc
push 0x200
call fcn.00436280
push eax
lea ecx, [ebp + 0xc88]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
test esi, esi
jne 0x421f77
mov dword [ebp - 0x14], esi
jmp 0x421fac
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
inc ebx
cmp ebx, 0x3fffffff
jle 0x421f92
mov dword [ebp - 0x14], 0
jmp 0x421fa9
lea eax, [ebx + ebx]
call fcn.00469040
mov eax, esp
push 3
push ebx
push esi
push eax
call fcn.004185a0
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
lea eax, [ebx + 0x304]
test eax, eax
je 0x421fe5
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x421fc9
xor eax, eax
jmp 0x421fe5
lea esi, [eax + eax]
mov eax, esi
call fcn.00469040
mov ecx, esp
push 3
push esi
lea eax, [ebx + 0x304]
push eax
push ecx
call fcn.004185e0
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.0042b890
mov byte [ebp - 4], 8
jmp 0x421dcf
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.00421130
test eax, eax
je 0x422130
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.004683b0
xor edx, edx
push 0x3fe
push edx
lea eax, [ebp + 0x68a]
push eax
mov word [ebp + 0x688], dx
call fcn.004683b0
add esp, 0x18
push 0x490aec
call fcn.00436280
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.0041f080
add esp, 0x18
test eax, eax
je 0x422130
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 0x422130
xor ebx, ebx
test eax, eax
jle 0x422130
lea ecx, [ebp + 0x1088]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x4220df
xor eax, eax
jmp 0x4220f9
lea eax, [esi + esi]
call fcn.00469040
mov eax, esp
push 3
push esi
lea edx, [ebp + 0x1088]
push edx
push eax
call fcn.004185a0
push eax
push ebx
mov ecx, edi
call fcn.0041fef0
add eax, 0x42
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je case.0x421c2b.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 0x4220c3
push 1
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, 0x4c1874
call fcn.00435490
mov esi, eax
push 0x37
lea edx, [ebp - 0x18]
push edx
mov ecx, 0x4c1874
mov byte [ebp - 4], 9
call fcn.00435490
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.004204e0
lea ecx, [ebp - 0x1c]
call fcn.004204e0
jmp case.0x421c2b.4
cmp byte [ebx + 0x430], 0
je 0x422191
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x410], 1
push 2
lea ecx, [ebp - 0x18]
push ecx
mov ecx, 0x4c1874
call fcn.00435490
mov esi, eax
push 0x32
lea edx, [ebp - 0x1c]
push edx
mov ecx, 0x4c1874
mov byte [ebp - 4], 3
call fcn.00435490
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 0x4221e6
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.0x421c2b.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.00418650
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.00469030
add ebp, 0x10c0
mov esp, ebp
pop ebp
ret 0x10