Function at 0x41b5d0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5840e8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x5e9750]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x7b4]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x146
push eax
call edi
test eax, eax
jle 0x41b648
jmp 0x41b620
mov ecx, dword [esi + 0x7b4]
push 0
push 0
push 0x144
push ecx
call edi
mov edx, dword [esi + 0x7b4]
push 0
push 0
push 0x146
push edx
call edi
test eax, eax
jg 0x41b620
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor ebx, ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 0x20], ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
test dword [ebp - 0x28], eax
je 0x41b8a6
lea edx, [ebx + 0x41]
movzx esi, dx
mov dword [ebp - 0x30], esi
call fcn.00447243
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x41b927
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
movzx edi, si
push edi
lea ecx, [ebp - 0x1c]
push 0x5bb0b0
push ecx
mov dword [ebp - 4], 0
call fcn.004075c0
mov edx, dword [ebp - 0x1c]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x41b877
call fcn.00447243
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x41b927
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
push edi
lea ecx, [ebp - 0x14]
push 0x5bb0b0
push ecx
mov byte [ebp - 4], 1
call fcn.004075c0
add esp, 0xc
lea edx, [ebp - 0x18]
push edx
push 0x200
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x18], ebx
call fcn.00404140
push ebx
push ebx
push ebx
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x40]
mov eax, dword [ebp - 0x3c]
push ebx
sub eax, esi
push ebx
sar eax, 1
push eax
mov eax, dword [ebp - 0x14]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x41b7f6
cmp word [esi], bx
je 0x41b7f6
call fcn.00447243
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x41b927
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
push esi
lea ecx, [ebp - 0x18]
push 0x5bd23c
push ecx
mov byte [ebp - 4], 3
call fcn.004075c0
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x2c]
push 0x5bb4b0
push eax
call fcn.00418bd0
add esp, 0x18
mov byte [ebp - 4], 4
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.004071a0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b7d3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b7f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x7b4]
push ecx
push ebx
push 0x143
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0x7b4]
mov ebx, eax
push ebx
push 0x151
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dx, word [ebp - 0x30]
cmp dx, word [edi + 0x19c]
jne 0x41b839
mov dword [ebp - 0x24], ebx
xor edi, edi
cmp esi, edi
je 0x41b848
push esi
call fcn.0044663b
add esp, 4
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b874
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41b89d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
inc ebx
mov dword [ebp - 0x20], ebx
cmp ebx, 0x1a
jl 0x41b65d
mov ecx, dword [esi + 0x7b4]
push 0
push 0
push 0x146
push ecx
call edi
test eax, eax
jle 0x41b931
mov eax, dword [ebp - 0x24]
xor edx, edx
test eax, eax
sets dl
push 0
dec edx
and edx, eax
mov eax, dword [esi + 0x7b4]
push edx
push 0x14e
push eax
call edi
mov ecx, dword [esi + 0x7b4]
push 0
push 0
push 0x147
push ecx
call edi
mov edx, dword [esi + 0x7b4]
push 0
push eax
push 0x150
push edx
call edi
cbw
mov word [esi + 0x19c], ax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00405920
xor ecx, ecx
mov word [esi + 0x19c], cx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4