Function at 0x6d4441eb
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x6d444579
cmp byte [ebx], 0
je 0x6d444579
cmp dword [ebp + 8], 0
jne 0x6d4442d0
push 0x104
call sym.MSVCRT20.dll_malloc
add esp, 4
mov esi, eax
test esi, esi
jne 0x6d44423c
call sym.MSVCRT20.dll__errno
mov dword [eax], 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 0x104
lea eax, [edi + esi - 1]
mov cl, byte [ebx + 1]
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], eax
cmp cl, 0x5c
je 0x6d444258
cmp cl, 0x2f
jne 0x6d44426a
mov al, byte [ebx]
cmp al, 0x5c
je 0x6d444403
cmp al, 0x2f
je 0x6d444403
cmp cl, 0x3a
jne 0x6d4442f2
movzx eax, byte [ebx]
push eax
call sym.MSVCRT20.dll__ismbcalpha
add esp, 4
test eax, eax
je 0x6d4442f2
mov al, byte [ebx]
add ebx, 2
mov byte [esi], al
and eax, 0x1f
inc esi
push eax
mov dword [ebp - 0x10], eax
mov byte [esi], 0x3a
inc esi
call fcn.6d444e4d
add esp, 4
test eax, eax
jne 0x6d4442f9
call sym.MSVCRT20.dll__errno
mov dword [eax], 0xd
call sym.MSVCRT20.dll___doserrno
mov dword [eax], 0xf
cmp dword [ebp + 8], 0
jne 0x6d4442c9
push dword [ebp - 0xc]
call sym.MSVCRT20.dll_free
add esp, 4
xor eax, eax
jmp 0x6d444235
mov edi, dword [ebp + 0x10]
cmp edi, 4
jae 0x6d4442ea
call sym.MSVCRT20.dll__errno
mov dword [eax], 0x22
xor eax, eax
jmp 0x6d444235
mov esi, dword [ebp + 8]
jmp 0x6d444241
mov dword [ebp - 0x10], 0
mov al, byte [ebx]
cmp al, 0x5c
je 0x6d4443e9
cmp al, 0x2f
je 0x6d4443e9
cmp dword [ebp - 0x10], 0
je 0x6d444317
mov al, byte [ebx - 2]
mov byte [ebp - 4], al
push edi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call sym.MSVCRT20.dll__getdcwd
add esp, 0xc
test eax, eax
je 0x6d4442b8
mov edi, dword [ebp - 0xc]
mov ecx, 0xffffffff
sub eax, eax
mov edx, dword [ebp - 0xc]
repne scasb al, byte es:[edi]
not ecx
cmp dword [ebp - 0x10], 0
lea esi, [ecx + edx - 1]
je 0x6d44434a
mov al, byte [ebp - 4]
mov byte [edx], al
movzx eax, byte [esi - 2]
test byte [eax + 0x6d461a71], 4
jne 0x6d444368
lea eax, [esi - 1]
mov cl, byte [eax]
cmp cl, 0x5c
je 0x6d444366
cmp cl, 0x2f
jne 0x6d444368
mov esi, eax
mov edi, dword [ebp - 0xc]
mov byte [esi], 0x5c
add edi, 2
cmp byte [ebx], 0
je 0x6d4444a1
mov cl, byte [ebx]
cmp cl, 0x2e
jne 0x6d4444c3
cmp byte [ebx + 1], 0x2e
jne 0x6d444479
lea eax, [ebx + 2]
mov dword [ebp - 4], eax
mov al, byte [eax]
cmp al, 0x5c
je 0x6d4443a7
cmp al, 0x2f
je 0x6d4443a7
test al, al
jne 0x6d444479
dec esi
mov al, byte [esi]
cmp al, 0x5c
je 0x6d4443b2
cmp al, 0x2f
jne 0x6d4443c1
push esi
push edi
call sym.MSVCRT20.dll__ismbstrail
add esp, 8
test eax, eax
je 0x6d4443c1
dec esi
mov al, byte [esi]
cmp al, 0x5c
je 0x6d4443cf
cmp al, 0x2f
je 0x6d4443cf
cmp edi, esi
jb 0x6d4443a7
cmp edi, esi
ja 0x6d444539
mov ebx, dword [ebp - 4]
cmp byte [ebx], 0
je 0x6d4444a1
inc ebx
jmp 0x6d444498
cmp dword [ebp - 0x10], 0
jne 0x6d4443fd
call sym.MSVCRT20.dll__getdrive
add al, 0x40
mov byte [esi], al
inc esi
mov byte [esi], 0x3a
inc esi
inc ebx
jmp 0x6d444368
xor ecx, ecx
test al, al
je 0x6d44444f
inc ebx
mov byte [esi], al
cmp dword [ebp - 8], esi
jbe 0x6d444569
movzx edx, byte [esi - 2]
test byte [edx + 0x6d461a71], 4
jne 0x6d444448
cmp al, 0x5c
je 0x6d44442a
cmp al, 0x2f
jne 0x6d444448
inc ecx
mov byte [esi], 0x5c
cmp ecx, 2
jne 0x6d444438
cmp byte [ebx], 0
je 0x6d444459
cmp ecx, 3
jl 0x6d444443
cmp byte [esi - 1], 0x5c
je 0x6d444469
cmp ecx, 4
je 0x6d44444f
inc esi
mov al, byte [ebx]
test al, al
jne 0x6d444409
mov edi, esi
mov byte [esi], 0x5c
jmp 0x6d444371
call sym.MSVCRT20.dll__errno
mov dword [eax], 0x16
jmp 0x6d4442b8
call sym.MSVCRT20.dll__errno
mov dword [eax], 0x16
jmp 0x6d4442b8
cmp cl, 0x2e
jne 0x6d4444c3
lea edx, [ebx + 1]
mov al, byte [edx]
cmp al, 0x5c
je 0x6d44448f
cmp al, 0x2f
je 0x6d44448f
test al, al
jne 0x6d4444c3
mov ebx, edx
test al, al
je 0x6d444498
lea ebx, [edx + 1]
cmp byte [ebx], 0
jne 0x6d44437a
lea eax, [esi - 1]
cmp byte [eax], 0x3a
jne 0x6d4444b8
push eax
push edi
call sym.MSVCRT20.dll__ismbstrail
add esp, 8
test eax, eax
jne 0x6d4444b8
inc esi
mov eax, dword [ebp - 0xc]
mov byte [esi], 0
jmp 0x6d444235
mov edx, esi
test cl, cl
je 0x6d444505
mov ecx, 4
mov al, byte [ebx]
cmp al, 0x5c
je 0x6d444505
cmp al, 0x2f
je 0x6d444505
cmp dword [ebp - 8], esi
jbe 0x6d444569
inc esi
inc ebx
mov byte [esi], al
movzx eax, byte [ebx - 1]
test byte [eax + 0x6d461a71], cl
je 0x6d444500
mov al, byte [ebx]
test al, al
je 0x6d444549
cmp dword [ebp - 8], esi
jbe 0x6d444549
inc esi
inc ebx
mov byte [esi], al
cmp byte [ebx], 0
jne 0x6d4444ce
cmp dword [ebp - 8], esi
jbe 0x6d444569
cmp edx, esi
je 0x6d444559
inc esi
mov byte [esi], 0x5c
mov al, byte [ebx]
cmp al, 0x5c
je 0x6d444520
cmp al, 0x2f
jne 0x6d444498
push ebx
push dword [ebp - 0x14]
call sym.MSVCRT20.dll__ismbstrail
add esp, 8
test eax, eax
je 0x6d4443e3
jmp 0x6d444498
call sym.MSVCRT20.dll__errno
mov dword [eax], 0xd
jmp 0x6d4442b8
call sym.MSVCRT20.dll__errno
mov dword [eax], 0x16
jmp 0x6d4442b8
call sym.MSVCRT20.dll__errno
mov dword [eax], 0x16
jmp 0x6d4442b8
call sym.MSVCRT20.dll__errno
mov dword [eax], 0x22
jmp 0x6d4442b8
push dword [ebp + 0x10]
push dword [ebp + 8]
call sym.MSVCRT20.dll__getcwd
add esp, 8
jmp 0x6d444235