Function at 0x4da660
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5687a0
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x5bf500]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
push ecx
push str..pipe_s
push 0x104
lea eax, [ebp - 0x21c]
push eax
call fcn.0051f5fe
add esp, 0x10
mov byte [ebp - 0x21d], 0
mov ebx, dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
lea ecx, [ebp - 0x234]
call fcn.004e7480
lea esi, [ebp - 0x234]
xor ecx, ecx
test al, al
cmove esi, ecx
mov byte [ebp - 0x21e], cl
lea ecx, [ebp - 0x21e]
call fcn.004e7080
push 0
push 0
push 3
push esi
push 0
push 0xc0000000
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.004e7380
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test esi, esi
je 0x4da939
cmp esi, 0xffffffff
je 0x4da939
cmp byte [ebp - 0x21d], 0
jne 0x4da95c
mov dword [ebp - 0x244], 2
push 0
push 0
lea eax, [ebp - 0x244]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x4da80a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4da78e
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x224], esp
push str.ERROR_____:_4.1.47_:_SendNamedPipeMsg_..dll_asodll.cpp:587__:_CloseHandle_failed_r_n
call fcn.004025d0
mov byte [ebp - 4], 6
mov byte [ebp - 4], 1
call fcn.004d8e60
add esp, 0x18
push str.ERROR_____:_4.1.47_:_SendNamedPipeMsg_..dll_asodll.cpp:588__:_SendNamedPipeMsg_error19_r_n
lea ecx, [ebp - 0x25c]
call fcn.004025d0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x248], 0x10
jb 0x4da7b9
push dword [ebp - 0x25c]
call fcn.00443e80
add esp, 4
mov dword [ebp - 0x248], 0xf
mov dword [ebp - 0x24c], 0
mov byte [ebp - 0x25c], 0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], 8
jb 0x4da7ec
push dword [ebp + 8]
call fcn.00443e80
add esp, 4
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], 0
xor eax, eax
mov word [ebp + 8], ax
mov eax, 0x13
jmp 0x4daa9a
mov eax, dword [ebp + 0x18]
lea edi, [eax*2 + 2]
mov dword [ebp - 0x228], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push 0
lea ecx, [ebp - 0x228]
push ecx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4da88d
cmp edi, dword [ebp - 0x228]
jne 0x4da88d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4da877
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x224], esp
push str.ERROR_____:_4.1.47_:_SendNamedPipeMsg_..dll_asodll.cpp:606__:_CloseHandle_failed_r_n
call fcn.004025d0
mov byte [ebp - 4], 0xc
mov byte [ebp - 4], 1
call fcn.004d8e60
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004040c0
xor eax, eax
jmp 0x4daa9a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4da8bd
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x224], esp
push str.ERROR_____:_4.1.47_:_SendNamedPipeMsg_..dll_asodll.cpp:602__:_CloseHandle_failed_r_n
call fcn.004025d0
mov byte [ebp - 4], 9
mov byte [ebp - 4], 1
call fcn.004d8e60
add esp, 0x18
push str.ERROR_____:_4.1.47_:_SendNamedPipeMsg_..dll_asodll.cpp:603__:_SendNamedPipeMsg_error20_r_n
lea ecx, [ebp - 0x28c]
call fcn.004025d0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x278], 0x10
jb 0x4da8e8
push dword [ebp - 0x28c]
call fcn.00443e80
add esp, 4
mov dword [ebp - 0x278], 0xf
mov dword [ebp - 0x27c], 0
mov byte [ebp - 0x28c], 0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], 8
jb 0x4da91b
push dword [ebp + 8]
call fcn.00443e80
add esp, 4
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], 0
xor eax, eax
mov word [ebp + 8], ax
mov eax, 0x14
jmp 0x4daa9a
cmp edi, 0xe7
jne 0x4da957
push 0x1388
lea eax, [ebp - 0x21c]
push eax
call ebx
test eax, eax
jne 0x4da6c3
cmp esi, 0xffffffff
je 0x4da9b1
test esi, esi
je 0x4da9b1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4da9b1
push str.ERROR_____:_4.1.47_:_SendNamedPipeMsg_..dll_asodll.cpp:574__:_CloseHandle_failed_r_n
lea ecx, [ebp - 0x274]
call fcn.004025d0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x260], 0x10
jb 0x4da996
push dword [ebp - 0x274]
call fcn.00443e80
add esp, 4
mov dword [ebp - 0x260], 0xf
mov dword [ebp - 0x264], 0
mov byte [ebp - 0x274], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x22c], 0xf
mov dword [ebp - 0x230], 0
mov byte [ebp - 0x240], 0
push 0x19
push str.SendNamedPipeMsg_error18
lea ecx, [ebp - 0x240]
call fcn.004027f0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x22c], 0x10
jb 0x4daa0d
push dword [ebp - 0x240]
call fcn.00443e80
add esp, 4
mov dword [ebp - 0x22c], 0xf
mov dword [ebp - 0x230], 0
mov byte [ebp - 0x240], 0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], 8
jb 0x4daa40
push dword [ebp + 8]
call fcn.00443e80
add esp, 4
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], 0
xor eax, eax
mov word [ebp + 8], ax
mov eax, 0x12
jmp 0x4daa9a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0051ece9
mov esp, ebp
pop ebp
ret