Function at 0x46ba10
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x630350
mov eax, dword fs:[0]
push eax
sub esp, 0x4a8
mov eax, dword [0x6a6040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x46c], ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x47c], esi
mov dword [ebp - 0x490], 1
mov dword [ebp - 0x478], esi
mov dword [esi], 0
mov eax, 1
mov dword [ebp - 4], 0
mov dword [ebp - 0x488], eax
mov dword [ebp - 0x490], eax
call fcn.00405da0
test al, al
je 0x46bafc
call fcn.005a45d0
mov dword [ebp - 0x474], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x46bac0
push str.No_activation_is_required
mov ecx, eax
call fcn.005a5480
test eax, eax
je 0x46bac0
cmp dword [eax + 0xc], 0
je 0x46bab8
mov ecx, dword [esi]
mov dword [esi], eax
jmp 0x46bac8
push ecx
mov ecx, eax
call fcn.005a47b0
mov ecx, dword [esi]
mov dword [esi], 0
test ecx, ecx
je 0x46badc
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
jne 0x46badc
push ecx
call fcn.005a47b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00606a47
mov esp, ebp
pop ebp
ret 4
cmp byte [ebx + 0x10], 0
je 0x46badc
cmp byte [ebx + 0xf6], 0
je 0x46badc
lea ecx, [ebp - 0x458]
call fcn.005ca950
mov dword [ebp - 4], 2
mov edi, dword [ebp - 0x458]
test edi, edi
jne 0x46bb41
push 0x65cc6c
lea ecx, [ebp - 0x458]
call fcn.005a5370
mov edi, dword [ebp - 0x458]
test edi, edi
je 0x46bb4c
cmp dword [edi + 4], 0
jle 0x46bb4c
mov eax, dword [edi + 0xc]
jmp 0x46bb51
mov eax, 0x651f40
cmp byte [eax], 0x5c
je 0x46bb9b
push 0x5c
lea ecx, [ebp - 0x458]
call fcn.005b0390
test eax, eax
js 0x46bc31
lea ecx, [ebp - 0x458]
inc eax
push eax
lea eax, [ebp - 0x45c]
push eax
call fcn.005ac5a0
push eax
lea ecx, [ebp - 0x458]
call fcn.005a5c80
lea ecx, [ebp - 0x45c]
call fcn.004250c0
jmp 0x46bc2b
lea eax, [ebp - 0x458]
mov dword [ebp - 0x499], 1
lea ecx, [ebp - 0x49d]
mov dword [ebp - 0x49d], eax
mov byte [ebp - 0x495], 0
call fcn.0041b200
cmp byte [eax], 0x5c
jne 0x46bc31
test edi, edi
je 0x46bbd1
mov edx, dword [edi + 0xc]
jmp 0x46bbd6
mov edx, 0x651f68
test edi, edi
je 0x46bbdf
mov eax, dword [edi + 4]
jmp 0x46bbe1
xor eax, eax
lea ecx, [eax + edx]
lea eax, [edx + 2]
cmp eax, ecx
jae 0x46bc31
nop dword [eax + eax]
cmp byte [eax], 0x5c
je 0x46bbfc
inc eax
cmp eax, ecx
jb 0x46bbf0
jmp 0x46bc31
sub eax, edx
js 0x46bc31
push 0xffffffffffffffff
push 0x5c
inc eax
lea ecx, [ebp - 0x458]
push eax
call fcn.005b0300
lea ecx, [ebp - 0x458]
test eax, eax
jns 0x46bb71
push 1
push 0x65cca8
call fcn.005a6b10
mov edi, dword [ebp - 0x458]
mov dword [ebp - 0x494], 0
push 0
push ecx
mov eax, esp
test edi, edi
je 0x46bc49
lock inc dword [edi]
jmp 0x46bc4b
xor edi, edi
lea ecx, [ebp - 0x45c]
mov dword [eax], edi
call fcn.005c9de0
add esp, 4
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48c]
call fcn.005b43d0
add esp, 4
mov byte [ebp - 4], 5
or ebx, 0xffffffff
mov ecx, dword [ebp - 0x45c]
test ecx, ecx
je 0x46bc8f
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
jne 0x46bc8f
push ecx
call fcn.005a47b0
mov eax, dword [ebp - 0x48c]
test eax, eax
je 0x46bc9e
mov eax, dword [eax + 0xc]
jmp 0x46bca3
mov eax, 0x651f68
push 0x10e
lea ecx, [ebp - 0x234]
push ecx
lea ecx, [ebp - 0x4b0]
push ecx
lea ecx, [ebp - 0x4b4]
push ecx
lea ecx, [ebp - 0x494]
push ecx
push 0x10e
lea ecx, [ebp - 0x454]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x46bd0c
mov ecx, dword [ebp - 0x48c]
test ecx, ecx
je 0x46bcf4
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
jne 0x46bcf4
push ecx
call fcn.005a47b0
mov ecx, dword [ebp - 0x458]
test ecx, ecx
je 0x46badc
lock xadd dword [ecx], ebx
dec ebx
jmp 0x46bad4
mov edi, dword [ebp - 0x46c]
mov edi, dword [edi + 0xcc]
test edi, edi
je 0x46bd25
lock inc dword [edi]
mov eax, edi
mov ecx, edi
jmp 0x46bd2b
xor edi, edi
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x484], edi
mov byte [ebp - 4], 6
test eax, eax
je 0x46bd3e
mov eax, dword [ecx + 0xc]
jmp 0x46bd43
mov eax, 0x651f68
push 0x2d
push eax
mov dword [ebp - 0x470], eax
call fcn.00608140
add esp, 8
test eax, eax
je 0x46bd9e
inc eax
push 0x2d
push eax
call fcn.00608140
add esp, 8
test eax, eax
je 0x46bd9e
sub eax, dword [ebp - 0x470]
lea ecx, [ebp - 0x484]
push eax
lea eax, [ebp - 0x45c]
push eax
call fcn.005ac5a0
push eax
lea ecx, [ebp - 0x484]
call fcn.005a5c80
lea ecx, [ebp - 0x45c]
call fcn.004250c0
mov edi, dword [ebp - 0x484]
test edi, edi
je 0x46bda7
mov ecx, dword [edi + 0xc]
jmp 0x46bdac
mov ecx, 0x651f68
mov eax, dword [ebp - 0x46c]
mov eax, dword [eax + 0xc8]
test eax, eax
je 0x46bdc1
mov eax, dword [eax + 0xc]
jmp 0x46bdc6
mov eax, 0x651f68
push ecx
push eax
push str.version_s_r_nkey_s_r_ndata
push esi
call fcn.005abfb0
mov esi, dword [ebp - 0x46c]
add esp, 0x10
mov eax, dword [esi + 0xd0]
test eax, eax
je 0x46bdf1
lock inc dword [eax]
mov dword [ebp - 0x470], eax
jmp 0x46bdfb
mov dword [ebp - 0x470], 0
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x46be10
lock inc dword [eax]
mov dword [ebp - 0x464], eax
jmp 0x46be1a
mov dword [ebp - 0x464], 0
sub esp, 8
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x470]
push 0x651eaf
push 1
call fcn.004448d0
push 0x50
lea eax, [ebp - 0x45c]
push eax
lea ecx, [ebp - 0x470]
call fcn.005ac5a0
push eax
lea ecx, [ebp - 0x470]
call fcn.005a5c80
mov ecx, dword [ebp - 0x45c]
test ecx, ecx
je 0x46be6c
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
jne 0x46be6c
push ecx
call fcn.005a47b0
sub esp, 8
lea ecx, [ebp - 0x464]
push 0x651eaf
push 1
call fcn.004448d0
push 0x50
lea eax, [ebp - 0x45c]
push eax
lea ecx, [ebp - 0x464]
call fcn.005ac5a0
push eax
lea ecx, [ebp - 0x464]
call fcn.005a5c80
mov ecx, dword [ebp - 0x45c]
test ecx, ecx
je 0x46beba
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
jne 0x46beba
push ecx
call fcn.005a47b0
mov dword [ebp - 0x468], 0
mov byte [ebp - 4], 9
mov eax, dword [esi + 0xc0]
mov dword [ebp - 0x460], eax
test edi, edi
je 0x46bee3
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x45c], ecx
jmp 0x46beed
mov dword [ebp - 0x45c], 0x651f68
mov eax, dword [esi + 0xc8]
test eax, eax
je 0x46befc
mov edx, dword [eax + 0xc]
jmp 0x46bf01
mov edx, 0x651f68
mov esi, dword [ebp - 0x464]
test esi, esi
je 0x46bf10
mov ecx, dword [esi + 0xc]
jmp 0x46bf15
mov ecx, 0x651f68
mov eax, dword [ebp - 0x470]
test eax, eax
je 0x46bf24
mov eax, dword [eax + 0xc]
jmp 0x46bf29
mov eax, 0x651f68
push dword [ebp - 0x460]
push dword [ebp - 0x45c]
push edx
push dword [ebp - 0x494]
push ecx
push eax
lea eax, [ebp - 0x468]
push 0x65ccb8
push eax
call fcn.005abfb0
add esp, 0x20
lea ecx, [ebp - 0x4a4]
push 0x20
call fcn.005f72a0
push 0
mov byte [ebp - 4], 0xa
call fcn.0060cd03
mov dword [ebp - 0x460], eax
add esp, 4
mov eax, dword [ebp - 0x468]
test eax, eax
je 0x46bf82
mov ecx, dword [eax + 4]
jmp 0x46bf84
xor ecx, ecx
test eax, eax
je 0x46bf8d
mov eax, dword [eax + 0xc]
jmp 0x46bf92
mov eax, 0x651f68
push edx
push dword [ebp - 0x460]
lea edx, [ebp - 0x4a4]
push edx
push ecx
push eax
mov eax, dword [ebp - 0x46c]
lea edx, [eax + 0x2c]
lea ecx, [eax + 0x3c]
call fcn.005f8770
add esp, 0x14
test eax, eax
jns 0x46c067
mov eax, dword [ebp - 0x478]
mov ecx, dword [eax]
mov dword [eax], 0
test ecx, ecx
je 0x46bfdf
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
jne 0x46bfdf
push ecx
call fcn.005a47b0
lea ecx, [ebp - 0x4a4]
call fcn.005f77f0
mov ecx, dword [ebp - 0x468]
test ecx, ecx
je 0x46c003
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
jne 0x46c003
push ecx
call fcn.005a47b0
test esi, esi
je 0x46c018
mov eax, ebx
lock xadd dword [esi], eax
dec eax
jne 0x46c018
push ecx
mov ecx, esi
call fcn.005a47b0
mov eax, dword [ebp - 0x470]
test eax, eax
je 0x46c033
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
jne 0x46c033
push ecx
mov ecx, eax
call fcn.005a47b0
test edi, edi
je 0x46c046
lock xadd dword [edi], ebx
dec ebx
jne 0x46c046
push ecx
mov ecx, edi
call fcn.005a47b0
lea ecx, [ebp - 0x48c]
call fcn.004250c0
lea ecx, [ebp - 0x458]
call fcn.004250c0
mov eax, dword [ebp - 0x478]
jmp 0x46bade
mov edx, dword [ebp - 0x4a4]
lea ecx, [ebp - 0x460]
push eax
call fcn.005afd60
add esp, 4
lea ecx, [ebp - 0x468]
push eax
call fcn.005a5c80
lea ecx, [ebp - 0x460]
call fcn.004250c0
mov ecx, dword [ebp - 0x468]
test ecx, ecx
je 0x46bfdf
cmp dword [ecx + 4], 0x32
jle 0x46c290
movzx eax, word [ecx + 0x10]
mov edx, eax
test al, 4
je 0x46c0be
mov eax, dword [ecx + 0x14]
movzx eax, word [eax + 0x10]
jmp 0x46c0c0
mov eax, edx
movzx eax, ax
mov dword [ebp - 0x460], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x45c], eax
call fcn.005a45d0
mov esi, eax
mov dword [ebp - 0x480], esi
mov byte [ebp - 4], 0xb
test esi, esi
je 0x46c16e
mov eax, dword [ebp - 0x460]
and eax, 0x400
mov dword [esi], 1
or eax, 0x100
mov dword [esi + 4], 0x32
push 0x3a
mov word [esi + 0x10], ax
call fcn.00606f0f
mov edx, dword [ebp - 0x45c]
mov ecx, eax
mov eax, dword [esi + 4]
add esp, 4
mov dword [esi + 0xc], ecx
test edx, edx
je 0x46c147
push eax
push edx
push ecx
call fcn.00609db0
mov ecx, dword [esi + 4]
mov eax, dword [esi + 0xc]
mov dword [ecx + eax], 0
mov dword [ecx + eax + 4], 0
jmp 0x46c153
add eax, 8
push eax
push 0
push ecx
call fcn.00608810
add esp, 0xc
mov dword [ebp - 0x46c], esi
test esi, esi
je 0x46c178
cmp dword [esi + 0xc], 0
jne 0x46c178
push ecx
mov ecx, esi
call fcn.005a47b0
mov dword [ebp - 0x46c], 0
mov eax, dword [ebp - 0x488]
or eax, 2
mov dword [ebp - 0x490], eax
mov dword [ebp - 0x488], eax
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x46c]
mov esi, dword [ebp - 0x478]
mov ecx, esi
push eax
call fcn.005a6990
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x46c]
test ecx, ecx
je 0x46c1c2
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
jne 0x46c1c2
push ecx
call fcn.005a47b0
mov ecx, dword [ebp - 0x468]
test ecx, ecx
je 0x46c35d
cmp dword [ecx + 4], 0x32
jle 0x46c35d
push 0xffffffffffffffff
push 0x32
lea eax, [ebp - 0x4a8]
push eax
lea ecx, [ebp - 0x468]
call fcn.005ac6c0
mov ecx, dword [ebp - 0x468]
mov edx, dword [eax]
cmp ecx, edx
je 0x46c21b
mov dword [ebp - 0x468], edx
mov dword [eax], 0
test ecx, ecx
je 0x46c21b
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
jne 0x46c21b
push ecx
call fcn.005a47b0
mov ecx, dword [ebp - 0x4a8]
test ecx, ecx
je 0x46c234
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
jne 0x46c234
push ecx
call fcn.005a47b0
mov ecx, dword [esi]
test ecx, ecx
jne 0x46c2a6
push 2
push 0x653350
lea ecx, [ebp - 0x4ac]
call fcn.005a56f0
mov ecx, dword [esi]
mov edx, dword [eax]
cmp ecx, edx
je 0x46c26f
mov dword [esi], edx
mov dword [eax], 0
test ecx, ecx
je 0x46c26f
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
jne 0x46c26f
push ecx
call fcn.005a47b0
mov ecx, dword [ebp - 0x4ac]
test ecx, ecx
je 0x46c344
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
jne 0x46c344
push ecx
jmp 0x46c33f
test ecx, ecx
je 0x46c16e
lock inc dword [ecx]
mov dword [ebp - 0x46c], ecx
jmp 0x46c178
movzx eax, word [ecx + 0x10]
mov edx, eax
test al, 4
je 0x46c2b7
mov eax, dword [ecx + 0x14]
movzx eax, word [eax + 0x10]
and eax, 0x400
push eax
mov eax, dword [ecx + 4]
add eax, 2
push eax
push ecx
lea ecx, [ebp - 0x474]
call fcn.005a67d0
mov esi, dword [ebp - 0x474]
test esi, esi
je 0x46c344
mov eax, dword [ebp - 0x478]
mov eax, dword [eax]
push dword [eax + 4]
push dword [eax + 0xc]
push dword [esi + 0xc]
call fcn.00609db0
mov eax, dword [ebp - 0x478]
add esp, 0xc
mov ecx, dword [esi + 0xc]
mov eax, dword [eax]
mov edx, dword [eax + 4]
mov ax, word [0x653350]
mov word [edx + ecx], ax
mov eax, dword [ebp - 0x478]
cmp esi, dword [eax]
je 0x46c32f
lock inc dword [esi]
mov ecx, dword [eax]
mov dword [eax], esi
test ecx, ecx
je 0x46c32f
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
jne 0x46c32f
push ecx
call fcn.005a47b0
test esi, esi
je 0x46c344
mov eax, ebx
lock xadd dword [esi], eax
dec eax
jne 0x46c344
push ecx
mov ecx, esi
call fcn.005a47b0
mov ecx, dword [ebp - 0x468]
test ecx, ecx
jne 0x46c0a1
mov esi, dword [ebp - 0x464]
jmp 0x46bfdf
mov dword [ebp - 0x468], 0
test ecx, ecx
je 0x46c37a
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
jne 0x46c37a
push ecx
call fcn.005a47b0
mov ecx, dword [esi]
test ecx, ecx
jne 0x46c3e1
push 5
push str._r_n._r_n
lea ecx, [ebp - 0x474]
call fcn.005a56f0
mov ecx, dword [esi]
mov edx, dword [eax]
cmp ecx, edx
je 0x46c3b5
mov dword [esi], edx
mov dword [eax], 0
test ecx, ecx
je 0x46c3b5
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
jne 0x46c3b5
push ecx
call fcn.005a47b0
mov ecx, dword [ebp - 0x474]
test ecx, ecx
je 0x46c47e
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
jne 0x46c47e
push ecx
call fcn.005a47b0
mov esi, dword [ebp - 0x464]
jmp 0x46bfdf
movzx eax, word [ecx + 0x10]
mov edx, eax
test al, 4
je 0x46c3f2
mov eax, dword [ecx + 0x14]
movzx eax, word [eax + 0x10]
and eax, 0x400
push eax
mov eax, dword [ecx + 4]
add eax, 5
push eax
push ecx
lea ecx, [ebp - 0x474]
call fcn.005a67d0
mov esi, dword [ebp - 0x474]
test esi, esi
je 0x46c47e
mov eax, dword [ebp - 0x478]
mov eax, dword [eax]
push dword [eax + 4]
push dword [eax + 0xc]
push dword [esi + 0xc]
call fcn.00609db0
mov edx, dword [ebp - 0x478]
add esp, 0xc
mov eax, dword [edx]
mov ecx, dword [eax + 4]
add ecx, dword [esi + 0xc]
mov eax, dword [str._r_n._r_n]
mov dword [ecx], eax
mov al, byte [0x65a558]
mov byte [ecx + 4], al
cmp esi, dword [edx]
je 0x46c469
lock inc dword [esi]
mov ecx, dword [edx]
mov dword [edx], esi
test ecx, ecx
je 0x46c469
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
jne 0x46c469
push ecx
call fcn.005a47b0
test esi, esi
je 0x46c47e
mov eax, ebx
lock xadd dword [esi], eax
dec eax
jne 0x46c47e
push ecx
mov ecx, esi
call fcn.005a47b0
mov esi, dword [ebp - 0x464]
jmp 0x46bfdf