Function at 0x4c4440
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62c9bb
mov eax, dword fs:[0]
push eax
mov eax, 0x90d8
call fcn.005a5610
mov eax, dword [0x6bd4d8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [0x74c480]
mov ecx, 0x7528bd
call fcn.00627a20
mov eax, dword [edi + 4]
cmp eax, 3
je 0x4c4861
test eax, eax
jne 0x4c4560
movups xmm0, xmmword [str._pipediscord_ipc_0]
mov eax, dword [0x67e61c]
mov esi, dword [edi]
push 0
push 0
mov dword [ebp - 0x24], eax
mov ax, word [0x67e620]
push 3
movups xmmword [ebp - 0x4c], xmm0
push 0
movups xmm0, xmmword [0x67e604]
mov word [ebp - 0x20], ax
mov eax, 0x30
push 0
mov word [ebp - 0x22], ax
lea eax, [ebp - 0x4c]
movups xmmword [ebp - 0x3c], xmm0
push 0xc0000000
movq xmm0, qword [0x67e614]
push eax
movq qword [ebp - 0x2c], xmm0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x4c455a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4c4517
mov ax, word [ebp - 0x22]
cmp ax, 0x39
jae 0x4c4861
inc ax
mov word [ebp - 0x22], ax
jmp 0x4c4539
cmp eax, 0xe7
jne 0x4c4861
push 0x2710
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x4c4861
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x4c44f6
mov byte [esi], 1
mov eax, dword [edi + 4]
cmp eax, 1
jne 0x4c4692
push 0x8858
lea eax, [ebp - 0x90dc]
push 0
push eax
call fcn.005e07d0
add esp, 0xc
lea ecx, [ebp - 0x90dc]
call fcn.004c08b0
lea eax, [ebp - 0x90dc]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.004c4940
test al, al
je 0x4c4653
push 0
mov edx, 0x67e624
lea ecx, [ebp - 0x90dc]
call fcn.004c0a70
push 0
mov edx, 0x67e558
lea ecx, [ebp - 0x90dc]
mov esi, eax
call fcn.004c0a70
add esp, 8
mov ecx, eax
test esi, esi
je 0x4c4653
test ecx, ecx
je 0x4c4653
mov eax, str.DISPATCH
nop
mov dl, byte [esi]
cmp dl, byte [eax]
jne 0x4c4600
test dl, dl
je 0x4c45fc
mov dl, byte [esi + 1]
cmp dl, byte [eax + 1]
jne 0x4c4600
add esi, 2
add eax, 2
test dl, dl
jne 0x4c45e0
xor eax, eax
jmp 0x4c4605
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4c4653
mov eax, str.READY
nop
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4c4630
test dl, dl
je 0x4c462c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4c4630
add ecx, 2
add eax, 2
test dl, dl
jne 0x4c4610
xor eax, eax
jmp 0x4c4635
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4c4653
mov eax, dword [edi + 8]
mov dword [edi + 4], 3
test eax, eax
je 0x4c4653
lea ecx, [ebp - 0x90dc]
push ecx
call eax
add esp, 4
lea ecx, [ebp - 0x10a0]
call fcn.004c2030
mov esi, dword [ebp - 0x90c8]
test esi, esi
je 0x4c467a
mov ecx, esi
call fcn.004c2030
push 0x14
push esi
call fcn.005a48cc
add esp, 8
push 0x808
push dword [ebp - 0x90c0]
call fcn.005a48cc
add esp, 8
jmp 0x4c4861
push 0x838
lea eax, [ebp - 0x884]
mov dword [edi + 0x154], 0
push 0
push eax
call fcn.005e07d0
add esp, 0xc
lea eax, [edi + 0x15c]
lea ecx, [ebp - 0x884]
push 0xfff8
push eax
call fcn.004c3160
push ecx
lea ecx, [ebp - 0x884]
mov dword [ebp - 4], 1
call fcn.004c4220
mov ecx, dword [ebp - 0x874]
lea eax, [ecx + 8]
cmp eax, dword [ebp - 0x870]
jbe 0x4c46ff
push ecx
lea ecx, [ebp - 0x880]
call fcn.004c4390
mov ecx, dword [ebp - 0x874]
lea eax, [ecx + 8]
mov dword [ebp - 0x874], eax
mov dword [ecx], 0
mov byte [ecx + 4], 0
mov eax, dword [ebp - 0x884]
mov ecx, dword [eax + 8]
cmp ecx, dword [eax + 4]
jae 0x4c4726
mov byte [ecx], 0x7b
inc dword [eax + 8]
push ecx
lea ecx, [ebp - 0x884]
call fcn.004c4220
push 1
push 0x67e71c
lea ecx, [ebp - 0x884]
call fcn.004c4290
push ecx
lea ecx, [ebp - 0x884]
call fcn.004c4220
lea edx, [ebp - 0x1c]
mov ecx, 1
call fcn.004c2840
lea edx, [ebp - 0x1c]
mov esi, eax
mov eax, edx
mov dword [ebp - 0x90e4], edx
cmp eax, esi
je 0x4c47a6
mov ecx, dword [ebp - 0x884]
mov al, byte [edx]
mov byte [ebp - 0x90dd], al
mov eax, dword [ecx + 8]
cmp eax, dword [ecx + 4]
jae 0x4c479b
mov dl, byte [ebp - 0x90dd]
mov byte [eax], dl
inc dword [ecx + 8]
mov ecx, dword [ebp - 0x884]
mov edx, dword [ebp - 0x90e4]
inc edx
mov dword [ebp - 0x90e4], edx
cmp edx, esi
jne 0x4c4774
push ecx
lea ecx, [ebp - 0x884]
call fcn.004c4220
push 9
push str.client_id
lea ecx, [ebp - 0x884]
call fcn.004c4290
cmp byte [edi + 0x10], 0
lea esi, [edi + 0x10]
je 0x4c47d6
nop dword [eax]
inc esi
cmp byte [esi], 0
jne 0x4c47d0
push ecx
lea ecx, [ebp - 0x884]
call fcn.004c4220
lea eax, [edi + 0x10]
sub esi, eax
lea ecx, [ebp - 0x884]
push esi
push eax
call fcn.004c4290
mov eax, dword [ebp - 0x884]
sub dword [ebp - 0x874], 8
mov ecx, dword [eax + 8]
cmp ecx, dword [eax + 4]
jae 0x4c480f
mov byte [ecx], 0x7d
inc dword [eax + 8]
mov esi, dword [ebp - 0x858]
sub esi, dword [ebp - 0x860]
mov dword [ebp - 4], 0xffffffff
push 0x808
push dword [ebp - 0x87c]
call fcn.005a48cc
mov ecx, dword [edi]
lea eax, [esi + 8]
add esp, 8
mov dword [edi + 0x158], esi
push eax
lea eax, [edi + 0x154]
push eax
call fcn.004c27b0
test al, al
je 0x4c485a
mov dword [edi + 4], 1
jmp 0x4c4861
mov ecx, edi
call fcn.004c4880
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005a489b
mov esp, ebp
pop ebp
ret