Function at 0x100a6b20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x58
mov esi, dword [ebp + 8]
mov eax, dword [esi]
cmp eax, 2
jne 0x100a6bb5
mov edi, dword [esi + 0x24]
test edi, edi
je 0x100a6d08
mov ebx, dword [esi + 0x20]
nop word cs:[eax + eax]
nop
lea ecx, [ebp - 0x30]
mov edx, ebx
push edi
call dbg.from_utf8
add esp, 4
cmp dword [ebp - 0x30], 0
je 0x100a6cef
mov dword [ebp - 0x34], ebx
movzx eax, byte [ebp - 0x27]
mov esi, dword [ebp - 0x2c]
movzx ebx, byte [ebp - 0x28]
mov ecx, dword [ebp + 0xc]
mov edx, 0x101c2014
mov dword [ebp - 0x38], eax
push 3
call dbg.pad
add esp, 4
test al, al
jne 0x100a6d04
test bl, 1
je 0x100a6d08
add esi, dword [ebp - 0x38]
cmp edi, esi
jb 0x100a6d12
mov ebx, dword [ebp - 0x34]
add ebx, esi
sub edi, esi
jne 0x100a6b50
jmp 0x100a6d08
test eax, eax
je 0x100a6c10
lea eax, [esi + 4]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0xf4240
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
test byte [eax + 0x1c], 4
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x10]
jne 0x100a6c39
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x30], 0x101ea538
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x58], dbg.fmt<rustc_demangle::DemangleStyle>
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 1
lea eax, [ebp - 0x30]
jmp 0x100a6c95
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
mov ebx, dword [eax + 0xc]
push dword [esi + 0x14]
push dword [esi + 0x10]
push edi
call ebx
add esp, 0xc
mov ecx, eax
mov al, 1
test cl, cl
je 0x100a6ce1
jmp 0x100a6d0a
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x5c], 0x101ea538
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x30], 2
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 4
mov dword [ebp - 0x60], dbg.fmt<rustc_demangle::DemangleStyle>
mov byte [ebp - 0x14], 3
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x64]
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x50], 1
lea ecx, [ebp - 0x44]
mov edx, 0x101be0c8
push eax
call sym.core::fmt::write::h6b62aa90debe8c99
add esp, 4
mov ecx, dword [ebp - 0x44]
test al, al
je 0x100a6ccd
test ecx, ecx
je 0x100a6ccd
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x18]
push 0x14
push str.size_limit_reached_fmt::Error__from__SizeLimitedFmtAdapter__was_discarded
push dword [ecx + 0x14]
call dword [eax + 0xc]
add esp, 0xc
test al, al
je 0x100a6cd5
jmp 0x100a6d04
test al, al
jne 0x100a6d04
test ecx, ecx
jne 0x100a6d20
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
mov ebx, dword [eax + 0xc]
push dword [esi + 0x1c]
push dword [esi + 0x18]
push edi
call ebx
add esp, 0xc
jmp 0x100a6d0a
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp + 0xc]
push dword [ebp - 0x28]
call dbg.pad
add esp, 4
test al, al
je 0x100a6d08
mov al, 1
jmp 0x100a6d0a
xor eax, eax
add esp, 0x58
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
mov edx, edi
push 0x101c2340
call dbg.slice_start_index_len_fail
lea eax, [ebp - 0x30]
mov ecx, 0x101be5bc
mov edx, 0x37
push 0x101be5f4
push 0x101be040
push eax
call dbg.unwrap_failed
nop dword [eax]