Function at 0x4b5010
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6bed98
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x7ef784]
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.004b8490
add esp, 8
test al, al
jne 0x4b5097
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.00562650
mov ecx, dword [ebp - 0x34]
add esp, 0x2c
xor al, al
mov dword [ecx + 0x1c], 1
jmp 0x4b52ac
lea eax, [esi + 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004b8490
add esp, 8
test al, al
jne 0x4b50e9
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.00562650
mov ecx, dword [ebp - 0x34]
add esp, 0x2c
xor al, al
mov dword [ecx + 0x1c], 2
jmp 0x4b52ac
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 0x4b510d
mov eax, dword [eax]
lea ecx, [ebp - 0x28]
push ecx
push dword [esi + 0x40]
push eax
call fcn.0056b800
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004b4ba0
mov ecx, dword [ebp - 0x40]
add esp, 0x14
mov eax, dword [ebp - 0x3c]
cmp ecx, eax
je 0x4b51f8
sub eax, ecx
cmp dword [ebp - 0x30], eax
jne 0x4b51f8
push 0
push 0
push dword [ebp - 0x44]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4b5196
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.00562650
add esp, 0x30
mov eax, 4
jmp 0x4b522a
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 0x4b51bd
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x48]
jne 0x4b51bd
mov byte [ebp - 0x29], 1
jmp 0x4b5234
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.00562650
add esp, 0x30
mov eax, 5
jmp 0x4b522a
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.00562650
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 0x4b5279
mov edx, dword [ebp - 0x38]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x4b525a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b52c9
push edx
push ecx
call fcn.006391f8
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 0x4b52a9
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4b529f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b52c9
push edx
push ecx
call fcn.006391f8
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.006391b7
mov esp, ebp
pop ebp
ret 8
call fcn.00657f14
int3