Function at 0x501c00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c97c6
mov eax, dword fs:[0]
push eax
sub esp, 0x4d8
mov eax, dword [0x67c3c0]
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 dword [ebp - 0x4b0], esi
movups xmm0, xmmword [esi + 0x388]
mov eax, dword [esi + 0x3a8]
push eax
movups xmmword [ebp - 0x434], xmm0
mov dword [ebp - 0x414], eax
movups xmm0, xmmword [esi + 0x398]
movups xmmword [ebp - 0x424], xmm0
call fcn.005aaec4
push dword [ebp - 0x414]
mov edi, eax
push dword [esi + 0x3ac]
push edi
call fcn.0059ce90
add esp, 0x10
mov ecx, esi
push edi
call fcn.00500250
mov edx, dword [ebp - 0x414]
lea eax, [ebp - 0x43c]
push eax
mov eax, 0x46f5b0
mov ecx, edi
call eax
mov esi, dword [ebp - 0x43c]
push esi
mov dword [ebp - 0x418], esi
push 0x100
lea ecx, [esi + 0x24]
mov dword [ebp - 0x4b4], eax
mov esi, dword [ebp - 0x4b0]
mov dword [ebp - 0x428], ecx
mov ecx, eax
push 0x3a
push 0x7d
mov edx, dword [esi + 0x3a4]
mov eax, 0x401f50
call eax
push dword [ebp - 0x418]
mov edx, dword [esi + 0x3a4]
mov eax, 0x401f50
mov ecx, dword [ebp - 0x4b4]
push 0x400
push 0xe1
push 0x5c
call eax
push edi
call fcn.005aaea9
add esp, 4
call fcn.00507f60
add eax, 0xa4
lea ecx, [ebp - 0x454]
push eax
call fcn.0046b430
push 0x60f5f8
lea ecx, [ebp - 0x454]
mov dword [ebp - 4], 0
call fcn.004690f0
push 0x60f694
lea eax, [ebp - 0x410]
push 0x200
push eax
call fcn.005ae15c
push 0x58
lea eax, [ebp - 0x4ac]
push 0
push eax
call fcn.0059c4a0
mov dword [ebp - 0x4ac], 0x58
add esp, 0x18
mov eax, dword [0x568c30]
cmp dword [ebp - 0x440], 7
mov dword [ebp - 0x4a8], eax
lea eax, [ebp - 0x410]
mov dword [ebp - 0x490], eax
lea eax, [ebp - 0x454]
mov dword [ebp - 0x48c], 0x400
mov dword [ebp - 0x4a0], str.Replay_File
mov dword [ebp - 0x494], 1
mov dword [ebp - 0x488], 0
mov dword [ebp - 0x484], 0
cmova eax, dword [ebp - 0x454]
mov dword [ebp - 0x480], eax
lea eax, [ebp - 0x4ac]
push eax
mov dword [ebp - 0x470], str..rpy
mov dword [ebp - 0x478], 2
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameW]
test eax, eax
je 0x501f47
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
push 0
cmp edi, 0xffffffff
jne 0x501e38
imul eax, dword [0x66b030], 0xe2c
mov ecx, esi
push dword [eax + 0x66b3e4]
push dword [eax + 0x66b3e0]
push 0x10
call fcn.004ff880
jmp 0x501f47
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x438]
push 0
push eax
push 0x24
lea eax, [ebp - 0x434]
push eax
push edi
call esi
push 0
lea eax, [ebp - 0x438]
push eax
push dword [ebp - 0x43c]
push dword [ebp - 0x4b4]
push edi
call esi
push 0
lea eax, [ebp - 0x438]
push eax
mov eax, dword [ebp - 0x4b0]
push dword [eax + 0x3b4]
push dword [eax + 0x3b0]
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
imul eax, dword [0x66b030], 0xe2c
push 0xfde9
push dword [eax + 0x66b448]
lea eax, [ebp - 0x4e4]
push eax
call fcn.00544480
cmp dword [ebp - 0x4d0], 7
lea esi, [ebp - 0x4e4]
push 0xfde9
cmova esi, dword [ebp - 0x4e4]
imul eax, dword [0x66b030], 0xe2c
mov byte [ebp - 4], 1
push dword [eax + 0x66b444]
lea eax, [ebp - 0x4cc]
push eax
call fcn.00544480
add esp, 0x18
cmp dword [ebp - 0x4b8], 7
lea ecx, [ebp - 0x410]
push ecx
mov ecx, dword [ebp - 0x4b0]
lea eax, [ebp - 0x4cc]
cmova eax, dword [ebp - 0x4cc]
push esi
push eax
push 0x40
mov byte [ebp - 4], 2
call fcn.004ff950
lea ecx, [ebp - 0x4cc]
call fcn.004443f0
lea ecx, [ebp - 0x4e4]
mov byte [ebp - 4], 0
call fcn.004443f0
push dword [ebp - 0x4b4]
mov eax, 0x491a3f
call eax
mov ecx, dword [ebp - 0x440]
add esp, 4
cmp ecx, 7
jbe 0x501f93
mov edx, dword [ebp - 0x454]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x501f89
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x501fae
push ecx
push edx
call fcn.0059a744
add esp, 8
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.0059a5ad
mov esp, ebp
pop ebp
ret
call fcn.005ad975
int3