Function at 0x100394f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008414e
mov eax, dword fs:[0]
push eax
sub esp, 0x24
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 edi, edx
mov dword [ebp - 0x2c], edi
pushal
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push str..pipeMyDbg
lea ecx, [ebp - 0x28]
mov ebx, eax
call fcn.10022bb0
mov dword [ebp - 4], 0
mov ecx, dword [0x100b0fd8]
test ecx, ecx
jne 0x1003962c
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ecx
push ecx
push 3
push ecx
push ecx
push 0x40000000
push dword [ebp - 0x28]
call edi
mov dword [0x100b0fd8], eax
call esi
mov ecx, eax
mov eax, dword [0x100b0fd8]
cmp eax, 0xffffffff
jne 0x1003960d
cmp ecx, 0xe7
jne 0x10039608
push 0xbb8
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x100395b6
push 0
push SysReAllocStringLen
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 0x28]
call edi
mov dword [0x100b0fd8], eax
jmp 0x100395bb
mov eax, dword [0x100b0fd8]
cmp eax, 0xffffffff
jne 0x1003960d
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
popal
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100395ec
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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
cmp ecx, 2
jne 0x100395c0
push 0
push 0
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
mov ecx, dword [0x100b0fd8]
mov edi, dword [ebp - 0x2c]
cmp ecx, 0xffffffff
je 0x100395c0
mov eax, dword [0x100b3200]
mov dword [ebp - 0x30], 0
test al, 1
jne 0x10039677
or eax, 1
mov dword [0x100b3200], eax
push ecx
mov ecx, esp
mov byte [ebp - 4], 1
mov esi, 0x5c
call fcn.1003a230
mov edx, esi
mov ecx, 0x100b31f4
call fcn.1003a890
push 0x10088340
call fcn.1006ad6f
add esp, 8
mov byte [ebp - 4], 0
xor eax, eax
xorps xmm0, xmm0
mov word [ebp - 0x20], ax
mov dword [ebp - 0x16], eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x20]
push eax
movq qword [ebp - 0x1e], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx eax, word [ebp - 0x12]
push edi
push eax
movzx eax, word [ebp - 0x14]
push eax
movzx eax, word [ebp - 0x16]
push eax
movzx eax, word [ebp - 0x18]
push eax
push dword [0x100b31f4]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x24]
push str._PID_d_TID_d___s:__02d:_02d:_02d._03d:__s
push eax
call fcn.1003a800
add esp, 0x28
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x24]
cmp dword [eax - 4], 1
mov esi, dword [eax - 0xc]
jle 0x100396ec
push esi
lea ecx, [ebp - 0x24]
call fcn.100235f0
mov eax, dword [ebp - 0x24]
push 0
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [esi*2 + 2]
push ecx
push eax
push dword [0x100b0fd8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x24]
push dword [eax - 8]
push eax
call fcn.1006b17d
mov edx, eax
add esp, 8
test edx, edx
js 0x10039759
mov ecx, dword [ebp - 0x24]
cmp edx, dword [ecx - 8]
jg 0x10039759
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], cl
mov word [eax + edx*2], cx
or ecx, 0xffffffff
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100395c0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x100395c0
push 0x80070057
call fcn.10021340
int3