Function at 0x10043b30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10120efe
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x1016e750]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x18], edi
pushal
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push str..pipeMyDbg
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x20], eax
call fcn.10023fc0
mov dword [ebp - 4], 0
mov ecx, dword [0x101726e4]
test ecx, ecx
jne 0x10043c60
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ecx
push ecx
push 3
push ecx
push ecx
push 0x40000000
push dword [ebp - 0x14]
call edi
mov dword [0x101726e4], eax
call esi
mov ecx, eax
mov eax, dword [0x101726e4]
cmp eax, 0xffffffff
jne 0x10043c41
cmp ecx, 0xe7
jne 0x10043c3c
push 0xbb8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x10043bf2
push 0
push SysReAllocStringLen
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 0x14]
call edi
mov dword [0x101726e4], eax
jmp 0x10043bf7
mov eax, dword [0x101726e4]
cmp eax, 0xffffffff
jne 0x10043c41
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_SetLastError]
popal
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10043c2a
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 esp, ebp
pop ebp
ret
cmp ecx, 2
jne 0x10043bfc
push 0
push 0
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
mov ecx, dword [0x101726e4]
mov edi, dword [ebp - 0x18]
cmp ecx, 0xffffffff
je 0x10043bfc
mov eax, dword [0x101759b0]
mov dword [ebp - 0x1c], 0
test al, 1
jne 0x10043cab
or eax, 1
mov dword [0x101759b0], eax
push ecx
mov ecx, esp
mov byte [ebp - 4], 1
mov esi, 0x5c
call fcn.100446a0
mov edx, esi
mov ecx, 0x101759ac
call fcn.10045200
push 0x10127580
call fcn.10103a78
add esp, 8
mov byte [ebp - 4], 0
push ebx
push edi
push dword [0x101759ac]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x10]
push str.PID_d:TID_d:_dms:_s:_s:_s
push eax
call fcn.10044f30
add esp, 0x20
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
mov esi, dword [eax - 0xc]
jle 0x10043cf5
push esi
lea ecx, [ebp - 0x10]
call fcn.10024570
mov eax, dword [ebp - 0x10]
push 0
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [esi*2 + 2]
push ecx
push eax
push dword [0x101726e4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x10]
push dword [eax - 8]
push eax
call fcn.1010374b
mov edx, eax
add esp, 8
test edx, edx
js 0x10043d62
mov ecx, dword [ebp - 0x10]
cmp edx, dword [ecx - 8]
jg 0x10043d62
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], cl
mov word [eax + edx*2], cx
or ecx, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10043bfc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10043bfc
push 0x80070057
call fcn.100223c0
int3