Function at 0x40c6b0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6245d3
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x6ba4f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x88], ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x8c], edi
call fcn.00401720
mov ecx, eax
test ecx, ecx
je 0x40cc6d
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x78], esi
mov dword [ebp - 4], 0
test edi, edi
je 0x40c782
push edi
lea ecx, [ebp - 0x78]
call fcn.0040e000
mov esi, dword [ebp - 0x78]
cmp dword [esi - 0xc], 0
je 0x40c75b
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 3
or eax, ecx
jge 0x40c744
push 3
lea ecx, [ebp - 0x78]
call fcn.0040dfa0
mov esi, dword [ebp - 0x78]
cmp dword [esi - 8], 3
jl 0x40cc77
xor eax, eax
mov dword [esi - 0xc], 3
mov word [esi + 6], ax
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x40c789
mov eax, dword [ebp - 0x88]
push 0
push 0x6a5b30
push 0x6a5b40
push dword [eax + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
xor edi, edi
jmp 0x40cc2f
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
push 0
push 0x5c
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 1
push eax
sub esp, 0x18
mov ecx, edi
mov edx, esp
xor eax, eax
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], ax
lea eax, [ecx + 2]
mov dword [ebp - 0x74], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c7d0
sub ecx, dword [ebp - 0x74]
sar ecx, 1
push ecx
push edi
mov ecx, edx
call fcn.00402c70
call fcn.0041ec98
mov ecx, dword [ebp - 0x80]
mov eax, 0x2aaaaaab
mov edi, dword [ebp - 0x84]
add esp, 0x24
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x40c837
push eax
push 0x2f
lea eax, [ebp - 0x84]
push eax
sub esp, 0x18
mov ecx, esp
push dword [ebp - 0x8c]
call fcn.00402b40
call fcn.0041ec98
mov edi, dword [ebp - 0x84]
add esp, 0x24
mov ecx, dword [ebp - 0x80]
mov eax, 0x2aaaaaab
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x40c857
mov dword [ebp - 0x78], eax
jmp 0x40cb5e
mov edx, dword [ebp - 0x8c]
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c862
mov eax, dword [ebp - 0x88]
sub ecx, edi
sar ecx, 1
add eax, 0x788
push ecx
push edx
mov ecx, eax
mov dword [ebp - 0x88], eax
call fcn.00402c70
mov ecx, dword [ebp - 0x80]
mov eax, 0x2aaaaaab
mov edi, dword [ebp - 0x84]
sub ecx, edi
imul ecx
lea ecx, [ebp - 0x28]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*2]
lea eax, [eax - 3]
lea eax, [edi + eax*8]
push eax
call fcn.00402b90
sub esp, 0x18
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.00402b90
lea eax, [ebp - 0x58]
push eax
call fcn.0041eeb6
mov edi, eax
add esp, 0x1c
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x40c90b
mov ecx, eax
call fcn.00402a60
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [edi + 0x10]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
movq qword [ebp - 0x18], xmm0
mov word [edi], ax
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x40c945
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c93b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cc81
push edx
push ecx
call fcn.005100a2
add esp, 8
lea eax, [ebp - 0x70]
push str.SOFT_NAME_EN
push eax
call fcn.00416db0
add esp, 8
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x40c962
mov eax, dword [eax]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00402b40
lea eax, [ebp - 0x40]
push eax
call fcn.0041eeb6
add esp, 0x1c
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x40c9b7
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c9ad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cc86
push edx
push ecx
call fcn.005100a2
add esp, 8
xor eax, eax
mov dword [ebp - 0x60], 0
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
lea edi, [ebp - 0x28]
mov word [ebp - 0x70], ax
cmovae ecx, dword [ebp - 0x40]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x18]
mov edx, eax
cmovae edi, dword [ebp - 0x28]
cmp dword [ebp - 0x30], eax
mov dword [ebp - 0x5c], 7
cmovb edx, dword [ebp - 0x30]
test edx, edx
je 0x40ca07
sub edi, ecx
mov ax, word [ecx + edi]
cmp ax, word [ecx]
jne 0x40ca12
add ecx, 2
sub edx, 1
jne 0x40c9f3
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x30]
jb 0x40ca12
jbe 0x40caa2
mov edi, dword [ebp - 0x88]
push edi
call fcn.0041eb97
add esp, 4
test eax, eax
jne 0x40ca31
push 0x6a576c
mov ecx, edi
call fcn.004065a0
lea eax, [ebp - 0x58]
push str.SOFT_NAME_EN
push eax
call fcn.00416db0
add esp, 8
push eax
mov ecx, edi
mov byte [ebp - 4], 6
call fcn.0040be70
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x40ca8c
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ca82
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cc8b
push edx
push ecx
call fcn.005100a2
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
jmp 0x40caa8
mov edi, dword [ebp - 0x88]
push edi
call fcn.0041eb97
add esp, 4
test eax, eax
jne 0x40cac1
push 0x6a576c
mov ecx, edi
call fcn.004065a0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x78], 1
cmp edx, 8
jb 0x40cb06
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40cafc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cc90
push edx
push ecx
call fcn.005100a2
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
cmp eax, 8
jb 0x40cb58
mov ecx, dword [ebp - 0x28]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40cb4e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cc95
push edx
push ecx
call fcn.005100a2
add esp, 8
mov edi, dword [ebp - 0x84]
mov byte [ebp - 4], 0
test edi, edi
je 0x40cc2c
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x74], eax
cmp edi, eax
je 0x40cbd0
mov ecx, dword [edi + 0x14]
cmp ecx, 8
jb 0x40cbb0
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x40cba3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cc81
mov eax, edx
push ecx
push eax
call fcn.005100a2
mov eax, dword [ebp - 0x74]
add esp, 8
xor ecx, ecx
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], cx
add edi, 0x18
cmp edi, eax
jne 0x40cb74
mov edi, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x7c]
mov eax, 0x2aaaaaab
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, edi
shl ecx, 3
cmp ecx, 0x1000
jb 0x40cc0a
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cc9a
push ecx
push edi
call fcn.005100a2
add esp, 8
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov edi, dword [ebp - 0x78]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40cc4e
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050fa22
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.0040bef0
push 0x80070057
call fcn.0040bef0
call fcn.0052ec30
call fcn.0052ec30
call fcn.0052ec30
call fcn.0052ec30
call fcn.0052ec30
call fcn.0052ec30
int3