Function at 0x41eb20
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x644
mov ebx, dword [ebp + 0xc]
cmp word [ebx], 0
je 0x41eb80
movzx edx, word [ebx + 2]
cmp dx, 0x3a
jne 0x41eb5f
mov eax, ebx
jmp 0x41eb4c
movzx edx, word [eax + 2]
add eax, 2
test dx, dx
jne 0x41eb48
sub eax, ebx
cmp eax, 4
je 0x41ec70
mov dword [esp], 0x3f3
call sym._WCMD_LoadMessage
mov dword [esp], eax
call sym._WCMD_output_stderr
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
lea esi, [ebp - 0x214]
mov dword [esp], 0x104
mov dword [esp + 4], esi
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
sub esp, 8
test eax, eax
je 0x41ed10
lea eax, [ebp - 0x628]
lea edi, [ebp - 0x41c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetVolumeInformationW]
sub esp, 0x20
test eax, eax
je 0x41ed10
movzx edx, word [ebp - 0x214]
cmp word [ebp - 0x41c], 0
mov dword [ebp - 0x630], edx
jne 0x41ece0
mov dword [esp], 0x40d
call sym._WCMD_LoadMessage
mov edx, dword [ebp - 0x630]
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._WCMD_output
mov dword [esp], 0x404
mov edi, dword [ebp - 0x628]
call sym._WCMD_LoadMessage
movzx edx, di
shr edi, 0x10
mov dword [esp + 8], edx
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._WCMD_output
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x41ed20
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
lea esi, [ebp - 0x214]
mov dword [esp + 8], ebx
lea edi, [ebp - 0x41c]
mov dword [esp + 4], 0x436936
mov dword [esp], esi
call dword [sym.imp.user32.dll_wsprintfW]
lea eax, [ebp - 0x628]
mov dword [esp], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
call dword [sym.imp.kernel32.dll_GetVolumeInformationW]
sub esp, 0x20
jmp 0x41ebee
mov dword [esp], 0x40c
call sym._WCMD_LoadMessage
mov edx, dword [ebp - 0x630]
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._WCMD_output
jmp 0x41ec2f
call sym._WCMD_print_error
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x405
lea edi, [ebp - 0x624]
call sym._WCMD_LoadMessage
mov dword [esp], eax
call sym._WCMD_output
mov dword [esp], 0xfffffff6
call dword [sym.imp.kernel32.dll_GetStdHandle]
lea edx, [ebp - 0x62c]
sub esp, 4
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._WCMD_ReadFile
test eax, eax
je 0x41eda0
mov eax, dword [ebp - 0x62c]
cmp eax, 1
jbe 0x41eda0
xor edx, edx
cmp word [ebp + eax*2 - 0x628], 0xd
mov word [ebp + eax*2 - 0x626], dx
lea edx, [eax - 2]
jne 0x41eda0
xor eax, eax
mov word [ebp + edx*2 - 0x624], ax
lea esi, [esi]
cmp word [ebx], 0
mov dword [esp + 4], edi
jne 0x41edd0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_SetVolumeLabelW]
sub esp, 8
test eax, eax
jne 0x41ec62
call sym._WCMD_print_error
jmp 0x41ec62
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_SetVolumeLabelW]
sub esp, 8
test eax, eax
jne 0x41ec62
jmp 0x41edc2