Function at 0x4da660
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63d6fb
mov eax, dword fs:[0]
push eax
mov eax, 0x90dc
call fcn.0059d630
mov eax, dword [0x6cd498]
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 [0x749b50]
mov eax, dword [edi + 4]
cmp eax, 3
je 0x4daad7
test eax, eax
jne 0x4da77a
movups xmm0, xmmword [str._pipediscord_ipc_0]
mov eax, dword [0x694d88]
mov esi, dword [edi]
push 0
push 0
mov dword [ebp - 0x24], eax
mov ax, word [0x694d8c]
push 3
movups xmmword [ebp - 0x4c], xmm0
push 0
movups xmm0, xmmword [0x694d70]
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 [0x694d80]
push eax
movq qword [ebp - 0x2c], xmm0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x4da774
nop dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4da731
mov ax, word [ebp - 0x22]
cmp ax, 0x39
jae 0x4daad7
inc ax
mov word [ebp - 0x22], ax
jmp 0x4da753
cmp eax, 0xe7
jne 0x4daad7
push 0x2710
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x4daad7
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 0x4da710
mov byte [esi], 1
mov eax, dword [edi + 4]
cmp eax, 1
jne 0x4da8a7
push 0x8858
lea eax, [ebp - 0x90dc]
push 0
push eax
call fcn.005d8990
add esp, 0xc
lea ecx, [ebp - 0x90dc]
call fcn.004d6ad0
lea eax, [ebp - 0x90dc]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.004daba0
test al, al
je 0x4da868
push 0
mov edx, 0x694e94
lea ecx, [ebp - 0x90dc]
call fcn.004d6d60
push 0
mov edx, 0x694b00
lea ecx, [ebp - 0x90dc]
mov esi, eax
call fcn.004d6d60
add esp, 8
test esi, esi
je 0x4da868
test eax, eax
je 0x4da868
mov ecx, str.DISPATCH
mov dl, byte [esi]
cmp dl, byte [ecx]
jne 0x4da817
test dl, dl
je 0x4da813
mov dl, byte [esi + 1]
cmp dl, byte [ecx + 1]
jne 0x4da817
add esi, 2
add ecx, 2
test dl, dl
jne 0x4da7f7
xor ecx, ecx
jmp 0x4da81c
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jne 0x4da868
mov ecx, str.READY
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4da845
test dl, dl
je 0x4da841
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4da845
add eax, 2
add ecx, 2
test dl, dl
jne 0x4da825
xor eax, eax
jmp 0x4da84a
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4da868
mov eax, dword [edi + 8]
mov dword [edi + 4], 3
test eax, eax
je 0x4da868
lea ecx, [ebp - 0x90dc]
push ecx
call eax
add esp, 4
lea ecx, [ebp - 0x10a0]
call fcn.004d8150
mov esi, dword [ebp - 0x90c8]
test esi, esi
je 0x4da88f
mov ecx, esi
call fcn.004d8150
push 0x14
push esi
call fcn.0059c8ef
add esp, 8
push 0x808
push dword [ebp - 0x90c0]
call fcn.0059c8ef
add esp, 8
jmp 0x4daad7
push 0x838
lea eax, [ebp - 0x884]
mov dword [edi + 0x154], 0
push 0
push eax
lea esi, [edi + 0x15c]
call fcn.005d8990
lea eax, [ebp - 0x860]
mov dword [ebp - 0x86c], 0x800
mov dword [ebp - 0x884], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x854]
mov dword [ebp - 0x868], 0x144
mov dword [ebp - 0x880], eax
lea eax, [esi + 0xfff8]
mov dword [ebp - 0x85c], eax
lea eax, [ebp - 0x84c]
mov dword [ebp - 0x854], eax
lea eax, [ebp - 0x4c]
movups xmmword [ebp - 0x87c], xmm0
mov dword [ebp - 0x860], esi
mov dword [ebp - 0x858], esi
mov dword [ebp - 0x850], eax
add esp, 8
mov dword [ebp - 4], 1
lea eax, [ebp - 0x884]
mov byte [ebp - 0x864], 1
lea ecx, [ebp - 0x880]
mov dword [ebp - 0x90e8], eax
call fcn.004da470
mov dword [eax], 0
mov byte [eax + 4], 0
mov eax, dword [ebp - 0x884]
mov ecx, dword [eax + 8]
cmp ecx, dword [eax + 4]
jae 0x4da973
mov byte [ecx], 0x7b
inc dword [eax + 8]
push 5
lea ecx, [ebp - 0x884]
call fcn.004da0c0
push 1
push 0x694ff0
lea ecx, [ebp - 0x884]
call fcn.004da180
push 6
lea ecx, [ebp - 0x884]
call fcn.004da0c0
lea edx, [ebp - 0x1c]
mov ecx, 1
call fcn.004d8c00
lea edx, [ebp - 0x1c]
mov esi, eax
mov eax, edx
mov dword [ebp - 0x90e4], edx
cmp eax, esi
je 0x4da9f5
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 0x4da9ea
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 0x4da9c3
push 5
lea ecx, [ebp - 0x884]
call fcn.004da0c0
push 9
push str.client_id
lea ecx, [ebp - 0x884]
call fcn.004da180
cmp byte [edi + 0x10], 0
lea esi, [edi + 0x10]
je 0x4daa26
nop dword [eax]
inc esi
cmp byte [esi], 0
jne 0x4daa20
push 5
lea ecx, [ebp - 0x884]
call fcn.004da0c0
lea eax, [edi + 0x10]
sub esi, eax
lea ecx, [ebp - 0x884]
push esi
push eax
call fcn.004da180
lea ecx, [ebp - 0x90e8]
call fcn.004d9500
mov esi, dword [ebp - 0x858]
sub esi, dword [ebp - 0x860]
mov dword [ebp - 4], 0xffffffff
push 0x808
push dword [ebp - 0x87c]
call fcn.0059c8ef
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.004d8a40
test al, al
je 0x4daa9b
mov dword [edi + 4], 1
jmp 0x4daad7
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x4daabb
mov eax, dword [edi + 4]
cmp eax, 3
je 0x4daaaf
cmp eax, 1
jne 0x4daabb
lea eax, [edi + 0x54]
push eax
push dword [edi + 0x50]
call ecx
add esp, 8
mov esi, dword [edi]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0xffffffff
mov byte [esi], 0
mov dword [edi + 4], 0
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.0059c8be
mov esp, ebp
pop ebp
ret