Function at 0x41e530
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ecbb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2b8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x2d0]
test eax, eax
mov dword [ebp - 4], 0
je 0x41e593
mov ecx, dword [ebp + 8]
test ecx, ecx
mov dword [ebp - 4], 0xffffffff
je 0x41e57e
mov eax, dword [ecx]
push 1
call dword [eax]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ebp + 8]
push 0
push 0x53195c
push 0x5318e4
push 0
push ebx
call fcn.004b7ee2
add esp, 0x14
test eax, eax
jne 0x41e60b
push eax
push 0x531900
push 0x5318e4
push eax
push ebx
call fcn.004b7ee2
add esp, 0x14
test eax, eax
jne 0x41e60b
push eax
push 0x53191c
push 0x5318e4
push eax
push ebx
call fcn.004b7ee2
add esp, 0x14
test eax, eax
jne 0x41e60b
test ebx, ebx
mov dword [ebp - 4], 0xffffffff
je 0x41e5f6
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0x53195c
push 0x5318e4
push 0
push ebx
call fcn.004b7ee2
add esp, 0x14
test eax, eax
je 0x41e7ee
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x41e659
test ebx, ebx
mov dword [ebp - 4], 0xffffffff
je 0x41e644
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [eax + 0xc]
add eax, 8
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00406120
lea edi, [eax + 0x10]
add esp, 4
mov dword [ebp - 0x18], edi
mov eax, dword [edi - 0xc]
test eax, eax
mov byte [ebp - 4], 1
jl 0x41e7d0
push 0x4fbd48
push edi
call fcn.004b775f
add esp, 8
test eax, eax
je 0x41e7d0
sub eax, edi
sar eax, 1
test eax, eax
jle 0x41e7d0
add eax, 2
push eax
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00406da0
mov ebx, dword [ebp - 0x14]
push ebx
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
push 0xa
lea ecx, [ebp - 0x64]
mov esi, eax
call fcn.004cdfb4
cmp esi, 2
mov byte [ebp - 4], 3
je 0x41e700
cmp esi, 5
jne 0x41e7b6
movzx ebx, word [ebx]
lea edx, [ebp - 0x64]
push edx
push ebx
call fcn.00468520
add esp, 8
cmp eax, 1
je 0x41e7b6
lea esp, [esp]
lea eax, [ebp - 0x2c4]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x41e7af
call fcn.004d4318
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
push edi
lea eax, [ebp - 0x20]
push str._s___.
push eax
mov byte [ebp - 4], 4
call fcn.00407a50
mov esi, dword [ebp - 0x20]
add esp, 0xc
push 0
push 5
push esi
call fcn.004ddac3
mov ebx, eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e76c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp ebx, 4
je 0x41e700
cmp ebx, 1
je 0x41e7b6
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.004ce0a5
lea ecx, [ebp - 0x14]
call fcn.00402a10
lea ecx, [ebp - 0x18]
call fcn.00402a10
lea ecx, [ebp + 8]
call fcn.0040bf20
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.004ce0a5
lea ecx, [ebp - 0x14]
call fcn.00402a10
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp + 8]
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41e7ee
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0x36a
push eax
mov dword [esi + 0x2d0], 1
call dword [sym.imp.USER32.dll_PostMessageW]
call fcn.004d4318
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov al, byte [esi + 0x301]
test al, al
mov byte [ebp - 4], 6
je 0x41e840
push 0x520384
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x34], 0x4f724c
call fcn.004b700c
push ebx
mov ecx, esi
call fcn.0040e0a0
mov eax, dword [esi + 0x11c]
lea ecx, [esi + 0x118]
push ecx
push eax
call fcn.00466470
mov al, byte [esi + 0x301]
add esp, 8
test al, al
je 0x41e87d
push 0x520384
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 0x2c], 0x4f724c
call fcn.004b700c
mov ecx, esi
call fcn.0040d4f0
mov al, byte [esi + 0x301]
test al, al
je 0x41e8a3
push 0x520384
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x44], 0x4f724c
call fcn.004b700c
push 0
push 0x53195c
push 0x5318e4
push 0
push ebx
call fcn.004b7ee2
add esp, 0x14
test eax, eax
je 0x41e8c8
push eax
mov ecx, esi
call fcn.00413180
jmp 0x41e914
push 0
push 0x531900
push 0x5318e4
push 0
push ebx
call fcn.004b7ee2
add esp, 0x14
test eax, eax
je 0x41e8ed
push eax
mov ecx, esi
call fcn.00418c00
jmp 0x41e914
push 0
push 0x53191c
push 0x5318e4
push 0
push ebx
call fcn.004b7ee2
add esp, 0x14
test eax, eax
je 0x41ec11
push eax
mov ecx, esi
call fcn.00413ea0
mov al, byte [esi + 0x301]
test al, al
je 0x41e933
push 0x520384
lea ecx, [ebp - 0x24]
push ecx
mov dword [ebp - 0x24], 0x4f724c
call fcn.004b700c
push 1
mov ecx, esi
call fcn.0040feb0
mov al, byte [esi + 0x301]
test al, al
je 0x41e95b
push 0x520384
lea edx, [ebp - 0x40]
push edx
mov dword [ebp - 0x40], 0x4f724c
call fcn.004b700c
mov ecx, esi
call fcn.00419140
mov al, byte [esi + 0x301]
test al, al
je 0x41e981
push 0x520384
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x4f724c
call fcn.004b700c
mov ecx, esi
call fcn.0040e760
mov al, byte [esi + 0x301]
test al, al
je 0x41e9a7
push 0x520384
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 0x28], 0x4f724c
call fcn.004b700c
push 0
push 0x53195c
push 0x5318e4
push 0
push ebx
call fcn.004b7ee2
mov edi, eax
add esp, 0x14
test edi, edi
je 0x41e9ef
call fcn.004e69f3
mov eax, dword [eax + 4]
mov cl, byte [eax + 0x151]
test cl, cl
je 0x41e9ef
mov eax, dword [edi + 0xc]
push ecx
add eax, 8
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.00406320
mov ecx, esi
call fcn.0041c5b0
mov al, byte [esi + 0x301]
test al, al
je 0x41ea0e
push 0x520384
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x30], 0x4f724c
call fcn.004b700c
push ecx
lea eax, [ebx + 4]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.00406320
mov ecx, esi
call fcn.00419a30
call fcn.004e69f3
mov edi, dword [eax + 4]
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp eax, dword [edi + 0x2c]
jne 0x41ea40
mov ecx, esi
call fcn.0041e200
jmp 0x41ea56
mov ecx, dword [esi + 0x1c]
push 0
push 0x800b
push 0x111
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
lea esp, [esp]
cmp dword [esi + 0x2d0], 2
je 0x41ea6f
push 0x32
call edi
jmp 0x41ea60
call fcn.004e69f3
mov eax, dword [eax + 4]
test byte [eax + 0xcc], 8
je 0x41ea98
mov edx, dword [esi + 0x1c]
push 0
push 0x8d
push 0x111
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x41eae1
lea eax, [ebp - 0x74]
push eax
mov ecx, esi
mov dword [ebp - 0x74], 0x2c
call fcn.004cf6ba
call fcn.004e69f3
mov eax, dword [eax + 4]
mov cl, byte [eax + 0x15d]
test cl, cl
je 0x41eae1
mov al, byte [esi + 0x2c8]
test al, al
jne 0x41eae1
mov eax, dword [ebp - 0x6c]
cmp eax, 3
je 0x41eae1
cmp eax, 2
je 0x41eae1
push 0xbff00000
push 0
mov ecx, esi
call fcn.0041c210
mov ecx, dword [esi + 0x1c]
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 0x9c
push 0x111
push ecx
call edi
call fcn.004e69f3
mov eax, dword [eax + 4]
test byte [eax + 0xcc], 1
jne 0x41eb1c
mov edx, dword [esi + 0x1c]
push 0
push 0x9b
push 0x111
push edx
call edi
call fcn.004e69f3
mov eax, dword [eax + 4]
mov edx, dword [eax + 0xcc]
push 0
push 0x53195c
push 0x5318e4
and edx, 0xfffffff6
push 0
push ebx
mov dword [eax + 0xcc], edx
call fcn.004b7ee2
add esp, 0x14
test eax, eax
je 0x41ebd8
mov ecx, dword [eax + 0x28]
mov eax, dword [eax + 0x2c]
test eax, eax
jl 0x41eb85
jg 0x41eb62
test ecx, ecx
jbe 0x41eb85
push 0
push 0x2710
push eax
push ecx
call fcn.004b78f0
push eax
push 1
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x1c]
push 0x8003
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx - 0xc]
test eax, eax
mov dword [ebp - 4], 5
je 0x41ec56
mov esi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.00419c40
lea eax, [ebp - 0x14]
push eax
lea ecx, [esi + 0x29c]
call fcn.00406f20
lea ecx, [ebp - 0x14]
call fcn.00402a10
lea ecx, [ebp + 8]
call fcn.0040bf20
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0x531900
push 0x5318e4
push 0
push ebx
call fcn.004b7ee2
add esp, 0x14
test eax, eax
je 0x41eb85
mov ecx, dword [eax + 0xc]
add eax, 0xc
test ecx, ecx
je 0x41eb85
push eax
lea ecx, [ebp - 0x18]
call fcn.00487950
mov edx, dword [ebp - 0x18]
push edx
push 2
jmp 0x41eb73
push 0x520384
lea edx, [ebp - 0x38]
push edx
mov dword [ebp - 0x38], 0x4fbc80
call fcn.004b700c
mov eax, dword [ebp - 0x48]
push eax
lea ecx, [ebp - 0x14]
call fcn.00403220
mov eax, 0x41eb85
ret
lea ecx, [ebp - 0x14]
call fcn.00402a10
lea ecx, [ebp + 8]
call fcn.0040bf20
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4