Function at 0x100a8c20
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 0x100a8cb5
mov edi, dword [esi + 0x24]
test edi, edi
je 0x100a8e08
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 0x100a8def
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, 0x101cd990
mov dword [ebp - 0x38], eax
push 3
call dbg.pad
add esp, 4
test al, al
jne 0x100a8e04
test bl, 1
je 0x100a8e08
add esi, dword [ebp - 0x38]
cmp edi, esi
jb 0x100a8e12
mov ebx, dword [ebp - 0x34]
add ebx, esi
sub edi, esi
jne 0x100a8c50
jmp 0x100a8e08
test eax, eax
je 0x100a8d10
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 0x100a8d39
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x30], 0x101f613c
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 0x100a8d95
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 0x100a8de1
jmp 0x100a8e0a
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x5c], 0x101f613c
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, 0x101c9810
push eax
call sym.core::fmt::write::h4bd3fd172bf5e536
add esp, 4
mov ecx, dword [ebp - 0x44]
test al, al
je 0x100a8dcd
test ecx, ecx
je 0x100a8dcd
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
jne 0x100a8e04
jmp 0x100a8dd5
test al, al
jne 0x100a8e04
test ecx, ecx
jne 0x100a8e20
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 0x100a8e0a
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp + 0xc]
push dword [ebp - 0x28]
call dbg.pad
add esp, 4
test al, al
je 0x100a8e08
mov al, 1
jmp 0x100a8e0a
xor eax, eax
add esp, 0x58
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
mov edx, edi
push 0x101cdcbc
call dbg.slice_start_index_len_fail
lea eax, [ebp - 0x30]
mov ecx, 0x101c9d04
mov edx, 0x37
push 0x101c9d3c
push 0x101c9788
push eax
call sym.core::result::unwrap_failed::hb9c5ac622931d85d
nop dword [eax]