Function at 0x402560
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x42f9d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
xor ebp, ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], ebp
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
push ecx
push ebp
push 0xf003f
push ebp
push ebp
push ebp
push str.SOFTWAREYuepochPD101CfgPark
push connect
mov dword [esp + 0x48], ebp
mov dword [esp + 0x38], ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebp
jne 0x4025c4
lea ecx, [esp + 0x10]
call fcn.00402dc0
mov edx, dword [esp + 0x14]
mov dword [esp + 0x10], edx
mov edi, dword [esi + 0x110]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call ebx
inc eax
push eax
mov eax, dword [esp + 0x14]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push ebp
push str.ComPort
push eax
call edi
mov ebp, dword [esi + 0x108]
push ebp
call ebx
mov ecx, dword [esp + 0x10]
inc eax
push eax
push ebp
push 1
push 0
push str.DispText
push ecx
call edi
mov ebp, dword [esi + 0x10c]
push ebp
call ebx
mov edx, dword [esp + 0x10]
inc eax
push eax
push ebp
push 1
push 0
push str.WelcomeText
push edx
call edi
mov ebp, dword [esi + 0xfc]
push ebp
call ebx
inc eax
push eax
mov eax, dword [esp + 0x14]
push ebp
push 1
push 0
push str.LeftText
push eax
call edi
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0xd4]
lea edx, [esp + 0x14]
push 4
push edx
push 4
push 0
push str.CardId
push eax
mov dword [esp + 0x2c], ecx
call edi
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0xe4]
lea edx, [esp + 0x14]
push 4
push edx
push 4
push 0
push str.BoardWidth
push eax
mov dword [esp + 0x2c], ecx
call edi
mov ecx, dword [esi + 0xdc]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push 4
push edx
push 4
push 0
mov dword [esp + 0x24], ecx
push str.TextRow
push eax
call edi
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0xe8]
lea edx, [esp + 0x14]
push 4
push edx
push 4
push 0
push str.MoveSpeed
push eax
mov dword [esp + 0x2c], ecx
call edi
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0xf0]
lea edx, [esp + 0x14]
push 4
push edx
push 4
push 0
push str.NegData
push eax
mov dword [esp + 0x2c], ecx
call edi
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0xf4]
lea edx, [esp + 0x14]
push 4
push edx
push 4
push 0
push str.NegOE
push eax
mov dword [esp + 0x2c], ecx
call edi
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0xf8]
lea edx, [esp + 0x14]
push 4
push edx
push 4
push 0
push str.NegLeft
push eax
mov dword [esp + 0x2c], ecx
call edi
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0xec]
lea edx, [esp + 0x14]
push 4
push edx
push 4
push 0
push str.ScanMode
push eax
mov dword [esp + 0x2c], ecx
call edi
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x100]
lea edx, [esp + 0x14]
push 4
push edx
push 4
push 0
push str.Protocol
push eax
mov dword [esp + 0x2c], ecx
call edi
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x104]
lea edx, [esp + 0x14]
push 4
push edx
push 4
push 0
push str.Baudrate
push eax
mov dword [esp + 0x2c], ecx
call edi
mov esi, dword [esi + 0xe0]
test esi, esi
jne 0x40279a
mov esi, 0x10
jmp 0x4027b3
cmp esi, 1
jne 0x4027a6
mov esi, 0x18
jmp 0x4027b3
sub esi, 2
neg esi
sbb esi, esi
and esi, 0xffffffee
add esi, 0x20
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push 4
push ecx
push 4
push 0
push str.Font
push edx
mov dword [esp + 0x2c], esi
call edi
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
je 0x4027e1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret