Function at 0x4c9300
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50cb99
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x559540]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x60], eax
lea eax, [esi + 0x14]
push eax
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x8c], vtable.ProtocolFilters::AutoLock.0
mov dword [ebp - 0x88], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebp - 0x84]
mov dword [ebp - 4], 0
call fcn.004c5cc0
push dword [ebp - 0x64]
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 1
push eax
mov ecx, esi
call fcn.004cd3a0
mov eax, dword [ebp - 0x64]
mov byte [ebp - 4], 2
cmp dword [eax + 0x10], 0
je 0x4c95b0
mov ecx, dword [ebp - 0x60]
call fcn.004babe0
test eax, eax
je 0x4c95b0
mov ecx, edi
call fcn.004babe0
test eax, eax
je 0x4c95b0
push dword [ebp - 0x64]
mov ecx, esi
call fcn.004ca430
push 2
push 0
push dword [esi + 0x10]
call fcn.004f0921
push dword [esi + 0x10]
call fcn.004f0d34
mov ecx, dword [ebp - 0x60]
add esp, 0x10
mov dword [ebp - 0x68], eax
push 1
call fcn.004babe0
mov ecx, dword [ebp - 0x60]
push eax
call fcn.004c5e90
push eax
lea ecx, [ebp - 0x84]
call fcn.004c5dc0
test al, al
je 0x4c95b0
push 1
mov ecx, edi
call fcn.004babe0
push eax
mov ecx, edi
call fcn.004c5e90
push eax
lea ecx, [ebp - 0x84]
call fcn.004c5dc0
test al, al
je 0x4c95b0
lea ecx, [ebp - 0x84]
call fcn.004babe0
test al, 0xf
je 0x4c9465
lea ecx, [ebp - 0x84]
call fcn.004babe0
and eax, 0xf
mov ecx, 0x10
sub ecx, eax
xorps xmm0, xmm0
push 1
push ecx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x84]
movdqu xmmword [ebp - 0x20], xmm0
call fcn.004c5dc0
test al, al
je 0x4c95b0
push 1
lea ecx, [ebp - 0x84]
call fcn.004babe0
push eax
lea ecx, [ebp - 0x84]
call fcn.004c5e90
push eax
call fcn.004ca370
mov eax, dword [ebp - 0x64]
add esp, 0xc
mov ecx, dword [ebp - 0x60]
mov eax, dword [eax + 0x10]
mov word [ebp - 0x56], ax
call fcn.004babe0
mov ecx, edi
mov word [ebp - 0x54], ax
call fcn.004babe0
lea ecx, [ebp - 0x84]
mov word [ebp - 0x52], ax
call fcn.004babe0
mov ecx, dword [ebp - 0x56]
xorps xmm0, xmm0
push dword [esi + 0x10]
add ecx, 0x10
movlpd qword [ebp - 0x50], xmm0
add eax, ecx
push 0x10
mov word [ebp - 0x58], ax
lea eax, [ebp - 0x58]
push 1
push eax
call fcn.004f0ef9
add esp, 0x10
cmp eax, 0x10
jne 0x4c95b0
cmp dword [ebp - 0x34], 0x10
lea eax, [ebp - 0x48]
push dword [ebp - 0x38]
cmovae eax, dword [ebp - 0x48]
mov ecx, esi
push eax
call fcn.004ce0d0
test al, al
je 0x4c95b0
lea ecx, [ebp - 0x84]
call fcn.004babe0
push eax
lea ecx, [ebp - 0x84]
call fcn.004c5e90
push eax
mov ecx, esi
call fcn.004ce0d0
test al, al
je 0x4c95b0
mov eax, dword [ebp - 0x68]
xorps xmm0, xmm0
push 0
mov dword [ebp - 0x30], eax
movlpd qword [ebp - 0x20], xmm0
call fcn.004f1106
push 0x30
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
call fcn.004edd71
add esp, 8
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x4c9563
mov ecx, eax
call fcn.004c7af0
mov edi, eax
jmp 0x4c9565
xor edi, edi
push dword [ebp - 0x60]
mov ecx, edi
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], edi
call fcn.004c5d20
push dword [ebp - 0x6c]
lea ecx, [edi + 0x18]
call fcn.004c5d20
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
call fcn.004c82b0
movdqu xmm0, xmmword [ebp - 0x30]
movdqu xmmword [eax], xmm0
movdqu xmm0, xmmword [ebp - 0x20]
movdqu xmmword [eax + 0x10], xmm0
push dword [esi + 0x10]
call fcn.004f04e4
add esp, 4
mov byte [ebp - 0x59], 1
jmp 0x4c95b4
mov byte [ebp - 0x59], 0
cmp dword [ebp - 0x34], 0x10
jb 0x4c95c5
push dword [ebp - 0x48]
call fcn.004eb50e
add esp, 4
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
mov byte [ebp - 4], 0
call fcn.004c5cf0
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, byte [ebp - 0x59]
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.004ebd2c
mov esp, ebp
pop ebp
ret 0xc