Function at 0x404010
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
lea edi, [ebx + 0x6b8]
sub esp, 0x5c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], edx
lea edx, [ebx + 0x4b8]
test ecx, ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
je 0x40421a
mov dword [ebx + 0x8b8], 0
mov eax, dword [0x40d598]
mov dword [esi], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0x100
mov dword [esp + 4], 0x4b4
mov eax, dword [0x414020]
mov dword [esp], eax
call sub.user32.dll_LoadStringW
mov dword [ebx + 0x8bc], 0
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 0xc], 0x100
mov dword [esp + 4], 0x4b5
mov eax, dword [0x414020]
mov dword [esp], eax
call sub.user32.dll_LoadStringW
mov dword [ebp - 0x34], ebx
sub esp, 0x10
mov dword [ebp - 0x1c], 0
mov dword [esp + 4], 0x7f02
mov dword [esp], 0
call sub.user32.dll_LoadCursorW
sub esp, 8
mov dword [esp], eax
call sub.user32.dll_SetCursor
mov ecx, dword [ebp - 0x30]
mov dword [ebx + 0x2a0], 1
mov edi, dword [0x414870]
mov dword [ebp - 0x40], eax
sub esp, 4
movd xmm0, ecx
movd xmm2, edi
punpckldq xmm0, xmm2
movq qword [ebx + 0x2a4], xmm0
movzx eax, word [ecx]
test ax, ax
je 0x404201
lea esi, [esi]
mov edx, dword [0x414874]
add eax, 2
mov ecx, dword [edx]
mov dword [esp], edx
mov dword [esp + 4], eax
call dword [ecx + 0xc]
mov ebx, dword [ebp - 0x30]
mov esi, eax
sub esp, 8
movzx eax, word [ebx]
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [esp + 8], eax
call sub.ucrtbase.dll_memcpy
movzx eax, word [ebx]
xor edx, edx
mov word [esi + eax], dx
mov eax, dword [edi]
lea edx, [ebp - 0x1c]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x411e68
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [eax + 0x14]
sub esp, 0x14
test eax, eax
js 0x404201
mov eax, dword [ebp - 0x3c]
xor edx, edx
mov dword [esp], eax
mov edi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
mov eax, edi
call fcn.00403c60
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x404201
mov dword [edi + 0xc], 1
movzx eax, word [esi]
mov edi, eax
mov dword [ebp - 0x2c], eax
jmp 0x4041ae
mov ebx, dword [ebx]
test ebx, ebx
je 0x404201
mov eax, dword [ebx + 0x2a4]
cmp word [eax], di
jne 0x4041a8
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], esi
mov dword [esp], eax
mov dword [esp + 8], ecx
call sub.ucrtbase.dll_memcmp
test eax, eax
jne 0x4041a8
mov edx, dword [ebp - 0x30]
movd xmm0, esi
mov dword [ebp - 0x34], ebx
mov edi, dword [ebp - 0x1c]
movzx eax, word [edx]
movd xmm1, edi
punpckldq xmm0, xmm1
movq qword [ebx + 0x2a4], xmm0
add edx, eax
movzx eax, word [edx]
mov dword [ebp - 0x30], edx
test ax, ax
jne 0x404110
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call sub.user32.dll_SetCursor
mov eax, dword [ebp - 0x34]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetDriveTypeW]
mov edx, esi
sub esp, 4
mov dword [ebx + 0x8b8], eax
cmp word [esi], 0
je 0x404249
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x404240
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [eax + 0x40d2b4]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x404250
lea eax, [ebx + 0x8bc]
mov dword [esp + 0x1c], 0x100
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x100
mov eax, dword [ebp - 0x34]
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_GetVolumeInformationW]
xor eax, eax
sub esp, 0x20
lea esi, [esi]
lea esi, [esi]
movzx edx, word [esi + eax]
mov word [ebx + eax + 0x2b0], dx
add eax, 2
test dx, dx
jne 0x4042b0
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x2c]
mov dword [ebp + 8], eax
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00403df0