Function at 0x412bf0
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 0x412c50
movzx edx, word [ebx + 2]
cmp dx, 0x3a
jne 0x412c2a
mov eax, ebx
jmp 0x412c17
movzx edx, word [eax + 2]
add eax, 2
test dx, dx
jne 0x412c13
sub eax, ebx
cmp eax, 4
je 0x412d40
mov dword [esp], 0x3f3
call sym._WCMD_LoadMessage
mov dword [esp], eax
call dbg.WCMD_output_stderr
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x214]
mov dword [esp], 0x104
mov dword [esp + 4], edi
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
sub esp, 8
test eax, eax
je 0x412de0
lea eax, [ebp - 0x628]
lea esi, [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], esi
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetVolumeInformationW]
sub esp, 0x20
test eax, eax
je 0x412de0
movzx edx, word [ebp - 0x214]
cmp word [ebp - 0x41c], 0
mov dword [ebp - 0x630], edx
jne 0x412db0
mov dword [esp], 0x40d
call sym._WCMD_LoadMessage
mov edx, dword [ebp - 0x630]
mov dword [esp], eax
mov dword [esp + 4], edx
call dbg.WCMD_output
mov dword [esp], 0x404
mov esi, dword [ebp - 0x628]
call sym._WCMD_LoadMessage
movzx edx, si
shr esi, 0x10
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov dword [esp], eax
call dbg.WCMD_output
mov esi, dword [ebp + 8]
test esi, esi
jne 0x412df0
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x214]
mov dword [esp + 8], ebx
lea esi, [ebp - 0x41c]
mov dword [esp + 4], 0x4289b2
mov dword [esp], edi
call dword [sym.imp.user32.dll_wsprintfW]
lea eax, [ebp - 0x628]
mov dword [esp], edi
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], esi
call dword [sym.imp.kernel32.dll_GetVolumeInformationW]
sub esp, 0x20
jmp 0x412cbe
mov dword [esp], 0x40c
call sym._WCMD_LoadMessage
mov edx, dword [ebp - 0x630]
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], edx
call dbg.WCMD_output
jmp 0x412cff
call dbg.WCMD_print_error
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x405
lea esi, [ebp - 0x624]
call sym._WCMD_LoadMessage
mov dword [esp], eax
call dbg.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], esi
mov dword [esp], eax
call sym._WCMD_ReadFile
test eax, eax
je 0x412e70
mov eax, dword [ebp - 0x62c]
cmp eax, 1
jbe 0x412e70
xor ecx, ecx
mov word [ebp + eax*2 - 0x626], cx
sub eax, 2
cmp word [ebp + eax*2 - 0x624], 0xd
jne 0x412e70
xor edx, edx
mov word [ebp + eax*2 - 0x624], dx
lea esi, [esi]
cmp word [ebx], 0
mov dword [esp + 4], esi
jne 0x412ea0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_SetVolumeLabelW]
sub esp, 8
test eax, eax
jne 0x412d32
call dbg.WCMD_print_error
jmp 0x412d32
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_SetVolumeLabelW]
sub esp, 8
test eax, eax
jne 0x412d32
jmp 0x412e92