Function at 0x410650
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43f06b
push eax
mov eax, dword [0x464d80]
mov dword fs:[0], esp
sub esp, 0x85c
push ebx
xor ebx, ebx
push ebp
push esi
cmp eax, ebx
push edi
mov esi, ecx
jne 0x410955
mov al, byte [0x464d9c]
test al, al
mov eax, dword [0x464d88]
jne 0x410698
cmp eax, ebx
je 0x410955
jmp 0x41069c
cmp eax, ebx
je 0x4106a3
mov ecx, esi
call fcn.00410b10
push 0xc8
mov ecx, 0x464e08
call fcn.00424340
cmp dword [0x45c228], ebx
jne 0x4106c6
mov ecx, esi
call fcn.00411110
jmp 0x410957
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str._DDC__Write_SerialNo_to_OSD_for_GenesisGm52xx_scaler
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x490c00]
call fcn.00439d10
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], ebx
call sub.MFC42.DLL_CString::CString_3
lea eax, [esp + 0x6c]
push ebx
push eax
mov ecx, 0x464e08
mov dword [esp + 0x87c], ebx
mov dword [esp + 0x74], 0x89000000
mov dword [esp + 0x78], 0xffffffff
call fcn.00424370
mov edi, dword [0x45c270]
mov eax, dword [0x464d7c]
cmp eax, 0x17
mov edx, dword [edi - 8]
mov dword [esp + 0x18], edx
jne 0x41073a
mov dword [esp + 0x18], 0xe
mov edx, dword [esp + 0x18]
xor eax, eax
cmp edx, ebx
jle 0x410752
lea ecx, [esp + 0x1c]
movsx ebp, byte [edi + eax]
mov dword [ecx], ebp
inc eax
add ecx, 4
cmp eax, edx
jl 0x410744
mov al, 0x50
mov byte [esi + 0x79], al
mov byte [esi + 0x478], al
mov al, 0x6e
mov byte [esi + 0x78], al
mov byte [esi + 0x479], al
mov eax, dword [0x464d80]
test eax, eax
jne 0x410775
mov byte [esi + 0x79], 0x51
mov cl, dl
xor eax, eax
sub cl, 0x7e
mov byte [esi + 0x7b], 0xc4
test edx, edx
mov byte [esi + 0x7a], cl
mov byte [esi + 0x7c], 9
jle 0x4107a1
lea ecx, [esp + 0x1c]
mov bl, byte [ecx]
add ecx, 4
mov byte [esi + eax + 0x7d], bl
inc eax
cmp eax, edx
jl 0x41078f
mov ebx, dword [esp + 0x10]
mov dl, byte [esi + 0x7a]
xor eax, eax
and edx, 0x7f
lea edi, [edx + 3]
test edi, edi
jle 0x4107bd
xor ecx, ecx
mov cl, byte [esi + eax + 0x78]
xor ebx, ecx
inc eax
cmp eax, edi
jl 0x4107b0
mov byte [eax + esi + 0x78], bl
lea ebx, [esi + 0x878]
xor ecx, ecx
mov ebp, 1
test eax, eax
mov dword [ebx], 0x81000000
jl 0x4107f8
lea edi, [esi + 0x87c]
lea ebp, [eax + 2]
xor edx, edx
add edi, 4
mov dl, byte [esi + ecx + 0x78]
or edx, 0x85000000
inc ecx
mov dword [edi - 4], edx
cmp ecx, eax
jle 0x4107e1
mov dword [esi + ebp*4 + 0x878], 0x82000000
mov dword [esi + ebp*4 + 0x87c], 0xffffffff
xor ebp, ebp
mov edi, 1
push 0
push ebx
mov ecx, 0x464e08
call fcn.00424370
test eax, eax
jne 0x41086f
push 0x5a
mov ecx, 0x464e08
call fcn.00424340
lea eax, [esp + 0x6c]
push 0
push eax
mov ecx, 0x464e08
call fcn.00424370
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x453948
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x490c00]
call fcn.00439d10
mov ecx, edi
inc edi
cmp ecx, 3
jge 0x410970
jmp 0x410815
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.:_OK____
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x490c00]
call fcn.00439d10
push 0xc8
mov ecx, 0x464e08
call fcn.00424340
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str._DDC__Verify_SerialNo_from_OSD_for_GenesisGm52xx_scaler:
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x490c00]
call fcn.00439d10
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
push eax
push 1
push 0xc5
mov ecx, esi
call fcn.004109b0
test al, al
jne 0x410923
cmp ebp, 2
jg 0x4108fb
push 0x5a
mov ecx, 0x464e08
inc ebp
call fcn.00424340
lea ecx, [esp + 0x6c]
push 0
push ecx
mov ecx, 0x464e08
call fcn.00424370
jmp 0x4108ba
push ebp
lea edx, [esp + 0x18]
push str.:_Error______Retry__d_
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [esp + 0x14]
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call sub.MFC42.DLL_CString::CString_1
jmp 0x410983
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.____OK____
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x490c00]
call fcn.00439d10
lea ecx, [esp + 0x14]
mov dword [esp + 0x874], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov al, 1
mov ecx, dword [esp + 0x86c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x868
ret
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.:_Error____
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x490c00]
call fcn.00439d10
or eax, 0xffffffff
lea ecx, [esp + 0x14]
mov dword [0x45c228], eax
mov dword [esp + 0x874], eax
call sub.MFC42.DLL_CString::CString
xor al, al
jmp 0x410957