Function at 0x10014ea0
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100618eb
mov eax, dword fs:[0]
push eax
mov eax, 0x90dc
call fcn.1003a380
mov eax, dword [0x1007e064]
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 [0x100a7d00]
mov dword [ebp - 0x90e8], edi
mov eax, dword [edi + 4]
cmp eax, 3
je 0x10015493
test eax, eax
jne 0x10014fbc
movups xmm0, xmmword [str._pipediscord_ipc_0]
mov eax, dword [0x10071a68]
mov esi, dword [edi]
push 0
push 0
mov dword [ebp - 0x24], eax
mov ax, word [0x10071a6c]
push 3
movups xmmword [ebp - 0x4c], xmm0
push 0
movups xmm0, xmmword [0x10071a50]
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 [0x10071a60]
push eax
movq qword [ebp - 0x2c], xmm0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x10014fb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x10014f73
mov ax, word [ebp - 0x22]
cmp ax, 0x39
jae 0x10015493
inc ax
mov word [ebp - 0x22], ax
jmp 0x10014f95
cmp eax, 0xe7
jne 0x10015493
push 0x2710
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x10015493
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 0x10014f52
mov byte [esi], 1
mov eax, dword [edi + 4]
cmp eax, 1
jne 0x100151e8
lea ecx, [ebp - 0x90dc]
call fcn.10012a50
lea eax, [ebp - 0x90dc]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.100155b0
test al, al
je 0x100151a9
push 0x100721f0
lea eax, [ebp - 0x90e0]
push eax
lea ecx, [ebp - 0x90dc]
call fcn.10014200
cmp word [ebp - 0x90ce], 3
je 0x10015025
push 0x492
push str.C:UsersERRORDesktopFinalTestTestDiscordSDK_src_rapidjsondocument.h
push str.IsObject__
call fcn.1004378f
add esp, 0xc
mov ecx, dword [ebp - 0x90dc]
mov eax, dword [ebp - 0x90e0]
shl ecx, 5
add ecx, dword [ebp - 0x90d4]
cmp eax, ecx
je 0x10015083
mov cx, word [eax + 0x1e]
shr cx, 0xa
test cl, 1
je 0x10015083
lea esi, [eax + 0x10]
movzx eax, word [esi + 0xe]
mov ecx, eax
shr eax, 0xa
test al, 1
jne 0x10015076
push 0x6ed
push str.C:UsersERRORDesktopFinalTestTestDiscordSDK_src_rapidjsondocument.h
push str.IsString__
call fcn.1004378f
movzx ecx, word [esi + 0xe]
add esp, 0xc
test ecx, 0x1000
jne 0x10015085
mov esi, dword [esi + 8]
jmp 0x10015085
xor esi, esi
push 0x10071d44
lea eax, [ebp - 0x90e0]
push eax
lea ecx, [ebp - 0x90dc]
call fcn.10014200
cmp word [ebp - 0x90ce], 3
je 0x100150bd
push 0x492
push str.C:UsersERRORDesktopFinalTestTestDiscordSDK_src_rapidjsondocument.h
push str.IsObject__
call fcn.1004378f
add esp, 0xc
mov ecx, dword [ebp - 0x90dc]
mov eax, dword [ebp - 0x90e0]
shl ecx, 5
add ecx, dword [ebp - 0x90d4]
cmp eax, ecx
je 0x1001511b
mov cx, word [eax + 0x1e]
shr cx, 0xa
test cl, 1
je 0x1001511b
lea edi, [eax + 0x10]
movzx eax, word [edi + 0xe]
mov ecx, eax
shr eax, 0xa
test al, 1
jne 0x1001510e
push 0x6ed
push str.C:UsersERRORDesktopFinalTestTestDiscordSDK_src_rapidjsondocument.h
push str.IsString__
call fcn.1004378f
movzx ecx, word [edi + 0xe]
add esp, 0xc
test ecx, 0x1000
jne 0x1001511d
mov edi, dword [edi + 8]
jmp 0x1001511d
xor edi, edi
test esi, esi
je 0x100151a9
test edi, edi
je 0x100151a9
mov eax, str.DISPATCH
mov cl, byte [esi]
cmp cl, byte [eax]
jne 0x10015152
test cl, cl
je 0x1001514e
mov cl, byte [esi + 1]
cmp cl, byte [eax + 1]
jne 0x10015152
add esi, 2
add eax, 2
test cl, cl
jne 0x10015132
xor eax, eax
jmp 0x10015157
sbb eax, eax
or eax, 1
test eax, eax
jne 0x100151a9
mov eax, str.READY
mov cl, byte [edi]
cmp cl, byte [eax]
jne 0x10015180
test cl, cl
je 0x1001517c
mov cl, byte [edi + 1]
cmp cl, byte [eax + 1]
jne 0x10015180
add edi, 2
add eax, 2
test cl, cl
jne 0x10015160
xor eax, eax
jmp 0x10015185
sbb eax, eax
or eax, 1
test eax, eax
jne 0x100151a9
mov eax, dword [ebp - 0x90e8]
mov dword [eax + 4], 3
mov eax, dword [eax + 8]
test eax, eax
je 0x100151a9
lea ecx, [ebp - 0x90dc]
push ecx
call eax
add esp, 4
lea ecx, [ebp - 0x10a0]
call fcn.100141a0
mov esi, dword [ebp - 0x90c8]
test esi, esi
je 0x100151d0
mov ecx, esi
call fcn.100141a0
push 0x14
push esi
call fcn.100395b2
add esp, 8
push 0x808
push dword [ebp - 0x90c0]
call fcn.100395b2
add esp, 8
jmp 0x10015493
lea eax, [ebp - 0x860]
mov dword [edi + 0x154], 0
mov dword [ebp - 0x884], eax
lea ecx, [edi + 0x15c]
lea eax, [ebp - 0x854]
mov dword [ebp - 0x86c], 0x800
mov dword [ebp - 0x880], eax
xorps xmm0, xmm0
lea eax, [ecx + 0xfff8]
mov dword [ebp - 0x868], 0x144
mov dword [ebp - 0x85c], eax
lea eax, [ebp - 0x84c]
mov dword [ebp - 0x854], eax
lea eax, [ebp - 0x4c]
movups xmmword [ebp - 0x87c], xmm0
mov byte [ebp - 0x864], 0
mov dword [ebp - 0x860], ecx
mov dword [ebp - 0x858], ecx
mov dword [ebp - 0x850], eax
lea eax, [ebp - 0x884]
mov dword [ebp - 4], 1
push 3
mov ecx, eax
mov dword [ebp - 0x90e8], eax
call fcn.10018990
push ecx
lea ecx, [ebp - 0x880]
call fcn.10018f30
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 0x100152a8
mov byte [ecx], 0x7b
inc dword [eax + 8]
push 5
lea ecx, [ebp - 0x884]
call fcn.10018990
push 1
push 0x100733dc
lea ecx, [ebp - 0x884]
call fcn.10018a50
push 6
lea ecx, [ebp - 0x884]
call fcn.10018990
lea edx, [ebp - 0x1c]
mov ecx, 1
call fcn.100172d0
lea edx, [ebp - 0x1c]
mov esi, eax
mov eax, edx
mov dword [ebp - 0x90e0], edx
cmp eax, esi
je 0x10015332
mov ecx, dword [ebp - 0x884]
nop dword [eax + eax]
mov al, byte [edx]
mov byte [ebp - 0x90e1], al
mov eax, dword [ecx + 8]
cmp eax, dword [ecx + 4]
jae 0x10015327
mov dl, byte [ebp - 0x90e1]
mov byte [eax], dl
inc dword [ecx + 8]
mov ecx, dword [ebp - 0x884]
mov edx, dword [ebp - 0x90e0]
inc edx
mov dword [ebp - 0x90e0], edx
cmp edx, esi
jne 0x10015300
push 5
lea ecx, [ebp - 0x884]
call fcn.10018990
push 9
push str.client_id
lea ecx, [ebp - 0x884]
call fcn.10018a50
lea edx, [edi + 0x10]
mov esi, edx
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x10015360
sub esi, ecx
test edx, edx
jne 0x10015384
push 0xcb
push str.C:UsersERRORDesktopFinalTestTestDiscordSDK_src_rapidjsonwriter.h
push str.str___0
call fcn.1004378f
add esp, 0xc
push 5
lea ecx, [ebp - 0x884]
call fcn.10018990
push esi
lea eax, [edi + 0x10]
push eax
lea ecx, [ebp - 0x884]
call fcn.10018a50
lea ecx, [ebp - 0x90e8]
call fcn.10017c50
mov esi, dword [ebp - 0x858]
sub esi, dword [ebp - 0x860]
mov dword [ebp - 4], 0xffffffff
push 0x808
push dword [ebp - 0x87c]
call fcn.100395b2
add esp, 8
mov dword [edi + 0x158], esi
add esi, 8
je 0x1001548c
mov eax, dword [edi]
test eax, eax
jne 0x100153fd
push 0x4f
push str.C:UsersERRORDesktopFinalTestTestDiscordSDK_srcconnection_win.cpp
push str.self
call fcn.1004378f
add esp, 0xc
jmp 0x1001544e
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x1001544e
lea ecx, [edi + 0x154]
test ecx, ecx
jne 0x10015425
push 0x56
push str.C:UsersERRORDesktopFinalTestTestDiscordSDK_srcconnection_win.cpp
push str.data
call fcn.1004378f
add esp, 0xc
jmp 0x1001544e
push 0
lea edx, [ebp - 0x90e0]
mov dword [ebp - 0x90e0], 0
push edx
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x1001544e
cmp dword [ebp - 0x90e0], esi
je 0x1001548c
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x1001546e
mov eax, dword [edi + 4]
cmp eax, 3
je 0x10015462
cmp eax, 1
jne 0x1001546e
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
jmp 0x10015493
mov dword [edi + 4], 1
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.10039070
mov esp, ebp
pop ebp
ret