Function at 0x406390
Capabilities:
Get disk information
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f51cc
mov eax, dword fs:[0]
push eax
sub esp, 0x488
mov eax, dword [0x517748]
xor eax, esp
mov dword [esp + 0x480], eax
push ebx
push esi
push edi
mov eax, dword [0x517748]
xor eax, esp
push eax
lea eax, [esp + 0x498]
mov dword fs:[0], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
mov eax, dword [ebp + 8]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x4063ea
xor al, al
jmp 0x4066b0
xor ecx, ecx
shr eax, 1
push eax
mov word [esp + 0x68], cx
lea ecx, [esp + 0x68]
push edx
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], 0
call fcn.0040cee0
lea eax, [esp + 0x284]
mov dword [esp + 0x4a0], 0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
dec eax
cmp eax, 0x103
ja 0x406685
xorps xmm0, xmm0
mov dword [esp + 0x60], 0
xor esi, esi
movq qword [esp + 0x58], xmm0
xor edi, edi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], esi
mov byte [esp + 0x4a0], 1
lea ebx, [esp + 0x284]
cmp word [esp + 0x284], di
je 0x4065ee
lea esp, [esp]
mov ecx, ebx
mov dword [esp + 0x14], 0
xor edx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406490
sub ecx, esi
sar ecx, 1
je 0x4064d3
cmp word [ebx + edx*2], 0x5c
jne 0x4064b2
xor eax, eax
mov dword [esp + 0x14], edx
mov word [ebx + edx*2], ax
mov eax, ebx
inc edx
lea esi, [eax + 2]
jmp 0x4064c0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4064c0
sub eax, esi
sar eax, 1
cmp edx, eax
jb 0x4064a1
xor eax, eax
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
mov word [esp + 0x28], ax
cmp word [ebx], ax
jne 0x4064f3
xor ecx, ecx
jmp 0x40650f
mov ecx, ebx
lea edx, [ecx + 2]
jmp 0x406500
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406500
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [esp + 0x30]
call fcn.0040cee0
lea eax, [esp + 0x28]
mov byte [esp + 0x4a0], 2
cmp eax, edi
jae 0x406573
mov ecx, eax
mov eax, dword [esp + 0x58]
cmp eax, ecx
ja 0x406573
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp edi, dword [esp + 0x60]
jne 0x40655b
push ecx
lea ecx, [esp + 0x5c]
call fcn.0040d7d0
mov edi, dword [esp + 0x5c]
lea eax, [esi + esi*2]
mov esi, dword [esp + 0x58]
lea eax, [esi + eax*8]
test edi, edi
je 0x40659b
push eax
mov ecx, edi
call fcn.0040abc0
jmp 0x40659b
cmp edi, dword [esp + 0x60]
jne 0x406587
push ecx
lea ecx, [esp + 0x5c]
call fcn.0040d7d0
mov edi, dword [esp + 0x5c]
test edi, edi
je 0x406597
lea eax, [esp + 0x28]
mov ecx, edi
push eax
call fcn.0040abc0
mov esi, dword [esp + 0x58]
add edi, 0x18
mov byte [esp + 0x4a0], 1
cmp dword [esp + 0x3c], 8
mov dword [esp + 0x5c], edi
jb 0x4065bd
push dword [esp + 0x28]
call fcn.00440f10
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, 0x5c
mov word [ebx + eax*2], cx
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4065d0
sub ecx, edx
sar ecx, 1
lea ebx, [ebx + ecx*2]
add ebx, 2
cmp word [ebx], ax
jne 0x406480
mov ecx, edi
mov eax, 0x2aaaaaab
sub ecx, esi
xor ebx, ebx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x14], eax
je 0x406646
jmp 0x406610
cmp dword [esi + 0x14], 8
jb 0x40661a
mov eax, dword [esi]
jmp 0x40661c
mov eax, esi
push 0x104
lea ecx, [esp + 0x80]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x4066d4
inc ebx
add esi, 0x18
cmp ebx, dword [esp + 0x14]
jb 0x406610
mov esi, dword [esp + 0x58]
test esi, esi
je 0x406685
mov ebx, dword [esp + 0x58]
cmp ebx, edi
je 0x40667c
cmp dword [esi + 0x14], 8
jb 0x406662
push dword [esi]
call fcn.00440f10
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
add esi, 0x18
cmp esi, edi
jne 0x406652
push ebx
call fcn.00440f10
add esp, 4
push dword [esp + 0x24]
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.004c1813
add esp, 0xc
xor bl, bl
cmp dword [esp + 0x78], 8
jb 0x4066ae
push dword [esp + 0x64]
call fcn.00440f10
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x498]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x480]
xor ecx, esp
call fcn.004c0564
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], 0
mov word [esp + 0x40], ax
cmp word [esp + 0x7c], ax
jne 0x4066f6
xor ecx, ecx
jmp 0x40670f
lea ecx, [esp + 0x7c]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406700
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x48]
call fcn.0040cee0
push esi
lea edx, [esp + 0x44]
mov byte [esp + 0x4a4], 3
lea ecx, [esp + 0x68]
call fcn.00406250
add esp, 4
cmp dword [esp + 0x54], 8
jb 0x40674d
push dword [esp + 0x40]
call fcn.00440f10
add esp, 4
cmp dword [esp + 0x78], 8
lea eax, [esp + 0x64]
push dword [esp + 0x74]
cmovae eax, dword [esp + 0x68]
push eax
push dword [esp + 0x20]
call fcn.004c1813
mov ebx, dword [esp + 0x64]
add esp, 0xc
test ebx, ebx
je 0x40678b
push dword [esp + 0x20]
mov edx, edi
push ecx
mov ecx, ebx
call fcn.00412780
push ebx
call fcn.00440f10
add esp, 0xc
mov bl, 1
jmp 0x40669b