Function at 0x4d8500
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525f2d
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x588eb0]
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.004d41d0
push dword [ebp - 0x64]
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 1
push eax
mov ecx, esi
call fcn.004dcd10
mov eax, dword [ebp - 0x64]
mov byte [ebp - 4], 2
cmp dword [eax + 0x10], 0
je 0x4d87ab
mov ecx, dword [ebp - 0x60]
call fcn.004d4510
test eax, eax
je 0x4d87ab
mov ecx, edi
call fcn.004d4510
test eax, eax
je 0x4d87ab
push dword [ebp - 0x64]
mov ecx, esi
call fcn.004d97c0
push 2
push 0
push dword [esi + 0x10]
call fcn.0050ac0d
push dword [esi + 0x10]
call fcn.0050b31e
mov ecx, dword [ebp - 0x60]
add esp, 0x10
mov dword [ebp - 0x68], eax
push 1
call fcn.004d4510
mov ecx, dword [ebp - 0x60]
push eax
call fcn.004d3710
push eax
lea ecx, [ebp - 0x84]
call fcn.004d4370
test al, al
je 0x4d87ab
push 1
mov ecx, edi
call fcn.004d4510
push eax
mov ecx, edi
call fcn.004d3710
push eax
lea ecx, [ebp - 0x84]
call fcn.004d4370
test al, al
je 0x4d87ab
lea ecx, [ebp - 0x84]
call fcn.004d4510
test al, 0xf
je 0x4d8664
lea ecx, [ebp - 0x84]
call fcn.004d4510
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]
movups xmmword [ebp - 0x20], xmm0
call fcn.004d4370
test al, al
je 0x4d87ab
push 1
lea ecx, [ebp - 0x84]
call fcn.004d4510
push eax
lea ecx, [ebp - 0x84]
call fcn.004d3710
push eax
call fcn.004d96b0
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.004d4510
mov ecx, edi
mov word [ebp - 0x54], ax
call fcn.004d4510
lea ecx, [ebp - 0x84]
mov word [ebp - 0x52], ax
call fcn.004d4510
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.0050be9b
add esp, 0x10
cmp eax, 0x10
jne 0x4d87ab
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.004ddc90
test al, al
je 0x4d87ab
lea ecx, [ebp - 0x84]
call fcn.004d4510
push eax
lea ecx, [ebp - 0x84]
call fcn.004d3710
push eax
mov ecx, esi
call fcn.004ddc90
test al, al
je 0x4d87ab
mov eax, dword [ebp - 0x68]
xorps xmm0, xmm0
push 0
mov dword [ebp - 0x30], eax
movlpd qword [ebp - 0x20], xmm0
call fcn.0050b83e
push 0x30
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
call fcn.004fbcb4
add esp, 8
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x4d8762
mov ecx, eax
call fcn.004d6b40
mov edi, eax
jmp 0x4d8764
xor edi, edi
push dword [ebp - 0x60]
mov ecx, edi
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], edi
call fcn.004d4230
push dword [ebp - 0x6c]
lea ecx, [edi + 0x18]
call fcn.004d4230
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
call fcn.004d7180
movups xmm0, xmmword [ebp - 0x30]
movups xmmword [eax], xmm0
movups xmm0, xmmword [ebp - 0x20]
movups xmmword [eax + 0x10], xmm0
push dword [esi + 0x10]
call fcn.0050ee39
add esp, 4
mov byte [ebp - 0x59], 1
jmp 0x4d87af
mov byte [ebp - 0x59], 0
mov edx, dword [ebp - 0x34]
cmp edx, 0x10
jb 0x4d87df
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4d87d5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d8826
push edx
push ecx
call fcn.004fbca6
add esp, 8
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
call fcn.004d4200
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.004fbc95
mov esp, ebp
pop ebp
ret 0xc
call fcn.00501cb1
int3