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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x65c
mov ebx, dword [ebp + 0xc]
cmp word [ebx], 0
je 0x41ea00
movzx edx, word [ebx + 2]
cmp dx, 0x3a
jne 0x41e9df
mov eax, ebx
jmp 0x41e9cc
movzx edx, word [eax + 2]
add eax, 2
test dx, dx
jne 0x41e9c8
sub eax, ebx
cmp eax, 4
je 0x41eaf0
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 - 0x220]
mov dword [esp], 0x104
mov dword [esp + 4], esi
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
sub esp, 8
test eax, eax
je 0x41eb90
lea eax, [ebp - 0x634]
lea edi, [ebp - 0x428]
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 0x41eb90
movzx edx, word [ebp - 0x220]
cmp word [ebp - 0x428], 0
mov dword [ebp - 0x63c], edx
jne 0x41eb60
mov dword [esp], 0x40d
call sym._WCMD_LoadMessage
mov edx, dword [ebp - 0x63c]
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._WCMD_output
mov dword [esp], 0x404
mov edi, dword [ebp - 0x634]
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 0x41eba0
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
lea esi, [ebp - 0x220]
mov dword [esp + 8], ebx
lea edi, [ebp - 0x428]
mov dword [esp + 4], 0x436936
mov dword [esp], esi
call dword [sym.imp.user32.dll_wsprintfW]
lea eax, [ebp - 0x634]
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 0x41ea6e
mov dword [esp], 0x40c
call sym._WCMD_LoadMessage
mov edx, dword [ebp - 0x63c]
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._WCMD_output
jmp 0x41eaaf
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 - 0x630]
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 - 0x638]
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 0x41ec20
mov eax, dword [ebp - 0x638]
cmp eax, 1
jbe 0x41ec20
xor edx, edx
cmp word [ebp + eax*2 - 0x634], 0xd
mov word [ebp + eax*2 - 0x632], dx
lea edx, [eax - 2]
jne 0x41ec20
xor eax, eax
mov word [ebp + edx*2 - 0x630], ax
lea esi, [esi]
cmp word [ebx], 0
mov dword [esp + 4], edi
jne 0x41ec50
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_SetVolumeLabelW]
sub esp, 8
test eax, eax
jne 0x41eae2
call sym._WCMD_print_error
jmp 0x41eae2
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_SetVolumeLabelW]
sub esp, 8
test eax, eax
jne 0x41eae2
jmp 0x41ec42