Function at 0x40f650
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x43e1b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
lea ecx, [esp + 0x10]
xor ebx, ebx
mov dword [esp + 0x18], ebp
call sub.MFC42.DLL_CString::CString_4
mov al, 0x6e
mov byte [esi + 0x79], 0x50
mov byte [esi + 0x478], 0x50
mov byte [esi + 0x78], al
mov byte [esi + 0x479], al
mov eax, dword [0x463b48]
cmp eax, ebp
mov dword [esp + 0x30], ebp
jne 0x40f6ae
mov dword [esp + 0x18], 1
mov byte [esi + 0x79], 0x51
mov cl, byte [esi + 0x7a]
xor eax, eax
and ecx, 0x7f
lea edi, [ecx + 3]
cmp edi, ebp
jle 0x40f6ca
xor edx, edx
mov dl, byte [esi + eax + 0x78]
xor ebx, edx
inc eax
cmp eax, edi
jl 0x40f6bd
mov byte [eax + esi + 0x78], bl
mov dword [esp + 0x14], eax
mov eax, 1
lea ebx, [esi + 0x878]
mov dword [esp + 0x24], eax
cmp eax, 1
jle 0x40f71d
mov al, byte [esi + 0x7c]
lea ecx, [esp + 0x10]
and eax, 0x7f
push eax
push str.___02X_
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0x10]
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [0x48f9c8]
call fcn.00439080
mov ecx, dword [esp + 0x14]
xor eax, eax
test ecx, ecx
mov dword [ebx], 0x81000000
mov ebp, 1
jl 0x40f756
lea edi, [esi + 0x87c]
lea ebp, [ecx + 2]
xor edx, edx
mov ecx, dword [esp + 0x14]
mov dl, byte [esi + eax + 0x78]
add edi, 4
or edx, 0x85000000
inc eax
mov dword [edi - 4], edx
cmp eax, ecx
jle 0x40f73b
mov eax, dword [esp + 0x38]
mov dword [esi + ebp*4 + 0x878], 0x82000000
inc ebp
test ax, ax
je 0x40f91a
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x40f841
and eax, 0xffff
lea ebx, [esi + 0x878]
or eax, 0x87000000
push 0
mov dword [esi + ebp*4 + 0x878], eax
inc ebp
xor eax, eax
push ebx
mov dword [esi + ebp*4 + 0x878], 0x81000000
mov al, byte [esi + 0x479]
inc ebp
or eax, 0x85000001
mov dword [esp + 0x28], ebp
mov ecx, 0x463bd0
mov dword [esi + ebp*4 + 0x878], eax
inc ebp
mov eax, 0x83000000
mov dword [esi + ebp*4 + 0x878], eax
inc ebp
mov dword [esi + ebp*4 + 0x878], eax
inc ebp
lea edi, [esi + ebp*4 + 0x878]
mov dword [edi], 0xffffffff
call fcn.004238e0
test eax, eax
jne 0x40f80c
push 0x32
mov ecx, 0x463bd0
call fcn.004238b0
mov dword [ebx], 0x89000000
mov dword [esi + 0x87c], 0xffffffff
jmp 0x40f8da
mov edx, dword [esi + ebp*4 + 0x874]
mov dword [esp + 0x1c], ebp
and edx, 0x7f
je 0x40f827
mov ecx, edx
mov eax, 0x83000000
rep stosd dword es:[edi], eax
add ebp, edx
mov dword [esi + ebp*4 + 0x878], 0x84000000
inc ebp
mov dword [esi + ebp*4 + 0x878], 0x82000000
inc ebp
jmp 0x40f85e
and eax, 0xffff
mov dword [esp + 0x20], ebp
or eax, 0x86000000
mov dword [esp + 0x1c], 0
mov dword [esi + ebp*4 + 0x874], eax
mov ecx, dword [esp + 0x1c]
or edi, 0xffffffff
push 0
mov dword [esi + ebp*4 + 0x878], edi
lea edx, [esi + ecx*4 + 0x878]
mov ecx, 0x463bd0
push edx
call fcn.004238e0
test eax, eax
je 0x40f8bc
mov edx, dword [esp + 0x20]
xor ecx, ecx
lea ebp, [esi + edx*4 + 0x878]
mov edx, dword [esi + edx*4 + 0x878]
cmp edx, edi
je 0x40f8bc
mov edi, ebp
mov dl, byte [edi]
add ebp, 4
mov byte [esi + ecx + 0x478], dl
inc ecx
mov edx, dword [ebp]
mov edi, ebp
cmp edx, 0xffffffff
jne 0x40f89e
test ecx, ecx
jne 0x40f8ee
or edi, 0xffffffff
push 0x32
mov ecx, 0x463bd0
call fcn.004238b0
lea ebx, [esi + 0x878]
mov dword [esi + 0x87c], edi
mov dword [ebx], 0x89000000
push 0
push ebx
mov ecx, 0x463bd0
call fcn.004238e0
push 0x12c
jmp 0x40f942
mov ebp, 1
mov edi, 0x50
cmp ecx, ebp
jle 0x40f910
xor edx, edx
mov dl, byte [esi + ebp + 0x478]
xor edi, edx
inc ebp
cmp ebp, ecx
jl 0x40f8fc
test edi, edi
je 0x40f962
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x40f962
jmp 0x40f94c
lea ebx, [esi + 0x878]
push 0
push ebx
mov ecx, 0x463bd0
mov dword [esi + ebp*4 + 0x878], 0xffffffff
call fcn.004238e0
test eax, eax
jne 0x40f9dd
push 0x32
mov ecx, 0x463bd0
call fcn.004238b0
mov eax, dword [esp + 0x24]
mov ecx, eax
inc eax
cmp ecx, 5
mov dword [esp + 0x24], eax
jl 0x40f6e1
jmp 0x40f966
test eax, eax
jne 0x40f9dd
push 0x32
mov ecx, 0x463bd0
call fcn.004238b0
lea edi, [esi + 0x878]
or ebp, 0xffffffff
push 0
push edi
mov ecx, 0x463bd0
mov dword [edi], 0x8800006e
mov dword [esi + 0x87c], ebp
call fcn.004238e0
mov eax, dword [edi]
xor ebx, ebx
and eax, 0xff
dec eax
je 0x40f9b1
dec eax
je 0x40f9aa
dec eax
jne 0x40f9b3
mov ebx, ebp
jmp 0x40f9b3
mov ebx, 0xfffffffe
jmp 0x40f9b3
xor ebx, ebx
push 0
push edi
mov ecx, 0x463bd0
mov dword [edi], 0x89000000
mov dword [esi + 0x87c], ebp
call fcn.004238e0
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], ebp
call sub.MFC42.DLL_CString::CString
mov eax, ebx
jmp 0x40f9f3
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret 4