Function at 0x100435e0
Capabilities:
Check if file exists
Read file via mapping
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10085029
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x38], 0
push 0xffffffffffffffff
push eax
mov dword [ebp - 4], 1
lea eax, [ebp - 0x24]
push dword [ebp + 8]
push str.PipeIpcClient__s___d_:_hPipe0x_x
push eax
call fcn.1003a800
add esp, 0x14
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x24]
call fcn.100394f0
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov edx, dword [ebp - 0x24]
mov eax, edi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x10043670
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push 0x1008fa88
mov ecx, esi
mov dword [ebx], 0xffffffff
call fcn.10023530
lea eax, [ebp + 8]
mov edx, str.Global_
push eax
lea ecx, [ebp - 0x60]
call fcn.10022f40
add esp, 4
mov byte [ebp - 4], 3
push dword [eax]
lea eax, [ebp - 0x48]
mov dword [ebp - 0x38], 1
push str..pipe_s
push eax
call fcn.1003a800
add esp, 0xc
mov dword [ebp - 4], 7
mov ecx, edi
mov edx, dword [ebp - 0x60]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100436d9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
push esi
push esi
push 3
push esi
push esi
push 0x40000000
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
jne 0x100437f8
call ebx
mov dword [ebp - 0x38], eax
call ebx
cmp eax, 2
jne 0x10043759
inc esi
lea eax, [ebp - 0x24]
push esi
push str.PipeIpcClient:_CreateFile.NotFoundRetry__d
push eax
call fcn.1003a800
add esp, 0xc
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x24]
call fcn.100394f0
mov byte [ebp - 4], 7
mov ecx, edi
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1004374c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 6
jl 0x100437d4
mov eax, dword [ebp - 0x38]
cmp eax, 0xe7
jne 0x100438d0
push 0xbb8
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x100437d4
call ebx
cmp eax, 2
jne 0x100438b1
inc esi
lea eax, [ebp - 0x34]
push esi
push str.PipeIpcClient:_WaitNamedPipe.NotFoundRetry__d
push eax
call fcn.1003a800
add esp, 0xc
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x34]
call fcn.100394f0
mov byte [ebp - 4], 7
mov ecx, edi
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100437c3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 6
jge 0x100438b1
push 0
push 0
push 3
push 0
push 0
push 0x40000000
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
je 0x10043701
push 0
push 0
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x54], 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
xor eax, eax
lea ecx, [ebp - 0x3c]
push 0x1008fa88
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x5c], eax
call fcn.10022bb0
xor esi, esi
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x38], esi
cmp dword [ebp + 0x10], esi
je 0x10043989
call fcn.1006d375
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x28]
push str._s._d._d._x
push eax
call fcn.1003a800
add esp, 0x18
mov byte [ebp - 4], 0xd
mov edx, dword [eax]
mov esi, dword [ebp - 0x3c]
add esi, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x10043921
cmp dword [esi + 0xc], 0
jl 0x10043915
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x10043915
call fcn.100236e0
mov dword [ebp - 0x38], eax
lea edx, [esi + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100438a9
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x38]
add eax, 0x10
mov dword [ebp - 0x3c], eax
jmp 0x10043921
call ebx
push eax
push 0xe7
lea eax, [ebp - 0x24]
push str.PipeIpcClient:_failed_waiting_for_pipe__Err_d__WaitNamedPipe.LE_d
push eax
call fcn.1003a800
add esp, 0x10
mov byte [ebp - 4], 0xb
jmp 0x100438e6
push eax
lea eax, [ebp - 0x24]
push str.PipeIpcClient:_error_opening_pipe__Err_d
push eax
call fcn.1003a800
add esp, 0xc
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x24]
call fcn.100394f0
mov byte [ebp - 4], 7
mov ecx, edi
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x1004390e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor ebx, ebx
jmp 0x10043dd4
push dword [edx - 0xc]
lea ecx, [ebp - 0x3c]
push edx
call fcn.10023530
mov byte [ebp - 4], 0xc
mov ecx, edi
mov esi, dword [ebp - 0x28]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10043941
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x3c]
mov edx, str.Global_
push eax
lea ecx, [ebp - 0x58]
call fcn.10022f40
add esp, 4
push dword [eax]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
mov edx, edi
mov eax, dword [ebp - 0x58]
add eax, 0xfffffff0
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x28], eax
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10043989
mov ecx, dword [eax]
push dword [ebp - 0x28]
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp + 0xc]
lea eax, [ebp - 0x40]
push dword [ebp - 0x3c]
push dword [ebp - 0x2c]
push str._d_s_s
push eax
call fcn.1003a800
add esp, 0x14
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x40]
cmp dword [eax - 4], 1
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x2c], ecx
jle 0x100439c5
push ecx
lea ecx, [ebp - 0x40]
call fcn.100235f0
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x2c]
push 0
lea edx, [ebp - 0x5c]
push edx
lea ecx, [ecx*2 + 2]
push ecx
push eax
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x2c], eax
push dword [ecx - 8]
push ecx
call fcn.1006b17d
mov edx, eax
add esp, 8
test edx, edx
js 0x10043e53
mov ecx, dword [ebp - 0x40]
cmp edx, dword [ecx - 8]
jg 0x10043e53
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x40]
mov word [eax + edx*2], cx
cmp dword [ebp - 0x2c], ecx
jne 0x10043a70
test esi, esi
je 0x10043a21
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push eax
lea eax, [ebp - 0x24]
push str.PipeIpcClient:_WriteFile_hPipe__failed__LE_d
push eax
call fcn.1003a800
add esp, 0xc
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x24]
call fcn.100394f0
mov byte [ebp - 4], 0xe
mov ecx, edi
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10043a61
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
jmp 0x10043d94
push ecx
mov eax, esp
test esi, esi
je 0x10043d6f
push str.PipeIpcClient:_waiting_for_reply
push eax
call fcn.1003a800
add esp, 8
call fcn.10021810
add esp, 4
push dword [ebp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10043d5f
push ecx
mov eax, esp
push str.PipeIpcClient:_reply_received
push eax
call fcn.1003a800
add esp, 8
call fcn.10021810
add esp, 4
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x2c]
push str..ReplyMap
call fcn.10022e60
add esp, 4
push dword [eax]
push 0
push 5
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov esi, eax
mov edx, edi
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x28], eax
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10043b01
mov ecx, dword [eax]
push dword [ebp - 0x28]
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x10043bec
push ecx
mov eax, esp
push str.PipeIpcClient:_reply_map_opened
push eax
call fcn.1003a800
add esp, 8
call fcn.10021810
add esp, 4
mov dword [ebp - 0x20], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
push str.NtQuerySection
push 0x10093064
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push ecx
push 0x10
lea ecx, [ebp - 0x20]
push ecx
push 0
push esi
call eax
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x10043bd6
push 0x7c
push ebx
call fcn.1006ade1
add esp, 8
mov esi, eax
call fcn.10021470
mov ecx, esi
sub ecx, ebx
push eax
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x34]
call fcn.10023460
mov byte [ebp - 4], 0x10
push dword [ebp - 0x34]
call fcn.1006b9d4
mov edx, dword [ebp - 0x4c]
add esp, 4
mov ecx, dword [ebp - 0x50]
mov dword [edx], eax
lea eax, [esi + 2]
push eax
call fcn.10029340
push ebx
mov dword [ebp - 0x24], 1
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea ecx, [ebp - 0x34]
call fcn.10022680
mov esi, dword [ebp - 0x30]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x38]
call esi
mov ebx, dword [ebp - 0x24]
jmp 0x10043d90
call ebx
push ecx
mov ecx, esp
push eax
push str.PipeIpcClient:_cannot_open_reply_map__LE_d___trying_through_filesystem
push ecx
call fcn.1003a800
add esp, 0xc
call fcn.10021810
add esp, 4
lea ecx, [ebp - 0x30]
call fcn.10022b60
push ecx
mov byte [ebp - 4], 0x11
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0x1008fa70
call fcn.10022bb0
push ecx
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x3c]
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
mov edx, str.RapDataIpcAppServer_
call fcn.10022f40
mov ecx, esp
mov byte [ebp - 4], 0x13
call fcn.1003da80
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x11
call fcn.1003a550
mov byte [ebp - 4], 0x14
add esp, 8
mov ecx, dword [ebp - 0x34]
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.100236e0
add eax, 0x10
lea ecx, [ebp - 0x30]
mov dword [esi], eax
call fcn.1003afb0
add esp, 4
test eax, eax
je 0x10043d33
push ecx
mov ecx, dword [ebp - 0x34]
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.100236e0
add eax, 0x10
mov dword [esi], eax
call fcn.1003c4e0
mov esi, dword [ebp - 0x30]
add esp, 4
cmp dword [esi - 0xc], 0
jg 0x10043ca8
or ebx, 0xffffffff
jmp 0x10043cc2
push 0x7c
push esi
call fcn.1006ade1
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10043cbe
or ebx, 0xffffffff
jmp 0x10043cc2
sub ebx, esi
sar ebx, 1
call fcn.10021470
push eax
push ebx
push esi
lea ecx, [ebp - 0x28]
call fcn.10023460
mov byte [ebp - 4], 0x15
push dword [ebp - 0x28]
call fcn.1006b9d4
mov esi, dword [ebp - 0x4c]
lea ecx, [ebp - 0x30]
add esp, 4
mov dword [esi], eax
lea eax, [ebx + 1]
push eax
push 0
call fcn.10022cf0
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x50]
mov ecx, ebx
push dword [eax - 0xc]
push eax
call fcn.10029530
push ecx
mov eax, esp
push dword [ebx]
push dword [esi]
push str.PipeIpcClient:_filesystem_data:_RetCode_d__RetMsg_s
push eax
call fcn.1003a800
add esp, 0x10
call fcn.10021810
add esp, 4
mov dword [ebp - 0x24], 1
lea ecx, [ebp - 0x28]
call fcn.10022680
jmp 0x10043d4f
call ebx
push ecx
mov ecx, esp
push eax
push str.PipeIpcClient:_failed_through_filesystem_too__LE_d
push ecx
call fcn.1003a800
add esp, 0xc
call fcn.10021810
add esp, 4
lea ecx, [ebp - 0x34]
call fcn.10022680
lea ecx, [ebp - 0x30]
call fcn.10022680
push dword [ebp - 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov ebx, dword [ebp - 0x24]
jmp 0x10043d90
push str._PipeIpcClient:_FAILED_waiting_for_reply
push eax
call fcn.1003a800
add esp, 8
call fcn.10021810
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
mov ebx, 1
push 0xffffffffffffffff
call esi
mov byte [ebp - 4], 0xc
mov ecx, edi
mov edx, dword [ebp - 0x40]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10043db4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov ecx, edi
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10043dd4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov ecx, edi
mov edx, dword [ebp - 0x48]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10043df4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov ecx, edi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10043e14
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 0xc]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x10043e35
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006abfd
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.10021340
int3