Function at 0x404030
Capabilities:
Get disk information

Disassembly:
push edi
lea edi, [esp + 8]
and esp, 0xfffffff8
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push esi
mov esi, edi
push ebx
mov ebx, eax
sub esp, 0x44
mov eax, dword [esi + 4]
test ecx, ecx
mov dword [ebp - 0x18], edx
mov edi, dword [edi]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x28], eax
je 0x404257
lea eax, [ebx + 0x4b8]
mov esi, dword [sym.imp.user32.dll_LoadStringW]
mov dword [ebx + 0x8b8], 0
mov dword [edi], 0x5c
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4b4
mov eax, dword [0x416020]
mov dword [esp], eax
call esi
lea eax, [ebx + 0x6b8]
mov dword [ebx + 0x8bc], 0
sub esp, 0x10
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4b5
mov eax, dword [0x416020]
mov dword [esp], eax
call esi
mov dword [ebp - 0x20], ebx
sub esp, 0x10
mov dword [ebp - 0x14], 0
mov dword [esp + 4], 0x7f02
mov dword [esp], 0
call dword [sym.imp.user32.dll_LoadCursorW]
sub esp, 8
mov dword [esp], eax
mov eax, dword [sym.imp.user32.dll_SetCursor]
mov dword [ebp - 0x30], eax
call eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebx + 0x2a0], 1
mov edi, dword [0x416870]
mov dword [ebp - 0x2c], 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 0x40423b
lea esi, [esi]
mov edx, dword [0x416874]
add eax, 2
mov ecx, dword [edx]
mov dword [esp], edx
mov dword [esp + 4], eax
call dword [ecx + 0xc]
mov ebx, dword [ebp - 0x1c]
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 - 0x14]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x4125f8
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 0x404238
mov eax, dword [ebp - 0x28]
xor edx, edx
mov dword [esp], eax
mov edi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov eax, edi
call fcn.00403ca0
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x404238
mov dword [edi + 0xc], 1
movzx eax, word [esi]
mov edi, eax
mov dword [ebp - 0x18], eax
jmp 0x4041de
mov ebx, dword [ebx]
test ebx, ebx
je 0x404238
mov eax, dword [ebx + 0x2a4]
cmp word [eax], di
jne 0x4041d8
mov ecx, dword [ebp - 0x18]
mov dword [esp + 4], esi
mov dword [esp], eax
mov dword [esp + 8], ecx
call sub.ucrtbase.dll_memcmp
test eax, eax
jne 0x4041d8
mov edx, dword [ebp - 0x1c]
movd xmm0, esi
mov edi, dword [ebp - 0x14]
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 - 0x1c], edx
test ax, ax
je 0x40423b
mov dword [ebp - 0x20], ebx
jmp 0x404140
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
call eax
mov eax, ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
ret
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetDriveTypeW]
mov edx, edi
sub esp, 4
mov dword [ebx + 0x8b8], eax
cmp word [edi], 0
je 0x404281
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x404278
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [eax + 0x40d2b4]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x404288
lea eax, [ebx + 0x6b8]
mov dword [esp + 0x1c], 0x100
mov dword [esp + 0x18], eax
lea eax, [ebx + 0x8bc]
mov dword [esp + 0x14], eax
lea eax, [ebx + 0x4b8]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x100
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_GetVolumeInformationW]
xor eax, eax
sub esp, 0x20
lea esi, [esi]
nop
movzx edx, word [edi + eax]
mov word [ebx + eax + 0x2b0], dx
add eax, 2
test dx, dx
jne 0x4042f0
mov eax, dword [ebp - 0x28]
mov dword [esi], eax
mov ecx, dword [ebp - 0x24]
mov eax, ebx
mov edx, dword [ebp - 0x18]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
lea esp, [edi - 8]
pop edi
jmp fcn.00403e30