Function at 0x403960
Capabilities:
Get disk information

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427495
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
mov eax, dword [0x439018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x2c], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x1c], esi
test eax, eax
je 0x403ac6
push 8
push str.device_
push eax
call fcn.0041361c
add esp, 0xc
test eax, eax
jne 0x403ac6
cmp byte [0x43af28], al
jne 0x403a88
xor edi, edi
mov esi, 0x43af48
mov dword [ebp - 0x1c], edi
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [0x434d94]
mov dword [ebp - 0x24], eax
mov ax, word [0x434d98]
mov word [ebp - 0x20], ax
lea eax, [edi + 0x41]
push 0x104
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x24]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov edx, dword [ebp - 0x1c]
cmp eax, 3
jb 0x403a3b
add eax, edx
cmp word [eax*2 + 0x43af42], 0x5c
je 0x403a3b
mov ecx, 0x5c
mov word [eax*2 + 0x43af44], cx
xor eax, eax
mov word [esi + 0x204], ax
mov eax, esi
lea ecx, [eax + 2]
mov dword [ebp - 0x1c], ecx
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403a50
sub eax, dword [ebp - 0x1c]
inc edi
sar eax, 1
add edx, 0x104
mov word [esi + 0x206], ax
add esi, 0x208
mov dword [ebp - 0x1c], edx
cmp di, 0x1a
jb 0x4039f0
mov byte [0x43af28], 1
xor esi, esi
nop word [eax + eax]
movzx eax, si
imul eax, eax, 0x208
add eax, 0x43af48
cmp word [eax], 0
je 0x403abc
movzx edi, word [eax + 0x206]
push edi
push eax
push dword [ebp - 0x2c]
call fcn.0041361c
add esp, 0xc
test eax, eax
je 0x403aea
inc esi
cmp si, 0x1a
jb 0x403a90
mov esi, dword [ebp - 0x28]
mov byte [esi + 0x18], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040ef0a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov edx, dword [ebp - 0x2c]
mov eax, dword [0x434d94]
add edx, 0xfffffffe
mov dword [ebp - 0x1c], eax
mov ax, word [0x434d98]
mov word [ebp - 0x18], ax
lea eax, [esi + 0x41]
lea edx, [edx + edi*2]
mov word [ebp - 0x1c], ax
mov ecx, edx
mov dword [ebp - 0x5c], 0
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403b30
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x5c]
call fcn.00401bb0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
xor eax, eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x34], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403b71
sub ecx, edx
lea eax, [ebp - 0x1c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x44]
call fcn.00401bb0
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x28]
lea ecx, [ebp - 0x74]
call fcn.00404eb0
mov esi, dword [ebp - 0x28]
movups xmm0, xmmword [ebp - 0x74]
mov edx, dword [ebp - 0x30]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x64]
movq qword [esi + 0x10], xmm0
mov byte [esi + 0x18], 1
cmp edx, 8
jb 0x403c06
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403bfc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403c45
push edx
push ecx
call fcn.0040f194
add esp, 8
mov edx, dword [ebp - 0x48]
cmp edx, 8
jb 0x403aca
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403c36
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403c45
push edx
push ecx
call fcn.0040f194
add esp, 8
jmp 0x403aca
call fcn.004134aa
int3