Function at 0x408ca0
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4d65
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x513624]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0xb4], esi
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0xb8], edi
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, eax
mov dword [ebp - 0x88], ecx
test ecx, ecx
jne 0x408d39
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 0x14]
mov dword [edi + 8], ecx
lea ecx, [ebp - 0x1c]
mov dword [edi], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.004055e0
mov eax, edi
jmp 0x409176
mov al, 0x41
mov byte [ebp - 0x7d], al
nop
test cl, 1
je 0x408de7
cbw
mov dword [ebp - 0x9c], 7
movzx eax, ax
mov word [ebp - 0xb0], ax
xor eax, eax
mov dword [ebp - 0xa0], 1
mov word [ebp - 0xae], ax
push 2
or esi, 2
mov byte [ebp - 4], 1
push 0x4e291c
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0xb4], esi
call fcn.0040b680
mov dword [ebp - 0x24], 0
xor ecx, ecx
mov dword [ebp - 0x20], 0
or esi, 0xc
mov dword [ebp - 0x84], esi
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x34], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x24], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x34]
cmp dword [ebp - 0x20], 8
cmovae eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov byte [ebp - 0x7e], 1
cmp eax, 1
jne 0x408deb
mov byte [ebp - 0x7e], 0
mov eax, dword [ebp - 0x84]
test al, 4
je 0x408e52
mov edx, dword [ebp - 0x20]
and eax, 0xfffffffb
mov dword [ebp - 0x84], eax
cmp edx, 8
jb 0x408e3e
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408e2e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409191
push edx
push ecx
call fcn.00463d78
mov eax, dword [ebp - 0x84]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], cx
mov dword [ebp - 4], 0
test al, 2
je 0x408ea6
mov edx, dword [ebp - 0x9c]
and eax, 0xfffffffd
mov dword [ebp - 0x84], eax
cmp edx, 8
jb 0x408ea6
mov ecx, dword [ebp - 0xb0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408e9c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409191
push edx
push ecx
call fcn.00463d78
add esp, 8
cmp byte [ebp - 0x7e], 0
je 0x40911c
mov al, byte [ebp - 0x7d]
cbw
mov dword [ebp - 0x9c], 7
movzx eax, ax
mov word [ebp - 0xb0], ax
xor eax, eax
mov dword [ebp - 0xa0], 1
mov word [ebp - 0xae], ax
push 2
push 0x4e291c
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 2
call fcn.0040b680
mov esi, dword [ebp - 0x84]
xor ecx, ecx
mov dword [ebp - 0x24], 0
or esi, 0x10
mov dword [ebp - 0x20], 0
movups xmm0, xmmword [eax]
mov dword [ebp - 0x84], esi
movups xmmword [ebp - 0x34], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x24], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x9c]
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x408f77
mov ecx, dword [ebp - 0xb0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x408f6d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409191
push edx
push ecx
call fcn.00463d78
add esp, 8
xor eax, eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], ax
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
push dword [ebp - 0x24]
cmovae eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x64]
push eax
mov byte [ebp - 4], 5
call fcn.0040b910
cmp dword [ebp - 0x20], 8
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x6c]
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x409006
mov edx, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x6c]
mov edi, dword [ebp - 0x68]
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x44], edx
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x90], edx
mov dword [ebp - 0x40], edx
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x3c], edx
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x98], edx
mov dword [ebp - 0x38], edx
jmp 0x409030
mov eax, dword [ebp - 0x38]
mov edi, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x14], eax
je 0x409091
movups xmm0, xmmword [ebp - 0x64]
mov dword [eax + 0x10], 0
xor esi, esi
mov word [ebp - 0x64], si
mov edx, 7
mov esi, dword [ebp - 0x84]
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x54]
movq qword [eax + 0x10], xmm0
mov dword [eax + 0x18], ecx
mov ecx, dword [ebp - 0x8c]
mov dword [eax + 0x20], ecx
mov ecx, dword [ebp - 0x90]
mov dword [eax + 0x24], ecx
mov ecx, dword [ebp - 0x94]
mov dword [eax + 0x28], ecx
mov ecx, dword [ebp - 0x98]
mov dword [eax + 0x1c], edi
mov dword [eax + 0x2c], ecx
add dword [ebp - 0x18], 0x30
jmp 0x4090a1
lea ecx, [ebp - 0x64]
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403180
mov edx, dword [ebp - 0x50]
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x4090dc
mov ecx, dword [ebp - 0x64]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4090d2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409191
push edx
push ecx
call fcn.00463d78
add esp, 8
mov edx, dword [ebp - 0x20]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x409122
mov ecx, dword [ebp - 0x34]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409110
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409191
push edx
push ecx
call fcn.00463d78
add esp, 8
jmp 0x409122
mov esi, dword [ebp - 0x84]
mov al, byte [ebp - 0x7d]
mov ecx, dword [ebp - 0x88]
inc al
shr ecx, 1
mov dword [ebp - 0x88], ecx
mov byte [ebp - 0x7d], al
cmp al, 0x5a
jle 0x408d40
mov esi, dword [ebp - 0xb8]
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
mov dword [esi], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 8], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.004055e0
mov eax, esi
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.00464020
mov esp, ebp
pop ebp
ret
call fcn.004a52aa
int3