Function at 0x450ef0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1180
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x53e01c]
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 - 0x234], edx
mov esi, ecx
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x238], eax
test esi, esi
je 0x4512ae
cmp word [esi], 0
je 0x4512ae
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.004beec0
add esp, 0xc
lea eax, [ebp - 0x21c]
push esi
push str..pipe_s
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 0
add esp, 0xc
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x284]
call fcn.00450660
push 0
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0
push eax
push 1
push str.S:_ML__NW___LW_
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x228], 0
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x45105b
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorSacl]
push dword [ebp - 0x220]
lea ecx, [ebp - 0x25c]
call fcn.004512d0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 0x10]
push 1
lea eax, [ebp - 0x27c]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
mov eax, dword [ebp - 0x284]
test eax, eax
je 0x45108f
push 0
push eax
push 1
lea eax, [ebp - 0x27c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov eax, dword [ebp - 0x280]
test eax, eax
je 0x4510ab
push 0
push eax
push 1
lea eax, [ebp - 0x27c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorSacl]
push 0
push 0x80
lea eax, [ebp - 0x27c]
mov dword [ebp - 0x268], 0xc
push 3
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x268]
push eax
push 0
push 0xc0000000
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x260], 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x224], eax
cmp eax, 0xffffffff
jne 0x451181
call ebx
cmp eax, 0xe7
jne 0x451137
push 0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x451064
test esi, esi
je 0x451155
mov edx, 0xe7
mov ecx, str.WaitRetry
dec esi
call fcn.004507b0
jmp 0x451064
test esi, esi
je 0x451161
mov edx, eax
mov ecx, str.CreateRetry
dec esi
call fcn.004507b0
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x451064
mov ecx, str.WaitEnd
mov eax, 0xe7
jmp 0x451166
mov ecx, str.CreateEnd
mov edx, eax
call fcn.004507b0
lea ecx, [ebp - 0x284]
xor esi, esi
call fcn.004505b0
mov eax, esi
jmp 0x4512b0
lea eax, [edi + 8]
mov dword [ebp - 0x22c], 0
push eax
call fcn.0045be1f
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x45116d
mov eax, dword [ebp - 0x234]
mov dword [ebx], eax
mov eax, dword [ebp - 0x238]
test eax, eax
jne 0x4511ce
mov dword [ebp - 0x230], eax
mov dword [ebx + 4], eax
mov dword [ebp - 0x228], 8
mov dword [ebp - 0x220], 8
jmp 0x451200
push edi
push eax
lea eax, [ebx + 8]
mov dword [ebx + 4], edi
push eax
call fcn.004bf020
lea ecx, [edi + 8]
add esp, 0xc
mov eax, ecx
mov dword [ebp - 0x228], ecx
xor esi, esi
mov dword [ebp - 0x220], eax
test eax, eax
je 0x451279
mov eax, dword [ebp - 0x230]
xor edi, edi
xor esi, esi
push 0
sub eax, esi
lea ecx, [ebp - 0x22c]
push ecx
add eax, 8
push eax
lea eax, [esi + ebx]
push eax
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x22c]
test eax, eax
jne 0x451255
mov eax, edi
inc edi
cmp eax, 3
jg 0x451267
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, str.WriteFileRetry
call fcn.004507b0
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x22c]
add esi, eax
cmp esi, dword [ebp - 0x220]
jae 0x451279
mov eax, dword [ebp - 0x230]
jmp 0x451204
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, str.WriteFileEnd
call fcn.004507b0
push ebx
call fcn.0045bb52
add esp, 4
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x228], esi
jne 0x45116d
lea ecx, [ebp - 0x284]
mov esi, 1
call fcn.004505b0
mov eax, esi
jmp 0x4512b0
xor eax, eax
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.0045b5b0
mov esp, ebp
pop ebp
ret