Function at 0x41d040
Capabilities:
Get disk information
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6e5eb0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x7cf070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
add ecx, 0x14
push ecx
push 0
mov dword [ebp - 0x30], ecx
call fcn.00421c10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41d403
call fcn.004b08d6
mov ecx, eax
test ecx, ecx
jne 0x41d0a3
push 0x80004005
call fcn.00402890
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
call fcn.004b08d6
mov ecx, eax
test ecx, ecx
jne 0x41d0ca
push 0x80004005
call fcn.00402890
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
call fcn.004b08d6
mov ecx, eax
test ecx, ecx
jne 0x41d0ee
push 0x80004005
call fcn.00402890
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 2
call fcn.004b08d6
mov ecx, eax
test ecx, ecx
jne 0x41d112
push 0x80004005
call fcn.00402890
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x48], eax
call fcn.004b08d6
mov ecx, eax
test ecx, ecx
jne 0x41d132
push 0x80004005
call fcn.00402890
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 3
xor ecx, ecx
mov eax, dword [ebp - 0x14]
mov edx, 2
lea eax, [eax + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a5457
mov edx, eax
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x18], edx
lea ecx, [eax*2 + 2]
push ecx
push 0
push edx
call fcn.005ed880
mov ecx, dword [ebp - 0x14]
add esp, 0xc
push dword [ebp - 0x20]
lea eax, [ecx + ecx]
push eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov eax, dword [ebp - 0x20]
cmp word [eax], 0
je 0x41d36a
mov ebx, eax
nop dword [eax]
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x41d1b5
cmp eax, 2
jne 0x41d345
mov eax, ebx
lea edx, [eax + 2]
nop word [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41d1c0
sub eax, edx
lea ecx, [ebp - 0x10]
sar eax, 1
push eax
push ebx
call fcn.00404fa0
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00404960
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.00405050
mov byte [ebp - 4], 3
or esi, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41d21b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x10]
push eax
push ecx
mov ecx, str.EHKPPPPPST_bm__5_IP_luw_0DRRUWemw_
call fcn.0045f920
add esp, 4
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00406410
add esp, 0xc
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.00405050
mov byte [ebp - 4], 3
mov eax, esi
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41d265
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x24]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
je 0x41d345
mov edi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x38]
push 0
push ecx
push 0xc
push dword [edi + 0x15c]
push 0
push 0
push 0x2d1080
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x41d33c
mov eax, dword [edi + 0x15c]
lea ecx, [ebp - 0x48]
mov ebx, dword [eax + 4]
mov edi, dword [eax + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00405050
push edi
push ebx
mov ecx, str.ANTjr___28GPPQ_mo_379_ALR_cot__
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], edi
call fcn.0045f920
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00402960
add esp, 0x10
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x3c]
push eax
call fcn.00405050
mov ebx, dword [ebp - 0x30]
mov edi, dword [ebx + 8]
test edi, edi
js 0x41d415
push ecx
lea eax, [edi + 1]
mov ecx, ebx
push eax
call fcn.00421c10
shl edi, 4
lea eax, [ebp - 0x48]
add edi, dword [ebx + 4]
push eax
mov ecx, edi
call fcn.00405050
mov eax, dword [ebp - 0x44]
lea ecx, [edi + 0xc]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x40]
mov dword [edi + 8], eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00405050
mov ebx, dword [ebp - 0x18]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push ebx
call fcn.005ed7c5
add esp, 8
cmp word [eax + 2], 0
lea ebx, [eax + 2]
mov dword [ebp - 0x18], ebx
jne 0x41d1a0
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
push eax
call fcn.004a5452
mov byte [ebp - 4], 2
add esp, 4
mov edx, dword [ebp - 0x3c]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41d392
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x48]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41d3ad
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x41d3c9
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
or edi, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41d3e7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add ebx, 0xfffffff0
lock xadd dword [ebx + 0xc], edi
dec edi
test edi, edi
jg 0x41d403
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004b03fc
int3