Function at 0x46e700
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66e788
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x759454]
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.00471b80
add esp, 8
test al, al
jne 0x46e787
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.00511a90
mov ecx, dword [ebp - 0x34]
add esp, 0x2c
xor al, al
mov dword [ecx + 0x1c], 1
jmp 0x46e99c
lea eax, [esi + 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00471b80
add esp, 8
test al, al
jne 0x46e7d9
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.00511a90
mov ecx, dword [ebp - 0x34]
add esp, 0x2c
xor al, al
mov dword [ecx + 0x1c], 2
jmp 0x46e99c
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 0x46e7fd
mov eax, dword [eax]
lea ecx, [ebp - 0x28]
push ecx
push dword [esi + 0x40]
push eax
call fcn.0051ae10
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0046e290
mov ecx, dword [ebp - 0x40]
add esp, 0x14
mov eax, dword [ebp - 0x3c]
cmp ecx, eax
je 0x46e8e8
sub eax, ecx
cmp dword [ebp - 0x30], eax
jne 0x46e8e8
push 0
push 0
push dword [ebp - 0x44]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x46e886
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.00511a90
add esp, 0x30
mov eax, 4
jmp 0x46e91a
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 0x46e8ad
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x48]
jne 0x46e8ad
mov byte [ebp - 0x29], 1
jmp 0x46e924
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.00511a90
add esp, 0x30
mov eax, 5
jmp 0x46e91a
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.00511a90
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 0x46e969
mov edx, dword [ebp - 0x38]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x46e94a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46e9b9
push edx
push ecx
call fcn.005e984c
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 0x46e999
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x46e98f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46e9b9
push edx
push ecx
call fcn.005e984c
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.005e980b
mov esp, ebp
pop ebp
ret 8
call fcn.00608584
int3