Function at 0x40fbc0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43e1db
push eax
mov eax, dword [0x463b48]
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 0x40fec5
mov al, byte [0x463b64]
test al, al
mov eax, dword [0x463b50]
jne 0x40fc08
cmp eax, ebx
je 0x40fec5
jmp 0x40fc0c
cmp eax, ebx
je 0x40fc13
mov ecx, esi
call fcn.00410080
push 0xc8
mov ecx, 0x463bd0
call fcn.004238b0
cmp dword [0x45aff0], ebx
jne 0x40fc36
mov ecx, esi
call fcn.00410680
jmp 0x40fec7
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 [0x48f9c8]
call fcn.00439080
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], ebx
call sub.MFC42.DLL_CString::CString_4
lea eax, [esp + 0x6c]
push ebx
push eax
mov ecx, 0x463bd0
mov dword [esp + 0x87c], ebx
mov dword [esp + 0x74], 0x89000000
mov dword [esp + 0x78], 0xffffffff
call fcn.004238e0
mov edi, dword [0x45b038]
mov eax, dword [0x463b44]
cmp eax, 0x17
mov edx, dword [edi - 8]
mov dword [esp + 0x18], edx
jne 0x40fcaa
mov dword [esp + 0x18], 0xe
mov edx, dword [esp + 0x18]
xor eax, eax
cmp edx, ebx
jle 0x40fcc2
lea ecx, [esp + 0x1c]
movsx ebp, byte [edi + eax]
mov dword [ecx], ebp
inc eax
add ecx, 4
cmp eax, edx
jl 0x40fcb4
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 [0x463b48]
test eax, eax
jne 0x40fce5
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 0x40fd11
lea ecx, [esp + 0x1c]
mov bl, byte [ecx]
add ecx, 4
mov byte [esi + eax + 0x7d], bl
inc eax
cmp eax, edx
jl 0x40fcff
mov ebx, dword [esp + 0x10]
mov dl, byte [esi + 0x7a]
xor eax, eax
and edx, 0x7f
lea edi, [edx + 3]
test edi, edi
jle 0x40fd2d
xor ecx, ecx
mov cl, byte [esi + eax + 0x78]
xor ebx, ecx
inc eax
cmp eax, edi
jl 0x40fd20
mov byte [eax + esi + 0x78], bl
lea ebx, [esi + 0x878]
xor ecx, ecx
mov ebp, 1
test eax, eax
mov dword [ebx], 0x81000000
jl 0x40fd68
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 0x40fd51
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, 0x463bd0
call fcn.004238e0
test eax, eax
jne 0x40fddf
push 0x5a
mov ecx, 0x463bd0
call fcn.004238b0
lea eax, [esp + 0x6c]
push 0
push eax
mov ecx, 0x463bd0
call fcn.004238e0
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x4528c8
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x48f9c8]
call fcn.00439080
mov ecx, edi
inc edi
cmp ecx, 3
jge 0x40fee0
jmp 0x40fd85
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 [0x48f9c8]
call fcn.00439080
push 0xc8
mov ecx, 0x463bd0
call fcn.004238b0
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 [0x48f9c8]
call fcn.00439080
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
push eax
push 1
push 0xc5
mov ecx, esi
call fcn.0040ff20
test al, al
jne 0x40fe93
cmp ebp, 2
jg 0x40fe6b
push 0x5a
mov ecx, 0x463bd0
inc ebp
call fcn.004238b0
lea ecx, [esp + 0x6c]
push 0
push ecx
mov ecx, 0x463bd0
call fcn.004238e0
jmp 0x40fe2a
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 0x40fef3
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 [0x48f9c8]
call fcn.00439080
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 [0x48f9c8]
call fcn.00439080
or eax, 0xffffffff
lea ecx, [esp + 0x14]
mov dword [0x45aff0], eax
mov dword [esp + 0x874], eax
call sub.MFC42.DLL_CString::CString
xor al, al
jmp 0x40fec7