Function at 0x10080c60
Capabilities:
Read file on windows
Read pipe
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1001c
call fcn.101da8e0
mov eax, dword [0x1026ebc4]
xor eax, esp
mov dword [esp + 0x10018], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], eax
mov eax, dword [edi + 4]
cmp eax, 3
je 0x10080c9b
cmp eax, 1
jne 0x100810c1
mov ebx, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov esi, dword [edi]
test esi, esi
je 0x10081037
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x10081048
push 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
push ecx
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_PeekNamedPipe]
test eax, eax
je 0x10081022
cmp dword [esp + 0x14], 8
jb 0x10081048
push 0
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 8
lea eax, [esp + 0x2c]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp eax, 1
jne 0x10081019
cmp dword [esp + 0xc], 8
je 0x10080d26
push 0x74
push str.F:DcRatReleaseClientsFolder53D8A75F25210EE3455A_fastdsoundconnection_win.cpp
push str.bytesToRead__bytesRead
call ebx
add esp, 0xc
mov esi, dword [esp + 0x24]
test esi, esi
je 0x10080dc7
mov ebx, dword [edi]
test ebx, ebx
je 0x10080e97
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
je 0x10080eac
push 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push ecx
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_PeekNamedPipe]
test eax, eax
je 0x10080e82
cmp dword [esp + 0x18], esi
jb 0x10080eac
push 0
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push esi
lea eax, [esp + 0x34]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp eax, 1
jne 0x10080e79
mov ebx, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
cmp esi, dword [esp + 0xc]
je 0x10080dba
push 0x74
push str.F:DcRatReleaseClientsFolder53D8A75F25210EE3455A_fastdsoundconnection_win.cpp
push str.bytesToRead__bytesRead
call ebx
add esp, 0xc
mov eax, dword [esp + 0x24]
mov byte [esp + eax + 0x28], 0
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
cmp eax, 4
ja case.0x10080dd4.0
jmp dword [eax*4 + 0x100810dc]
mov dword [esp + 0x20], 4
add esi, 8
je case.0x10080dd4.4
mov eax, dword [edi]
test eax, eax
jne 0x10080e05
push 0x4f
push str.F:DcRatReleaseClientsFolder53D8A75F25210EE3455A_fastdsoundconnection_win.cpp
push str.self
call ebx
add esp, 0xc
jmp 0x10080e38
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x10080e38
push 0
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 0
push ecx
push esi
lea ecx, [esp + 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
cmp eax, 1
jne 0x10080e38
cmp dword [esp + 0x1c], esi
je case.0x10080dd4.4
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x10080e58
mov eax, dword [edi + 4]
cmp eax, 3
je 0x10080e4c
cmp eax, 1
jne 0x10080e58
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 case.0x10080dd4.4
mov ecx, ebx
call fcn.10059490
jmp 0x10080eac
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebx + 4], 0xffffffff
mov byte [ebx], 0
jmp 0x10080eac
push 0x67
push str.F:DcRatReleaseClientsFolder53D8A75F25210EE3455A_fastdsoundconnection_win.cpp
push str.self
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov ecx, str.Partial_data_in_frame
mov dword [edi + 0x50], 2
lea ebx, [edi + 0x54]
mov esi, 1
mov edx, ebx
sub esi, ecx
nop dword [eax]
nop dword [eax + eax]
lea eax, [esi + ecx]
cmp eax, 0x100
jae 0x10081085
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
cmp byte [ecx], 0
jne 0x10080ed0
jmp 0x10081085
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call fcn.100810f0
push ecx
mov ecx, esi
call fcn.10059d00
add esp, 4
mov dword [edi + 0x50], eax
test esi, esi
je 0x10080f6c
push str.message
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.1005b380
cmp word [esi + 0xe], 3
je 0x10080f3c
push 0x4ee
push str.D:2.3d3d9_Guid3d9_blank_proxyDiscordSDK_src_rapidjsondocument.h
push str.IsObject__
call ebx
add esp, 0xc
mov ecx, dword [esi]
mov eax, dword [esp + 0x10]
shl ecx, 5
add ecx, dword [esi + 8]
cmp eax, ecx
je 0x10080f6c
mov cx, word [eax + 0x1e]
shr cx, 0xa
test cl, 1
je 0x10080f6c
lea ecx, [eax + 0x10]
call fcn.1005b340
mov ecx, eax
lea ebx, [edi + 0x54]
test ecx, ecx
je 0x10080f9c
jmp 0x10080f76
mov eax, 0x10255579
lea ebx, [edi + 0x54]
mov ecx, eax
cmp byte [eax], 0
mov edx, ebx
je 0x10080f99
mov esi, 1
sub esi, eax
lea eax, [ecx + esi]
cmp eax, 0x100
jae 0x10080f99
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
cmp byte [ecx], 0
jne 0x10080f84
mov byte [edx], 0
mov eax, dword [edi + 0xc]
test eax, eax
je 0x100810a5
mov ecx, dword [edi + 4]
cmp ecx, 3
je 0x10080fb8
cmp ecx, 1
jne 0x100810a5
push ebx
push dword [edi + 0x50]
call eax
jmp 0x100810a2
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x28]
push eax
call fcn.100810f0
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10018]
xor ecx, esp
call fcn.101d9510
mov esp, ebp
pop ebp
ret 4
mov ecx, str.Bad_ipc_frame
mov dword [edi + 0x50], 2
lea ebx, [edi + 0x54]
mov esi, 1
mov edx, ebx
sub esi, ecx
lea eax, [esi + ecx]
cmp eax, 0x100
jae 0x10081085
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
cmp byte [ecx], 0
jne 0x10081002
jmp 0x10081085
mov ecx, esi
call fcn.10059490
jmp 0x10081048
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [esi + 4], 0xffffffff
mov byte [esi], 0
jmp 0x10081048
push 0x67
push str.F:DcRatReleaseClientsFolder53D8A75F25210EE3455A_fastdsoundconnection_win.cpp
push str.self
call ebx
add esp, 0xc
mov eax, dword [edi]
cmp byte [eax], 0
jne 0x100810c1
lea ebx, [edi + 0x54]
mov dword [edi + 0x50], 1
mov ecx, str.Pipe_closed
mov esi, 1
mov edx, ebx
sub esi, ecx
nop word [eax + eax]
lea eax, [esi + ecx]
cmp eax, 0x100
jae 0x10081085
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
cmp byte [ecx], 0
jne 0x10081070
mov byte [edx], 0
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x100810a5
mov eax, dword [edi + 4]
cmp eax, 3
je 0x1008109c
cmp eax, 1
jne 0x100810a5
push ebx
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 [esp + 0x10024]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101d9510
mov esp, ebp
pop ebp
ret 4