Function at 0x4a99a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7848
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x50a0b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push str.25521814
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x4c], ebx
push eax
call fcn.004017f0
add esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0x44], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4a9a04
cmp byte [eax], 0
jne 0x4a9b9e
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x44]
push 0
push ecx
push dword [ebp - 0x18]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4a9a4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
cmp ecx, 0xe9
je 0x4a9a40
cmp ecx, 0x3e5
jne 0x4a9b84
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4a99f4
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x18]
cmp ecx, eax
je 0x4a9ba3
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
ja 0x4a9c04
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 - 0x48], eax
cmp edi, 0xf
ja 0x4a9aaa
push edi
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x30], edi
push eax
call fcn.004c1c80
mov byte [ebp + edi - 0x40], 0
mov esi, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x40]
jmp 0x4a9b2a
cmp edi, 0x7fffffff
ja 0x4a9bff
mov esi, edi
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x4a9acd
mov esi, SysReAllocString
lea ecx, [esi + 0x24]
jmp 0x4a9aed
cmp esi, 0x16
mov eax, 0x16
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x1000
jb 0x4a9b09
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x4a9bfa
push ecx
call fcn.004bf48c
add esp, 4
test eax, eax
je 0x4a9c09
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x4a9b1c
test eax, eax
je 0x4a9b1a
push eax
call fcn.004bf48c
add esp, 4
mov ebx, eax
jmp 0x4a9b1c
xor ebx, ebx
push edi
push dword [ebp - 0x48]
push ebx
call fcn.004c1700
mov byte [ebx + edi], 0
mov edx, dword [ebp - 0x14]
add esp, 0xc
cmp edx, 0x10
jb 0x4a9b61
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4a9b57
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a9c09
push edx
push ecx
call fcn.004bf4bc
add esp, 8
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x28], ebx
mov ebx, dword [ebp - 0x4c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], esi
jmp 0x4a99f4
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.004a9c10
add esp, 0xc
or esi, 0xffffffff
jmp 0x4a9bac
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
xor esi, esi
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4a9bdc
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4a9bd2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a9c09
push edx
push ecx
call fcn.004bf4bc
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bf929
mov esp, ebp
pop ebp
ret
call fcn.0040ae10
call fcn.0040af60
call fcn.0040af70
call fcn.004c4cda
int3