Function at 0x40adc0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x430240
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov edi, ecx
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x18]
push eax
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SOFTWAREYuepochPD101CfgYufengAd
push connect
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x40ae24
lea ecx, [esp + 0x10]
call fcn.00402dc0
mov edx, dword [esp + 0x18]
mov dword [esp + 0x10], edx
mov esi, dword [edi + 0x150]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call ebp
inc eax
push eax
mov eax, dword [esp + 0x14]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push ebx
push str.ComPort
push eax
call esi
mov ebx, dword [edi + 0x138]
push ebx
call ebp
mov ecx, dword [esp + 0x10]
inc eax
push eax
push ebx
push 1
push 0
push str.LeftText
push ecx
call esi
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 0x110]
lea eax, [esp + 0x18]
push 4
push eax
push 4
push 0
push str.CardId
push ecx
mov dword [esp + 0x30], edx
call esi
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 0x120]
lea eax, [esp + 0x18]
push 4
push eax
push 4
push 0
push str.BoardWidth
push ecx
mov dword [esp + 0x30], edx
call esi
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 0x118]
lea eax, [esp + 0x18]
push 4
push eax
push 4
push 0
push str.TextRow
push ecx
mov dword [esp + 0x30], edx
call esi
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 0x124]
lea eax, [esp + 0x18]
push 4
push eax
push 4
push 0
push str.MoveSpeed
push ecx
mov dword [esp + 0x30], edx
call esi
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 0x12c]
lea eax, [esp + 0x18]
push 4
push eax
push 4
push 0
push str.NegData
push ecx
mov dword [esp + 0x30], edx
call esi
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 0x130]
lea eax, [esp + 0x18]
push 4
push eax
push 4
push 0
push str.NegOE
push ecx
mov dword [esp + 0x30], edx
call esi
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 0x134]
lea eax, [esp + 0x18]
push 4
push eax
push 4
push 0
push str.NegLeft
push ecx
mov dword [esp + 0x30], edx
call esi
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 0x128]
lea eax, [esp + 0x18]
push 4
push eax
push 4
push 0
push str.ScanMode
push ecx
mov dword [esp + 0x30], edx
call esi
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 0x13c]
lea eax, [esp + 0x18]
push 4
push eax
push 4
push 0
push str.Protocol
push ecx
mov dword [esp + 0x30], edx
call esi
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 0x140]
lea eax, [esp + 0x18]
push 4
push eax
push 4
push 0
push str.Baudrate
push ecx
mov dword [esp + 0x30], edx
call esi
mov eax, dword [edi + 0x11c]
test eax, eax
jne 0x40afc2
mov eax, 0x10
jmp 0x40afcd
dec eax
neg eax
sbb eax, eax
and eax, 8
add eax, 0x18
lea edx, [esp + 0x18]
push 4
push edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
push 4
push 0
push str.Font
push eax
call esi
mov ecx, dword [0x4a2bd4]
mov dword [esp + 0x14], ecx
mov byte [esp + 0x28], 1
xor eax, eax
lea ebx, [edi + 0x198]
lea edi, [eax + 1]
lea edx, [esp + 0x14]
push edi
push str.ActStr_d
push edx
call fcn.00422c2c
mov ebp, dword [ebx]
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0x18], eax
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
inc eax
push eax
push ebp
push 1
push 0
push ecx
push edx
call esi
mov eax, edi
add ebx, 4
cmp eax, 0x63
jl 0x40afff
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 0
call fcn.00427871
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
je 0x40b064
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret