Function at 0x41a2b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
mov eax, dword [0x56fda8]
xor eax, esp
mov dword [esp + 0x28], eax
mov al, 6
push esi
mov dl, 0x2e
mov esi, ecx
mov cl, 0x3f
mov byte [esp + 0x10], al
mov byte [esp + 0x1a], al
mov byte [esp + 0x22], al
mov dword [esp + 4], 0
mov byte [esp + 8], 9
mov byte [esp + 9], 0x35
mov byte [esp + 0xa], 0x3c
mov byte [esp + 0xb], dl
mov byte [esp + 0xc], 0x2d
mov byte [esp + 0xd], 0x3b
mov byte [esp + 0xe], 0x28
mov byte [esp + 0xf], cl
mov byte [esp + 0x11], 0x1e
mov byte [esp + 0x12], 0x35
mov byte [esp + 0x13], dl
mov byte [esp + 0x14], 0x32
mov byte [esp + 0x15], 0x33
mov byte [esp + 0x16], 0x34
mov byte [esp + 0x17], 0x31
mov byte [esp + 0x18], cl
mov byte [esp + 0x19], 0x23
mov byte [esp + 0x1b], 0x1e
mov byte [esp + 0x1c], 0xe
mov byte [esp + 0x1d], 0xf
mov byte [esp + 0x1e], 9
mov byte [esp + 0x1f], 0x18
mov byte [esp + 0x20], 0x68
mov byte [esp + 0x21], 0x6a
mov byte [esp + 0x23], 9
mov byte [esp + 0x24], cl
mov byte [esp + 0x25], dl
mov byte [esp + 0x26], 0x2f
mov byte [esp + 0x27], 0x2a
mov byte [esp + 0x28], 0
xor eax, eax
lea ecx, [ecx]
xor byte [esp + eax + 8], 0x5a
inc eax
cmp eax, 0x20
jb 0x4191d0
push 0
lea eax, [esp + 8]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edx, dword [esp + 4]
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov byte [esp + 0x28], al
test edx, edx
je 0x419321
mov eax, dword [esi + 8]
push eax
mov ecx, str.bAutoWB
call fcn.004190f0
mov ecx, dword [esi + 0x458]
mov edx, dword [esp + 8]
push ecx
mov ecx, str.Gain_r
call fcn.004190f0
mov edx, dword [esi + 0x45c]
push edx
mov edx, dword [esp + 0x10]
mov ecx, str.Gain_g
call fcn.004190f0
mov eax, dword [esi + 0x460]
mov edx, dword [esp + 0x10]
push eax
mov ecx, str.Gain_b
call fcn.004190f0
movzx ecx, byte [esi + 0x10]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, str.Gamma
call fcn.004190f0
movzx edx, byte [esi + 0x455]
push edx
mov edx, dword [esp + 0x1c]
mov ecx, str.Contrast
call fcn.004190f0
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x1c]
push eax
mov ecx, str.Color_Correct_Enable
call fcn.004190f0
movzx ecx, byte [esi + 0x454]
mov edx, dword [esp + 0x20]
push ecx
mov ecx, str.Saturation
call fcn.004190f0
mov edx, dword [esi + 0x474]
push edx
mov edx, dword [esp + 0x28]
mov ecx, str.SENSOR_CHECK_FLAG
call fcn.004190f0
mov eax, dword [esi + 0x478]
mov edx, dword [esp + 0x28]
xor eax, 0x77aa
push eax
mov ecx, 0x478e78
call fcn.004190f0
mov ecx, dword [esp + 0x2c]
add esp, 0x28
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00455303
add esp, 0x2c
ret
mov ecx, dword [esp + 0x2c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.00455303
add esp, 0x2c
ret
push esi
mov esi, ecx
mov dword [esi], vtable.Cdtusb.0
call fcn.0041a210
mov eax, dword [esi + 0x4c8]
test eax, eax
je 0x41a2ce
push eax
call sub.MSVFW32.dll_DrawDibClose
mov eax, dword [esi + 0x4c4]
test eax, eax
je 0x41a2e6
push eax
mov eax, dword [esi + 0x498]
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esi + 0x4cc]
test eax, eax
je 0x41a303
push eax
call fcn.00456127
add esp, 4
mov dword [esi + 0x4cc], 0
cmp dword [esi + 0x47c], 0
je 0x41a338
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea edi, [esi + 0x5018e0]
mov ebx, 4
mov ecx, dword [edi]
push ecx
call ebp
add edi, 0x14
sub ebx, 1
jne 0x41a320
pop edi
pop ebp
pop ebx
mov ecx, esi
pop esi
jmp 0x419110
pop esi
ret