Function at 0x100a77b0
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 0x100a7845
mov edi, dword [esi + 0x24]
test edi, edi
je 0x100a7998
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 0x100a797f
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, 0x101be40c
mov dword [ebp - 0x38], eax
push 3
call dbg.pad
add esp, 4
test al, al
jne 0x100a7994
test bl, 1
je 0x100a7998
add esi, dword [ebp - 0x38]
cmp edi, esi
jb 0x100a79a2
mov ebx, dword [ebp - 0x34]
add ebx, esi
sub edi, esi
jne 0x100a77e0
jmp 0x100a7998
test eax, eax
je 0x100a78a0
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 0x100a78c9
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x30], 0x101e683c
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 0x100a7925
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 0x100a7971
jmp 0x100a799a
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x5c], 0x101e683c
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, 0x101ba5e0
push eax
call sym.core::fmt::write::h4bd3fd172bf5e536
add esp, 4
mov ecx, dword [ebp - 0x44]
test al, al
je 0x100a795d
test ecx, ecx
je 0x100a795d
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 0x100a7994
jmp 0x100a7965
test al, al
jne 0x100a7994
test ecx, ecx
jne 0x100a79b0
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 0x100a799a
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp + 0xc]
push dword [ebp - 0x28]
call dbg.pad
add esp, 4
test al, al
je 0x100a7998
mov al, 1
jmp 0x100a799a
xor eax, eax
add esp, 0x58
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
mov edx, edi
push 0x101be738
call dbg.slice_start_index_len_fail
lea eax, [ebp - 0x30]
mov ecx, 0x101baad4
mov edx, 0x37
push 0x101bab0c
push 0x101ba558
push eax
call sym.core::result::unwrap_failed::hb9c5ac622931d85d
nop dword [eax]