Function at 0x403c30
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x218
mov ebx, dword [ebp + 0xc]
cmp dword [ebp + 8], 0
mov esi, ecx
je 0x403dcd
mov dword [ecx + 0x8b8], 0
mov dword [ebx], 0x5c
lea eax, [ecx + 0x4b8]
mov edi, dword [sym.imp.user32.dll_LoadStringW]
push 0x100
push eax
push 0x4b4
push dword [section..data]
call edi
mov dword [esi + 0x8bc], 0
lea eax, [esi + 0x6b8]
push 0x100
push eax
push 0x4b5
push dword [section..data]
call edi
mov dword [ebp - 0x224], 0
push 0x7f02
push 0
call dword [sym.imp.user32.dll_LoadCursorW]
push eax
call dword [sym.imp.user32.dll_SetCursor]
mov dword [ebp - 0x18], eax
mov dword [esi + 0x2a0], 1
mov ebx, dword [0x414850]
mov edi, dword [ebp + 8]
mov dword [esi + 0x2a4], edi
mov dword [esi + 0x2a8], ebx
movzx eax, word [edi]
test ax, ax
je 0x403dc5
mov edx, edi
mov dword [ebp - 0x10], esi
movzx eax, ax
add eax, 2
mov ecx, dword [0x414854]
mov esi, edx
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0xc]
mov ecx, edi
mov edi, eax
movzx eax, word [esi]
push eax
mov dword [ebp - 0x14], ecx
push ecx
push edi
call sub.ucrtbase.dll_memcpy
add esp, 0xc
movzx eax, word [esi]
mov word [edi + eax], 0
mov eax, dword [ebx]
lea ecx, [ebp - 0x224]
push ecx
push 0x40b0b8
push 0
push edi
push ebx
call dword [eax + 0x14]
test eax, eax
js 0x403f97
mov dword [ebp - 0x1c], esi
mov ebx, dword [ebp - 0x10]
mov ecx, ebx
xor edx, edx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call sym._read_directory
add esp, 8
mov esi, dword [ebx + 4]
test esi, esi
je 0x403fbd
mov dword [ebx + 0xc], 1
movzx ebx, word [edi]
jmp 0x403d7a
mov esi, dword [esi]
test esi, esi
je 0x403f97
mov eax, dword [esi + 0x2a4]
cmp word [eax], bx
jne 0x403d70
push ebx
push edi
push eax
call dword [sym.imp.ucrtbase.dll_memcmp]
add esp, 0xc
test eax, eax
jne 0x403d70
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax]
mov ecx, dword [ebp - 0x14]
lea edx, [ecx + eax]
mov ebx, dword [ebp - 0x224]
mov dword [esi + 0x2a4], edi
mov dword [esi + 0x2a8], ebx
movzx eax, word [ecx + eax]
mov edi, edx
mov dword [ebp - 0x10], esi
test ax, ax
jne 0x403cee
push dword [ebp - 0x18]
jmp 0x403faa
mov edi, edx
push edx
call dword [sym.imp.kernel32.dll_GetDriveTypeW]
mov ecx, esi
mov dword [esi + 0x8b8], eax
mov eax, ebx
cmp word [eax], 0
lea eax, [eax + 2]
jne 0x403de0
mov dword [eax - 2], 0x5c
lea eax, [ecx + 0x6b8]
add ecx, 0x8bc
lea edx, [esi + 0x4b8]
push 0x100
push eax
push ecx
push 0
push 0
push 0x100
push edx
push ebx
call dword [sym.imp.kernel32.dll_GetVolumeInformationW]
mov edx, esi
xor eax, eax
nop
movzx ecx, word [ebx + eax]
mov word [edx + eax + 0x2b0], cx
add eax, 2
test cx, cx
jne 0x403e20
lea ebx, [ebp - 0x224]
push 0x7f02
push 0
call dword [sym.imp.user32.dll_LoadCursorW]
push eax
call dword [sym.imp.user32.dll_SetCursor]
mov dword [ebp - 0x14], eax
mov dword [esi + 0x2a0], 0
jmp 0x403e70
mov esi, dword [ebp - 0x10]
test esi, esi
mov ebx, dword [ebp - 0x18]
je 0x403fa5
nop dword [eax + eax]
add ebx, 2
movzx eax, word [edi]
test ax, ax
je 0x403e97
cmp ax, 0x5c
je 0x403e97
cmp ax, 0x2f
je 0x403e97
add edi, 2
mov word [ebx - 2], ax
jmp 0x403e70
movzx eax, word [edi + 2]
add edi, 2
cmp ax, 0x5c
je 0x403e90
cmp ax, 0x2f
je 0x403e90
mov dword [ebx - 2], 0x5c
mov ecx, esi
lea edx, [ebp - 0x224]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call sym._read_directory
add esp, 8
mov eax, dword [esi + 4]
test eax, eax
je 0x403f9f
mov dword [ebp - 0x18], ebx
mov dword [esi + 0xc], 1
cmp word [edi], 0
je 0x403fa7
mov dword [ebp - 0x10], eax
mov esi, 0x44
nop word [eax + eax]
movzx eax, word [edi + esi - 0x44]
test eax, eax
je 0x403e5d
cmp ax, 0x2f
je 0x403e5d
cmp ax, 0x5c
je 0x403e5d
push eax
mov ebx, dword [sym.imp.ucrtbase.dll_tolower]
call ebx
mov ecx, ebx
add esp, 4
mov ebx, eax
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + esi]
push eax
call ecx
add esp, 4
add esi, 2
cmp ebx, eax
je 0x403ef0
xor esi, esi
nop word [eax + eax]
movzx eax, word [edi + esi]
test eax, eax
je 0x403e5d
cmp ax, 0x2f
je 0x403e5d
cmp ax, 0x5c
je 0x403e5d
push eax
mov ebx, dword [sym.imp.ucrtbase.dll_tolower]
call ebx
mov ecx, ebx
add esp, 4
mov ebx, eax
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + esi + 0x24c]
push eax
call ecx
add esp, 4
add esi, 2
cmp ebx, eax
je 0x403f40
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
test eax, eax
jne 0x403edf
jmp 0x403fa5
mov esi, dword [ebp - 0x10]
push dword [ebp - 0x18]
jmp 0x403faa
cmp word [edi], 0
je 0x403fa7
xor esi, esi
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_SetCursor]
mov eax, esi
add esp, 0x218
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, ebx
push dword [ebp - 0x18]
jmp 0x403faa