Function at 0x40e860
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446a25
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x467040]
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, edx
mov esi, ecx
mov dword [ebp - 0x250], esi
mov dword [ebp - 0x254], esi
lea eax, [ebp - 0x210]
mov dword [ebp - 0x254], esi
push eax
push 0xff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x40eef5
cmp dword [edi + 0x14], 7
lea eax, [ebp - 0x210]
mov dword [ebp - 0x248], eax
mov ecx, edi
jbe 0x40e8d3
mov ecx, dword [edi]
mov edx, dword ds:[edi + 0x10]
push 0xd
push 0x44d1bc
push 0
call fcn.00408a00
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40eed1
cmp dword [edi + 0x14], 7
mov ecx, edi
jbe 0x40e8fb
mov ecx, dword [edi]
mov edx, dword [edi + 0x10]
push 7
push str.SYMBOLS
push 0
call fcn.00408a00
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40eed1
cmp dword ds:[edi + 0x14], 7
mov ecx, edi
jbe 0x40e924
mov ecx, dword [edi]
mov edx, dword [edi + 0x10]
push 5
push str.USERS
push 0
call fcn.00408a00
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40eed1
cmp dword [edi + 0x14], 7
mov ecx, edi
jbe 0x40e953
mov ecx, dword [edi]
mov edx, dword ds:[edi + 0x10]
push 7
push str.WINDOWS
push 0
call fcn.00408a00
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40eed1
cmp dword [edi + 0x14], 7
mov ecx, edi
jbe 0x40e97b
mov ecx, dword [edi]
mov edx, dword [edi + 0x10]
push 0xb
push str.PROGRAMDATA
push 0
call fcn.00408a00
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40eed1
cmp dword ds:[edi + 0x14], 7
mov ecx, edi
jbe 0x40e9a4
mov ecx, dword [edi]
mov edx, dword [edi + 0x10]
push 9
push str.XBOXGAMES
push 0
call fcn.00408a00
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40eed1
xor eax, eax
xor ecx, ecx
xor esi, esi
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 0x258], ecx
mov dword [ebp - 4], ecx
cmp word [ebp - 0x210], cx
je 0x40eb75
lea edx, [ebp - 0x210]
nop dword [eax]
nop word [eax + eax]
mov ecx, edx
mov dword [ebp - 0x218], 0
xorps xmm0, xmm0
mov dword [ebp - 0x214], 0
movups xmmword [ebp - 0x228], xmm0
lea eax, [ecx + 2]
mov dword [ebp - 0x244], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ea40
sub ecx, dword ds:[ebp - 0x244]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x228]
call fcn.004063e0
mov byte [ebp - 4], 1
cmp esi, dword [ebp - 0x24c]
je 0x40eab5
xorps xmm0, xmm0
xor eax, eax
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov ecx, 7
movups xmm0, xmmword [ebp - 0x228]
mov dword [esi + 0x14], 0
mov word [ebp - 0x228], ax
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x218]
movq qword [esi + 0x10], xmm0
add esi, 0x18
mov dword [ebp - 0x25c], esi
jmp 0x40eae0
lea eax, [ebp - 0x228]
push eax
push esi
lea ecx, [ebp - 0x260]
call fcn.00410680
mov eax, dword [ebp - 0x258]
mov esi, dword [ebp - 0x25c]
mov ecx, dword [ebp - 0x214]
mov dword [ebp - 0x24c], eax
mov byte [ebp - 4], 0
cmp ecx, 7
jbe 0x40eb28
mov edx, dword ds:[ebp - 0x228]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40eb1c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40eecb
push ecx
push edx
call fcn.00444ae8
add esp, 8
mov edx, dword [ebp - 0x248]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x248], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40eb40
sub ecx, dword ds:[ebp - 0x248]
sar ecx, 1
lea edx, [edx + ecx*2]
add edx, 2
mov dword [ebp - 0x248], edx
cmp word [edx], ax
jne 0x40ea10
mov eax, dword [ebp - 0x260]
mov dword [ebp - 0x244], eax
mov ecx, esi
xorps xmm0, xmm0
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x40edf3
mov ecx, 3
mov dword [ebp - 0x218], 0
cmp dword [edi + 0x10], ecx
movups xmmword [ebp - 0x228], xmm0
cmovb ecx, dword [edi + 0x10]
cmp dword [edi + 0x14], 7
mov dword [ebp - 0x214], 0
jbe 0x40ebc5
mov edi, dword [edi]
push ecx
push edi
lea ecx, [ebp - 0x228]
call fcn.004063e0
mov edi, dword ds:[ebp - 0x244]
lea edx, [ebp - 0x228]
mov byte [ebp - 4], 2
mov ecx, edi
cmp dword [ebp - 0x214], 7
cmova edx, dword [ebp - 0x228]
cmp dword [ecx + 0x14], 7
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x248], eax
jbe 0x40ec04
mov ecx, dword [edi]
cmp eax, dword [ebp - 0x218]
jne 0x40ec4b
test eax, eax
je 0x40ec46
sub ecx, edx
mov dword [ebp - 0x254], ecx
nop dword [eax + eax]
movzx ecx, word [ecx + edx]
movzx eax, word [edx]
cmp cx, ax
jne 0x40ec4b
mov eax, dword [ebp - 0x248]
add edx, 2
mov ecx, dword [ebp - 0x254]
dec eax
mov dword [ebp - 0x248], eax
test eax, eax
jne 0x40ec20
lea eax, [edi + 0x18]
jmp 0x40ec4d
mov eax, edi
push eax
lea ecx, [ebp - 0x240]
call fcn.004057e0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x214]
cmp eax, 7
jbe 0x40ec9d
mov edx, dword [ebp - 0x228]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40ec93
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40eecb
push ecx
push edx
call fcn.00444ae8
add esp, 8
mov ecx, dword ds:[ebp - 0x230]
mov eax, SysReAllocString
sub eax, ecx
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 7
cmp eax, 1
jb 0x40ef1a
push 1
lfence
cmp dword [ebp - 0x22c], 7
lea eax, [ebp - 0x240]
push 0x44c4ec
cmova eax, dword [ebp - 0x240]
push ecx
push eax
push ecx
push dword [ebp - 0x254]
mov ecx, dword [ebp - 0x250]
call fcn.00408c60
mov ecx, dword [ebp - 0x22c]
cmp ecx, 7
jbe 0x40ed3b
mov edx, dword [ebp - 0x240]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40ed31
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40eecb
push ecx
push edx
call fcn.00444ae8
add esp, 8
cmp edi, esi
je 0x40ed93
nop
mov ecx, dword [edi + 0x14]
cmp ecx, 7
jbe 0x40ed79
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x40ed6f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40eecb
mov eax, edx
push ecx
push eax
call fcn.00444ae8
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, esi
jne 0x40ed40
mov ecx, dword ds:[ebp - 0x244]
mov eax, 0x2aaaaaab
mov edx, dword [ebp - 0x24c]
sub edx, ecx
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*2]
mov eax, ecx
shl edx, 3
cmp edx, 0x1000
jb 0x40eddc
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40eecb
push edx
push ecx
call fcn.00444ae8
add esp, 8
mov eax, dword [ebp - 0x250]
jmp 0x40eeff
mov eax, dword [ebp - 0x250]
mov ecx, eax
push 0xe
push str._UnknownDisk__
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
call fcn.004063e0
mov ecx, dword ds:[ebp - 0x244]
test ecx, ecx
je 0x40ede8
mov edi, ecx
cmp edi, esi
je 0x40ee8a
nop word [eax + eax]
mov ecx, dword [edi + 0x14]
cmp ecx, 7
jbe 0x40ee68
mov eax, dword [edi]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x40ee5b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40eecb
mov eax, edx
push ecx
push eax
call fcn.00444ae8
add esp, 8
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
add edi, 0x18
cmp edi, esi
jne 0x40ee30
mov ecx, dword [ebp - 0x244]
mov edx, dword [ebp - 0x24c]
mov eax, 0x2aaaaaab
sub edx, ecx
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*2]
mov eax, ecx
shl edx, 3
cmp edx, 0x1000
jb 0x40eddc
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40eddc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
xorps xmm0, xmm0
mov ecx, esi
push 3
movups xmmword [esi], xmm0
push 0x44d230
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.004063e0
jmp 0x40eefd
push edi
mov ecx, esi
call fcn.004057e0
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.00444aa0
mov esp, ebp
pop ebp
ret
call fcn.00403ca0
int3