Function at 0x504a70
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 0x504b05
mov edi, dword [esi + 0x24]
test edi, edi
je 0x504c56
mov ebx, dword [esi + 0x20]
nop word cs:[eax + eax]
nop
lea ecx, [ebp - 0x30]
mov edx, ebx
push edi
call sym.core::str::converts::from_utf8::h614587554aa91dbb
add esp, 4
test byte [ebp - 0x30], 1
je 0x504c3d
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, 0x5b1fa4
mov dword [ebp - 0x38], eax
push 3
call sym.core::fmt::Formatter::pad::h1cc0cb80d9b3d9c0
add esp, 4
test al, al
jne 0x504c52
test bl, 1
je 0x504c56
add esi, dword [ebp - 0x38]
cmp edi, esi
jb 0x504c60
mov ebx, dword [ebp - 0x34]
add ebx, esi
sub edi, esi
jne 0x504aa0
jmp 0x504c56
test al, 1
je 0x504b60
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 0x504b89
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x30], 0x5b7cfc
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x58], sym.__LT__RF_T_u20_as_u20_core..fmt..Display_GT_::fmt::h4d1c59597c11dac8
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 1
lea eax, [ebp - 0x30]
jmp 0x504be5
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 0x504c2f
jmp 0x504c58
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x5c], 0x5b7cfc
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], sym.__LT__RF_T_u20_as_u20_core..fmt..Display_GT_::fmt::h4d1c59597c11dac8
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, 0x5ab958
push eax
call sym.core::fmt::write::h6d9651045a265294
add esp, 4
movzx ecx, byte [ebp - 0x44]
test al, cl
je 0x504c1a
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 0x504c52
jmp 0x504c23
test al, al
jne 0x504c52
test cl, 1
jne 0x504c6e
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 0x504c58
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp + 0xc]
push dword [ebp - 0x28]
call sym.core::fmt::Formatter::pad::h1cc0cb80d9b3d9c0
add esp, 4
test al, al
je 0x504c56
mov al, 1
jmp 0x504c58
xor eax, eax
add esp, 0x58
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
mov edx, edi
push 0x5b2354
call sym.core::slice::index::slice_start_index_len_fail::hb6088e54b0b075d5
lea eax, [ebp - 0x30]
mov ecx, 0x5abe3c
mov edx, 0x37
push 0x5abe74
push 0x5ab8f0
push eax
call sym.core::result::unwrap_failed::h534a40e08cfe968a
nop dword [eax + eax]