Function at 0x4b6770
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6c16d8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x7f3784]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
lea eax, [esi + 0x18]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004b9bf0
add esp, 8
test al, al
jne 0x4b67f7
movups xmm0, xmmword [esi]
sub esp, 0x18
mov eax, esp
push str.Invalid_size_for_patch_id:__s
push 0
push 2
movups xmmword [eax], xmm0
push str.AdobeGCPatchingWin
movq xmm0, qword [esi + 0x10]
push dword [edi]
movq qword [eax + 0x10], xmm0
call fcn.005645a0
mov ecx, dword [ebp - 0x34]
add esp, 0x2c
xor al, al
mov dword [ecx + 0x1c], 1
jmp 0x4b6a0c
lea eax, [esi + 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004b9bf0
add esp, 8
test al, al
jne 0x4b6849
movups xmm0, xmmword [esi]
sub esp, 0x18
mov eax, esp
push str.Invalid_filePos_for_patch_id:__s
push 0
push 2
movups xmmword [eax], xmm0
push str.AdobeGCPatchingWin
movq xmm0, qword [esi + 0x10]
push dword [edi]
movq qword [eax + 0x10], xmm0
call fcn.005645a0
mov ecx, dword [ebp - 0x34]
add esp, 0x2c
xor al, al
mov dword [ecx + 0x1c], 2
jmp 0x4b6a0c
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp dword [esi + 0x44], 0x10
lea eax, [esi + 0x30]
mov dword [ebp - 4], 0
jb 0x4b686d
mov eax, dword [eax]
lea ecx, [ebp - 0x28]
push ecx
push dword [esi + 0x40]
push eax
call fcn.0056d860
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004b6300
mov ecx, dword [ebp - 0x40]
add esp, 0x14
mov eax, dword [ebp - 0x3c]
cmp ecx, eax
je 0x4b6958
sub eax, ecx
cmp dword [ebp - 0x30], eax
jne 0x4b6958
push 0
push 0
push dword [ebp - 0x44]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4b68f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
movups xmm0, xmmword [esi]
push eax
sub esp, 0x18
mov eax, esp
push str.Failed_to_set_the_file_pointer_for_patch_id:__s._Error:__d
push 0
push 2
movups xmmword [eax], xmm0
push str.AdobeGCPatchingWin
movq xmm0, qword [esi + 0x10]
push dword [edi]
movq qword [eax + 0x10], xmm0
call fcn.005645a0
add esp, 0x30
mov eax, 4
jmp 0x4b698a
push 0
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x30]
push dword [ebp - 0x40]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4b691d
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x48]
jne 0x4b691d
mov byte [ebp - 0x29], 1
jmp 0x4b6994
call dword [sym.imp.KERNEL32.dll_GetLastError]
movups xmm0, xmmword [esi]
push eax
sub esp, 0x18
mov eax, esp
push str.Failed_to_write_the_data_to_the_file_for_patch_id:__s._Error:__d
push 0
push 2
movups xmmword [eax], xmm0
push str.AdobeGCPatchingWin
movq xmm0, qword [esi + 0x10]
push dword [edi]
movq qword [eax + 0x10], xmm0
call fcn.005645a0
add esp, 0x30
mov eax, 5
jmp 0x4b698a
movups xmm0, xmmword [esi]
sub esp, 0x18
mov eax, esp
push str.Invalid_data_for_patch_id:__s
push 0
push 2
movups xmmword [eax], xmm0
push str.AdobeGCPatchingWin
movq xmm0, qword [esi + 0x10]
push dword [edi]
movq qword [eax + 0x10], xmm0
call fcn.005645a0
add esp, 0x2c
mov eax, 3
mov ecx, dword [ebp - 0x34]
mov byte [ebp - 0x29], 0
mov dword [ecx + 0x1c], eax
mov ecx, dword [ebp - 0x40]
test ecx, ecx
je 0x4b69d9
mov edx, dword [ebp - 0x38]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x4b69ba
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b6a29
push edx
push ecx
call fcn.0063bb18
add esp, 8
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4b6a09
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4b69ff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b6a29
push edx
push ecx
call fcn.0063bb18
add esp, 8
mov al, byte [ebp - 0x29]
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.0063bad7
mov esp, ebp
pop ebp
ret 8
call fcn.0065a824
int3