Function at 0x10001a78
Capabilities:
Write file on windows

Disassembly:
jmp 0x100c192f
push ebp
lea ebp, [esp - 0x3b8]
sub esp, 0x438
mov eax, dword [0x101844f8]
xor eax, ebp
mov dword [ebp + 0x3b4], eax
mov eax, dword [ebp + 0x3c4]
and dword [ebp - 0x80], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 0x3c0]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x3cc]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x3d0]
mov esi, dword [edi + 8]
push 0x1018a760
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x64], esi
call sym.CoreFoundation.dll___CFSpinLock
mov eax, dword [0x1018a764]
xor ebx, ebx
mov dword [ebp - 0x78], ebx
pop ecx
test eax, eax
je 0x100c19a2
push esi
push eax
call sym.CoreFoundation.dll_CFDictionaryGetValue
pop ecx
pop ecx
mov ebx, eax
mov dword [ebp - 0x78], eax
push 0x1018a760
call sym.CoreFoundation.dll___CFSpinUnlock
mov eax, dword [ebp - 0x68]
and eax, 1
mov dword [ebp - 0x70], eax
pop ecx
test ebx, ebx
jne 0x100c1a41
call sym.CoreFoundation.dll__CFGetProgname
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call sym.CoreFoundation.dll_CFRunLoopGetCurrent
push eax
push str._p__d___s_
call sym.CoreFoundation.dll___CFStringMakeConstantString
pop ecx
push eax
push ebx
push ebx
call sym.CoreFoundation.dll_CFStringCreateWithFormat
add esp, 0x18
mov edi, eax
cmp dword [ebp - 0x70], ebx
mov ecx, str.receive
mov eax, str.send
cmove eax, ecx
push eax
push str.In_the_middle_of_windows_msg_to__s_a_message__I_had_an_invalid_pipe_n
call sym.CoreFoundation.dll___CFStringMakeConstantString
pop ecx
push eax
push ebx
push ebx
call sym.CoreFoundation.dll_CFStringCreateWithFormat
add esp, 0x10
mov esi, eax
push esi
push edi
push 0x1014c48c
call sym.CoreFoundation.dll___CFStringMakeConstantString
pop ecx
push eax
push 4
call sym.CoreFoundation.dll_CFLog
push edi
call sym.CoreFoundation.dll_CFRelease
push esi
call sym.CoreFoundation.dll_CFRelease
add esp, 0x18
mov eax, 0x10000004
jmp 0x100c22c5
push 0x600
push 0x400
lea eax, [ebp - 0x4c]
push eax
push dword [ebx + 0x10]
call sym.CoreFoundation.dll_CFStringGetCString
add esp, 0x10
cmp dword [ebp - 0x70], 0
je 0x100c22e3
cmp dword [0x1018a770], 0
je 0x100c1ae7
call sym.CoreFoundation.dll__CFGetProgname
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call sym.CoreFoundation.dll_CFRunLoopGetCurrent
push eax
push str._p__d___s_
call sym.CoreFoundation.dll___CFStringMakeConstantString
pop ecx
push eax
push 0
push 0
call sym.CoreFoundation.dll_CFStringCreateWithFormat
add esp, 0x18
mov edi, eax
lea eax, [ebp - 0x4c]
push eax
push esi
mov esi, dword [ebp - 0x60]
push dword [esi + 4]
push str.windows_msg_sending__d_bytes_to_pipe__x__named__s_
call sym.CoreFoundation.dll___CFStringMakeConstantString
pop ecx
push eax
push 0
push 0
call sym.CoreFoundation.dll_CFStringCreateWithFormat
add esp, 0x18
mov esi, eax
push esi
push edi
push 0x1014c48c
call sym.CoreFoundation.dll___CFStringMakeConstantString
pop ecx
push eax
push 7
call sym.CoreFoundation.dll_CFLog
push edi
call sym.CoreFoundation.dll_CFRelease
push esi
call sym.CoreFoundation.dll_CFRelease
mov edi, dword [ebp - 0x60]
add esp, 0x18
xor esi, esi
cmp dword [edi], esi
jge 0x100c1cbd
lea esi, [edi + 0x28]
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
push eax
push 0x1014c308
push 0x10
push esi
call fcn.10002a4a
add esp, 0x10
cmp dword [0x1018a770], 0
je 0x100c1b84
call sym.CoreFoundation.dll__CFGetProgname
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call sym.CoreFoundation.dll_CFRunLoopGetCurrent
push eax
push str._p__d___s_
call sym.CoreFoundation.dll___CFStringMakeConstantString
pop ecx
push eax
push 0
push 0
call sym.CoreFoundation.dll_CFStringCreateWithFormat
add esp, 0x18
mov edi, eax
push esi
push str.Creating_a_OOL_file_with_name__s
call sym.CoreFoundation.dll___CFStringMakeConstantString
pop ecx
push eax
push 0
push 0
call sym.CoreFoundation.dll_CFStringCreateWithFormat
add esp, 0x10
mov esi, eax
push esi
push edi
push 0x1014c48c
call sym.CoreFoundation.dll___CFStringMakeConstantString
pop ecx
push eax
push 7
call sym.CoreFoundation.dll_CFLog
push edi
call sym.CoreFoundation.dll_CFRelease
push esi
call sym.CoreFoundation.dll_CFRelease
mov edi, dword [ebp - 0x60]
add esp, 0x18
call fcn.100c0c8b
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
pop ecx
lea esi, [eax + 0x11]
mov eax, esi
call fcn.1000333c
lea eax, [edi + 0x28]
mov dword [ebp - 0x78], esp
push eax
call fcn.100c0c8b
push eax
push str._s_s
push esi
mov esi, dword [ebp - 0x78]
push esi
call fcn.10002a4a
add esp, 0x14
push 0
push 0x100
push 2
push 0
push 5
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x78], eax
cmp eax, 0xffffffff
jne 0x100c1c57
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call sym.CoreFoundation.dll__CFGetProgname
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call sym.CoreFoundation.dll_CFRunLoopGetCurrent
push eax
push str._p__d___s_
call sym.CoreFoundation.dll___CFStringMakeConstantString
pop ecx
push eax
push 0
push 0
call sym.CoreFoundation.dll_CFStringCreateWithFormat
add esp, 0x18
push ebx
push esi
push str.windows_msg___Error_creating_out_of_line_file_at__s:__d_n
mov edi, eax
call sym.CoreFoundation.dll___CFStringMakeConstantString
pop ecx
push eax
push 0
push 0
call sym.CoreFoundation.dll_CFStringCreateWithFormat
add esp, 0x14
mov esi, eax
push esi
push edi
push 0x1014c48c
call sym.CoreFoundation.dll___CFStringMakeConstantString
pop ecx
push eax
push 4
call sym.CoreFoundation.dll_CFLog
push edi
call sym.CoreFoundation.dll_CFRelease
push esi
call sym.CoreFoundation.dll_CFRelease
add esp, 0x18
mov eax, ebx
jmp 0x100c22c5
and dword [ebp - 0x50], 0
lea ecx, [ebp - 0x50]
push 0
push ecx
push dword [edi + 0x1c]
push dword [edi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100c1cb2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call sym.CoreFoundation.dll__CFGetProgname
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call sym.CoreFoundation.dll_CFRunLoopGetCurrent
push eax
push str._p__d___s_
call sym.CoreFoundation.dll___CFStringMakeConstantString
pop ecx
push eax
push 0
push 0
call sym.CoreFoundation.dll_CFStringCreateWithFormat
add esp, 0x18
push ebx
push esi
push str.windows_msg___Error_writing_to_out_of_line_file_at__s:__d_n
jmp 0x100c1c15
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
cmp dword [0x1018a770], 0
je 0x100c1d38
call sym.CoreFoundation.dll__CFGetProgname
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call sym.CoreFoundation.dll_CFRunLoopGetCurrent
push eax
push str._p__d___s_
call sym.CoreFoundation.dll___CFStringMakeConstantString
pop ecx
push eax
push esi
push esi
call sym.CoreFoundation.dll_CFStringCreateWithFormat
add esp, 0x18
mov edi, eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x64]
push str.windows_msg_pipe__x_about_to_get_write_lock_for_write__pipe_name__s_
call sym.CoreFoundation.dll___CFStringMakeConstantString
pop ecx
push eax
push esi
push esi
call sym.CoreFoundation.dll_CFStringCreateWithFormat
add esp, 0x14
mov esi, eax
push esi
push edi
push 0x1014c48c
call sym.CoreFoundation.dll___CFStringMakeConstantString
pop ecx
push eax
push 7
call sym.CoreFoundation.dll_CFLog
push edi
call sym.CoreFoundation.dll_CFRelease
push esi
call sym.CoreFoundation.dll_CFRelease
mov edi, dword [ebp - 0x60]
add esp, 0x18
lea eax, [ebx + 0x54]
push eax
mov dword [ebp - 0x58], eax
call sym.CoreFoundation.dll___CFSpinLock
mov esi, dword [ebp - 0x64]
lea eax, [ebx + 0x1c]
pop ecx
push eax
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x50]
push eax
push dword [edi + 4]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100c22b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x70], eax
cmp eax, 0xe8
jne 0x100c1e35
push 0xa
pop ebx
mov eax, ebx
dec ebx
test eax, eax
jle 0x100c22b9
cmp dword [0x1018a770], 0
je 0x100c1dfd
call sym.CoreFoundation.dll__CFGetProgname
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call sym.CoreFoundation.dll_CFRunLoopGetCurrent
push eax
push str._p__d___s_
call sym.CoreFoundation.dll___CFStringMakeConstantString
pop ecx
push eax
xor esi, esi
push esi
push esi
call sym.CoreFoundation.dll_CFStringCreateWithFormat
push str.This_is_CFWindowsNamedPipe_attempting_to_resend_data_on_the_first_write_to_a_pipe
mov edi, eax
call sym.CoreFoundation.dll___CFStringMakeConstantString
push eax
push esi
push esi
call sym.CoreFoundation.dll_CFStringCreateWithFormat
add esp, 0x28
mov esi, eax
push esi
push edi
push 0x1014c48c
call sym.CoreFoundation.dll___CFStringMakeConstantString
pop ecx
push eax
push 7
call sym.CoreFoundation.dll_CFLog
push edi
call sym.CoreFoundation.dll_CFRelease
push esi
call sym.CoreFoundation.dll_CFRelease
mov edi, dword [ebp - 0x60]
add esp, 0x18
mov esi, dword [ebp - 0x64]
push 0x64
invalid
invalid
add byte [eax], al