Function at 0x418fb0
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x14c4]
mov eax, 0x14c4
call fcn.00462080
push 0xffffffffffffffff
push 0x4848d9
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x4b7b70]
xor eax, ebp
mov dword [ebp + 0x14c0], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x14d4]
mov ebx, dword [ebp + 0x14cc]
mov edx, dword [ebp + 0x14d8]
mov edi, dword [ebp + 0x14d0]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x14dc]
mov dword [ebp - 0x2c], eax
movzx eax, byte [ebx + 0x5a7]
xor esi, esi
sub eax, 1
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x38], esi
jne 0x419163
cmp dword [ebx + 0x5ac], esi
jl 0x419163
jg 0x41904f
cmp dword [ebx + 0x5a8], esi
jbe 0x419163
lea edx, [ebp - 0x40]
push edx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
call fcn.00417b80
test eax, eax
jne 0x4190e8
push 2
lea eax, [ebp - 0x44]
push eax
mov ecx, 0x4bc81c
call fcn.0042d910
mov edi, eax
push 0x4c
lea ecx, [ebp - 0x14]
push ecx
mov ecx, 0x4bc81c
mov dword [ebp - 4], esi
call fcn.0042d910
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 - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4190b9
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 0x41985b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x41985b
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [ebx + 0x5ac]
jl 0x419163
jg 0x419100
mov edx, dword [ebp - 0x40]
cmp edx, dword [ebx + 0x5a8]
jb 0x419163
cmp byte [ebx + 0x430], 0
je 0x419116
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x410], 1
push 2
lea ecx, [ebp - 0x28]
push ecx
mov ecx, 0x4bc81c
call fcn.0042d910
mov edi, eax
push 0x4d
lea edx, [ebp - 0x48]
push edx
mov ecx, 0x4bc81c
mov dword [ebp - 4], 1
call fcn.0042d910
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 - 0x48]
call fcn.0042a9f0
lea ecx, [ebp - 0x28]
call fcn.0042a9f0
jmp 0x41985b
lea ecx, [ebp]
call fcn.0040f450
lea esi, [ebx + 0x3e]
mov dword [ebp - 4], 2
test esi, esi
jne 0x41917d
xor eax, eax
jmp 0x4191ac
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
cmp eax, 0x3fffffff
mov dword [ebp - 0x14], eax
jle 0x419193
xor eax, eax
jmp 0x4191ac
mov eax, dword [ebp - 0x14]
add eax, eax
call fcn.00460f20
mov ecx, dword [ebp - 0x14]
mov eax, esp
push 3
push ecx
push esi
push eax
call fcn.0040f3d0
lea edx, [ebp - 0x38]
push edx
lea ecx, [ebp - 0x30]
push ecx
push 0
push eax
lea ecx, [ebp]
call fcn.004103c0
test eax, eax
je 0x4191d5
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x38]
mov dword [ebx + 0x427], edx
mov dword [ebx + 0x42b], eax
xor edx, edx
cmp dword [ebx + 0x427], edx
je 0x4197be
cmp dword [ebx + 0x42b], edx
je 0x4197be
movzx eax, byte [ebx + 0x326]
cmp eax, 0xb
ja case.0x419206.4
movzx ecx, byte [eax + 0x4198a4]
jmp dword [ecx*4 + 0x41988c]
lea ecx, [ebp]
mov dword [ebp - 4], 0xffffffff
call fcn.0040f480
mov eax, 1
jmp 0x41985d
xor edx, edx
push 0x3fe
push edx
lea eax, [ebp + 0x108e]
push eax
mov word [ebp + 0x108c], dx
call fcn.00460290
add esp, 0xc
push 0x200
lea ecx, [ebp + 0x108c]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.00416d50
lea edi, [ebx + 0x5b5]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x419306
xor edx, edx
push 0x1fe
push edx
lea eax, [ebp + 0xe8e]
push eax
mov word [ebp + 0xe8c], dx
call fcn.00460290
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.004111b0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x28]
push ecx
push 0x100
lea edx, [ebp + 0xe8c]
push edx
push 0x49bef0
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x10]
push str._08u
push ecx
call fcn.00413570
add esp, 0xc
push edi
lea ecx, [ebp - 0x10]
call fcn.00410e30
lea ecx, [ebp - 0x10]
test eax, eax
jne 0x4192fd
call fcn.0042a9f0
lea ecx, [ebp]
mov dword [ebp - 4], 0xffffffff
call fcn.0040f480
mov eax, 1
jmp 0x41985d
mov byte [ebp - 4], 2
call fcn.0042a9f0
test esi, esi
jne 0x41930f
mov dword [ebp - 0x10], esi
jmp 0x419341
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jle 0x41932a
mov dword [ebp - 0x10], 0
jmp 0x419341
lea eax, [edi + edi]
call fcn.00460f20
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.0040f3d0
mov dword [ebp - 0x10], eax
lea edi, [ebx + 0x304]
test edi, edi
jne 0x41934f
xor eax, eax
jmp 0x419378
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x419362
xor eax, eax
jmp 0x419378
lea esi, [eax + eax]
mov eax, esi
call fcn.00460f20
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.0040f410
mov edx, dword [ebp - 0x10]
push 0
push 0
push 0
push edx
xor edx, edx
cmp byte [ebx + 0x326], 5
lea ecx, [ebp + 0x108c]
sete dl
push ecx
push eax
lea ecx, [ebp + 0x450]
push edx
push 0
call fcn.00423200
mov byte [ebp - 4], 5
lea ecx, [ebp + 0x450]
call fcn.00447d54
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x450]
cmp eax, 1
je 0x4193cc
call fcn.00418330
jmp case.0x419206.4
call fcn.00418330
jmp case.0x419206.0
mov eax, dword [ebp - 0x2c]
movzx eax, word [eax]
mov esi, 0xffff
mov ecx, 3
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ecx
cmp si, ax
je 0x4193f7
movzx ecx, ax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], edx
cmp ecx, edx
jbe 0x4194fb
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
jmp 0x419410
cmp dword [ebp - 0x10], 0
jne case.0x419206.0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0xe0]
call fcn.00428cd0
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 6
call fcn.00447d54
cmp eax, 1
jne 0x419546
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 0x4194b4
mov edx, dword [ebp - 0x5c]
push edx
push esi
mov ecx, edi
call fcn.00416da0
push eax
call ebx
test eax, eax
jne 0x41948d
mov eax, dword [ebp - 0x54]
push eax
push esi
mov ecx, edi
call fcn.00416da0
add eax, 0x42
push eax
call ebx
test eax, eax
je 0x4194ad
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 0x419464
jmp 0x4194b4
mov dword [ebp - 0x10], 1
inc dword [ebp - 0x14]
cmp dword [ebp - 0x10], 0
jne 0x4194d6
mov ecx, dword [ebp - 0x2c]
movzx eax, word [ecx]
mov edx, 0xffff
cmp dx, ax
je 0x4194d6
test ax, ax
jbe 0x4194d6
dec eax
mov word [ecx], ax
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 2
call fcn.004183f0
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
jb 0x419410
cmp dword [ebp - 0x10], 0
jne case.0x419206.0
push 1
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, 0x4bc81c
call fcn.0042d910
mov esi, eax
push 0x14
lea edx, [ebp - 0x4c]
push edx
mov ecx, 0x4bc81c
mov byte [ebp - 4], 7
call fcn.0042d910
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.0042a9f0
lea ecx, [ebp - 0x1c]
call fcn.0042a9f0
jmp case.0x419206.4
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 2
call fcn.004183f0
jmp case.0x419206.4
xor eax, eax
push 0x3fe
push eax
lea ecx, [ebp + 0x108e]
push ecx
mov word [ebp + 0x108c], ax
call fcn.00460290
mov ecx, dword [ebp - 0x10]
add esp, 0xc
push 0x200
lea edx, [ebp + 0x108c]
push edx
call fcn.00416d50
test esi, esi
jne 0x419595
mov dword [ebp - 0x14], esi
jmp 0x4195c7
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
inc ebx
cmp ebx, 0x3fffffff
jle 0x4195b0
mov dword [ebp - 0x14], 0
jmp 0x4195c7
lea eax, [ebx + ebx]
call fcn.00460f20
mov eax, esp
push 3
push ebx
push esi
push eax
call fcn.0040f3d0
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x18]
add ebx, 0x304
jne 0x4195d6
xor eax, eax
jmp 0x4195ff
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x4195e9
xor eax, eax
jmp 0x4195ff
lea esi, [eax + eax]
mov eax, esi
call fcn.00460f20
mov eax, esp
push 3
push esi
push ebx
push eax
call fcn.0040f410
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x14]
push ecx
push edi
push 1
push edx
lea ecx, [ebp + 0x108c]
push ecx
push eax
mov eax, dword [ebp - 0x18]
xor edx, edx
cmp byte [eax + 0x326], 0xb
lea ecx, [ebp + 0x450]
sete dl
push edx
push 0
call fcn.00423200
mov byte [ebp - 4], 8
jmp 0x4193a8
mov ecx, dword [ebp - 0x1c]
push 0x30
lea edx, [ebp + 0x148d]
push 0
push edx
mov dword [ecx], 1
mov byte [ebp + 0x148c], 0
call fcn.00460290
xor eax, eax
push 0x3fe
push eax
lea ecx, [ebp + 0xa8e]
push ecx
mov word [ebp + 0xa8c], ax
call fcn.00460290
xor edx, edx
push 0x3fe
push edx
lea eax, [ebp + 0x68e]
push eax
mov word [ebp + 0x68c], dx
call fcn.00460290
add esp, 0x24
push 0x200
lea ecx, [ebp + 0x68c]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.00416d50
push 0x48aba8
lea edx, [ebp + 0x68c]
push edx
lea eax, [ebp + 0xa8c]
push 0x48a788
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [ebp + 0x148c]
push ecx
lea edx, [ebp + 0xa8c]
push edx
call fcn.004161f0
add esp, 0x18
test eax, eax
je 0x419773
mov edi, dword [ebp - 0x34]
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 0x419773
xor ebx, ebx
test eax, eax
jle 0x419773
lea eax, [ebp + 0x148c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x41971f
xor eax, eax
jmp 0x419739
lea eax, [esi + esi]
call fcn.00460f20
mov eax, esp
push 3
push esi
lea ecx, [ebp + 0x148c]
push ecx
push eax
call fcn.0040f3d0
push eax
push ebx
mov ecx, edi
call fcn.00416de0
add eax, 0x42
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je case.0x419206.0
mov edi, dword [ebp - 0x34]
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 0x419703
push 1
lea ecx, [ebp - 0x24]
push ecx
mov ecx, 0x4bc81c
call fcn.0042d910
mov esi, eax
push 0x37
lea edx, [ebp - 0x20]
push edx
mov ecx, 0x4bc81c
mov byte [ebp - 4], 9
call fcn.0042d910
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 - 0x20]
call fcn.0042a9f0
lea ecx, [ebp - 0x24]
call fcn.0042a9f0
jmp case.0x419206.4
cmp byte [ebx + 0x430], 0
je 0x4197d4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x410], 1
push 2
lea ecx, [ebp - 0x20]
push ecx
mov ecx, 0x4bc81c
call fcn.0042d910
mov esi, eax
push 0x32
lea edx, [ebp - 0x24]
push edx
mov ecx, 0x4bc81c
mov byte [ebp - 4], 3
call fcn.0042d910
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 - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419829
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x20]
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.0x419206.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.0040f480
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 + 0x14c0]
xor ecx, ebp
call fcn.00460f10
add ebp, 0x14c4
mov esp, ebp
pop ebp
ret 0x14