Function at 0x4a96b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e8488
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x50b0b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push str.25521814
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x50], esi
push eax
call fcn.004017f0
add esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0x48], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4a9713
cmp byte [eax], 0
jne 0x4a98aa
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x48]
push 0
push ecx
push dword [ebp - 0x18]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4a9759
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
cmp ecx, 0xe9
je 0x4a974f
cmp ecx, 0x3e5
jne 0x4a9890
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4a9703
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x18]
cmp ecx, eax
je 0x4a98af
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
ja 0x4a990f
sub eax, ecx
or edi, 0xffffffff
cmp eax, 0xffffffff
cmovb edi, eax
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
add eax, ecx
mov dword [ebp - 0x4c], eax
cmp edi, 0xf
ja 0x4a97b0
push edi
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x30], edi
push eax
call fcn.004c1b40
mov byte [ebp + edi - 0x40], 0
jmp 0x4a9842
cmp edi, 0x7fffffff
ja 0x4a990a
mov esi, edi
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x4a97d3
mov esi, SysReAllocString
lea ecx, [esi + 0x24]
jmp 0x4a97f3
cmp esi, 0x16
mov eax, 0x16
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x1000
jb 0x4a9811
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4a9905
push ecx
call fcn.004bf24b
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4a9914
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x4a9822
test eax, eax
je 0x4a9820
push eax
call fcn.004bf24b
add esp, 4
jmp 0x4a9822
xor eax, eax
push edi
push dword [ebp - 0x4c]
mov dword [ebp - 0x44], eax
push eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], esi
call fcn.004c15c0
mov eax, dword [ebp - 0x44]
mov esi, dword [ebp - 0x50]
mov dword [ebp - 0x40], eax
mov byte [eax + edi], 0
mov edx, dword [ebp - 0x14]
add esp, 0xc
cmp edx, 0x10
jb 0x4a9879
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4a986f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a9914
push edx
push ecx
call fcn.004bf27b
add esp, 8
movups xmm0, xmmword [ebp - 0x40]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [ebp - 0x30]
movq qword [ebp - 0x18], xmm0
jmp 0x4a9703
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
push str.failed_to_write_named_pipe:__s___u_n
call fcn.004a9920
add esp, 0xc
or esi, 0xffffffff
jmp 0x4a98b8
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
xor esi, esi
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4a98e8
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4a98de
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a9914
push edx
push ecx
call fcn.004bf27b
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bf6e8
mov esp, ebp
pop ebp
ret
call fcn.0040ad80
call fcn.0040aed0
call fcn.0040aee0
call fcn.004c4b9a
int3