Function at 0x4085f0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0xf013f
push 0
push 0
push 0
push str.SOFTWARENECBGA_DBBASIC
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x14], 0
jne 0x40864f
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x14]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.SOFTWARENECBGA_DBBASIC
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 1
jne 0x408a82
push 4
mov ecx, dword [ebp - 0x18]
add ecx, 0xd51e
push ecx
push 4
push 0
push str.BaudRate1
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
push 1
mov eax, dword [ebp - 0x18]
add eax, 0xd526
push eax
push 3
push 0
push str.ByteSize1
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
push 1
mov edx, dword [ebp - 0x18]
add edx, 0xd52a
push edx
push 3
push 0
push str.Parity1
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
push 1
mov ecx, dword [ebp - 0x18]
add ecx, 0xd528
push ecx
push 3
push 0
push str.StopBits1
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
push 0x50
mov eax, dword [ebp - 0x18]
add eax, 0xd52c
push eax
push 1
push 0
push str.Port1
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
push 4
mov edx, dword [ebp - 0x18]
add edx, 0xd522
push edx
push 4
push 0
push str.BaudRate2
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
push 1
mov ecx, dword [ebp - 0x18]
add ecx, 0xd527
push ecx
push 3
push 0
push str.ByteSize2
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
push 1
mov eax, dword [ebp - 0x18]
add eax, 0xd52b
push eax
push 3
push 0
push str.Parity2
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
push 1
mov edx, dword [ebp - 0x18]
add edx, 0xd529
push edx
push 3
push 0
push str.StopBits2
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
push 0x50
mov ecx, dword [ebp - 0x18]
add ecx, 0xd536
push ecx
push 1
push 0
push str.Port2
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
add eax, 0xd540
push eax
call fcn.00469b80
add esp, 4
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0xd540
push ecx
push 1
push 0
push str.Port3
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
push 1
mov eax, dword [ebp - 0x18]
add eax, 0xd5d8
push eax
push 1
push 0
push str.Main_Enable
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
push 0x50
mov edx, dword [ebp - 0x18]
add edx, 0x3fec30
push edx
push 1
push 0
push str.AckWaitTime
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
push 0x50
mov ecx, dword [ebp - 0x18]
add ecx, 0x2d3fed6
push ecx
push 1
push 0
push str.Bcd_Port
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
push 4
mov eax, dword [ebp - 0x18]
add eax, 0x2d3fe8f
push eax
push 4
push 0
push str.Bcd_BaudRate
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
push 1
mov edx, dword [ebp - 0x18]
add edx, 0x2d3fe93
push edx
push 3
push 0
push str.Bcd_ByteSize
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
push 1
mov ecx, dword [ebp - 0x18]
add ecx, 0x2d3fe95
push ecx
push 3
push 0
push str.Bcd_Parity
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
push 1
mov eax, dword [ebp - 0x18]
add eax, 0x2d3fe94
push eax
push 3
push 0
push str.Bcd_StopBits
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
push 0x50
mov edx, dword [ebp - 0x18]
add edx, 0x2d3ff6d
push edx
push 1
push 0
push str.Bcd_Port2
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
push 4
mov ecx, dword [ebp - 0x18]
add ecx, 0x2d3ff26
push ecx
push 4
push 0
push str.Bcd_BaudRate2
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
push 1
mov eax, dword [ebp - 0x18]
add eax, 0x2d3ff2a
push eax
push 3
push 0
push str.Bcd_ByteSize2
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
push 1
mov edx, dword [ebp - 0x18]
add edx, 0x2d3ff2c
push edx
push 3
push 0
push str.Bcd_Parity2
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
push 1
mov ecx, dword [ebp - 0x18]
add ecx, 0x2d3ff2b
push ecx
push 3
push 0
push str.Bcd_StopBits2
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
push 0x50
mov eax, dword [ebp - 0x18]
add eax, 0x2d3fedc
push eax
push 1
push 0
push str.BarcodeFlg
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
push 4
mov edx, dword [ebp - 0x18]
add edx, 0x1f770d2
push edx
push 4
push 0
push str.IFType
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
push 0x50
mov ecx, dword [ebp - 0x18]
add ecx, 0x1f770d6
push ecx
push 1
push 0
push 0x4a5914
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
push 0x50
mov eax, dword [ebp - 0x18]
add eax, 0x1f770da
push eax
push 1
push 0
push 0x4a5910
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
push 0x50
mov edx, dword [ebp - 0x18]
add edx, 0x1f770de
push edx
push 1
push 0
push 0x4a590c
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
push 0x50
mov ecx, dword [ebp - 0x18]
add ecx, 0x1f770e2
push ecx
push 1
push 0
push 0x4a5908
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
push 0x50
mov eax, dword [ebp - 0x18]
add eax, 0x3fee91
push eax
push 1
push 0
push 0x4a5904
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
push 1
mov edx, dword [ebp - 0x18]
add edx, 0x1f770e6
push edx
push 3
push 0
push str.NetMode
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
jmp 0x40951c
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 0xd51e
push edx
lea eax, [ebp - 4]
push eax
push 0
push str.BaudRate1
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x408acb
push 4
mov edx, dword [ebp - 0x18]
add edx, 0xd51e
push edx
push 4
push 0
push str.BaudRate1
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 0xd526
push edx
lea eax, [ebp - 4]
push eax
push 0
push str.ByteSize1
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x408b14
push 1
mov edx, dword [ebp - 0x18]
add edx, 0xd526
push edx
push 3
push 0
push str.ByteSize1
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 0xd52a
push edx
lea eax, [ebp - 4]
push eax
push 0
push str.Parity1
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x408b5d
push 1
mov edx, dword [ebp - 0x18]
add edx, 0xd52a
push edx
push 3
push 0
push str.Parity1
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 0xd528
push edx
push 0
push 0
push str.StopBits1
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x408ba4
push 1
mov ecx, dword [ebp - 0x18]
add ecx, 0xd528
push ecx
push 3
push 0
push str.StopBits1
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0xa
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0xd52c
push ecx
lea edx, [ebp - 4]
push edx
push 0
push str.Port1
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x408c05
mov ecx, dword [ebp - 0x18]
add ecx, 0xd52c
push ecx
call fcn.00469b80
add esp, 4
push eax
mov edx, dword [ebp - 0x18]
add edx, 0xd52c
push edx
push 1
push 0
push str.Port1
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 0xd522
push edx
lea eax, [ebp - 4]
push eax
push 0
push str.BaudRate2
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x408c4e
push 4
mov edx, dword [ebp - 0x18]
add edx, 0xd522
push edx
push 4
push 0
push str.BaudRate2
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 0xd527
push edx
lea eax, [ebp - 4]
push eax
push 0
push str.ByteSize2
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x408c97
push 1
mov edx, dword [ebp - 0x18]
add edx, 0xd527
push edx
push 3
push 0
push str.ByteSize2
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 0xd52b
push edx
lea eax, [ebp - 4]
push eax
push 0
push str.Parity2
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x408ce0
push 1
mov edx, dword [ebp - 0x18]
add edx, 0xd52b
push edx
push 3
push 0
push str.Parity2
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 0xd529
push edx
push 0
push 0
push str.StopBits2
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x408d27
push 1
mov ecx, dword [ebp - 0x18]
add ecx, 0xd529
push ecx
push 3
push 0
push str.StopBits2
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0xa
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0xd536
push ecx
lea edx, [ebp - 4]
push edx
push 0
push str.Port2
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x408d88
mov ecx, dword [ebp - 0x18]
add ecx, 0xd536
push ecx
call fcn.00469b80
add esp, 4
push eax
mov edx, dword [ebp - 0x18]
add edx, 0xd536
push edx
push 1
push 0
push str.Port2
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0xa
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 0xd540
push edx
lea eax, [ebp - 4]
push eax
push 0
push str.Port3
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x408de8
mov edx, dword [ebp - 0x18]
add edx, 0xd540
push edx
call fcn.00469b80
add esp, 4
push eax
mov eax, dword [ebp - 0x18]
add eax, 0xd540
push eax
push 1
push 0
push str.Port3
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0xa
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x18]
add eax, 0xd5d8
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push str.Main_Enable
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x408e36
push 1
mov eax, dword [ebp - 0x18]
add eax, 0xd5d8
push eax
push 1
push 0
push str.Main_Enable
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0xa
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x18]
add eax, 0x3fec30
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push str.AckWaitTime
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x408e95
mov eax, dword [ebp - 0x18]
add eax, 0x3fec30
push eax
call fcn.00469b80
add esp, 4
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x3fec30
push ecx
push 1
push 0
push str.AckWaitTime
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 6
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x2d3fed6
push ecx
lea edx, [ebp - 4]
push edx
push 0
push str.Bcd_Port
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x408ef6
mov ecx, dword [ebp - 0x18]
add ecx, 0x2d3fed6
push ecx
call fcn.00469b80
add esp, 4
push eax
mov edx, dword [ebp - 0x18]
add edx, 0x2d3fed6
push edx
push 1
push 0
push str.Bcd_Port
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 4
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 0x2d3fe8f
push edx
lea eax, [ebp - 4]
push eax
push 0
push str.Bcd_BaudRate
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x408f46
push 4
mov edx, dword [ebp - 0x18]
add edx, 0x2d3fe8f
push edx
push 4
push 0
push str.Bcd_BaudRate
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 1
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 0x2d3fe93
push edx
lea eax, [ebp - 4]
push eax
push 0
push str.Bcd_ByteSize
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x408f96
push 1
mov edx, dword [ebp - 0x18]
add edx, 0x2d3fe93
push edx
push 3
push 0
push str.Bcd_ByteSize
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 1
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 0x2d3fe95
push edx
lea eax, [ebp - 4]
push eax
push 0
push str.Bcd_Parity
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x408fe6
push 1
mov edx, dword [ebp - 0x18]
add edx, 0x2d3fe95
push edx
push 3
push 0
push str.Bcd_Parity
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 1
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 0x2d3fe94
push edx
push 0
push 0
push str.Bcd_StopBits
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x409034
push 1
mov ecx, dword [ebp - 0x18]
add ecx, 0x2d3fe94
push ecx
push 3
push 0
push str.Bcd_StopBits
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0xa
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x2d3fedc
push ecx
lea edx, [ebp - 4]
push edx
push 0
push str.BarcodeFlg
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x409095
mov ecx, dword [ebp - 0x18]
add ecx, 0x2d3fedc
push ecx
call fcn.00469b80
add esp, 4
push eax
mov edx, dword [ebp - 0x18]
add edx, 0x2d3fedc
push edx
push 1
push 0
push str.BarcodeFlg
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 6
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 0x2d3ff6d
push edx
lea eax, [ebp - 4]
push eax
push 0
push str.Bcd_Port2
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4090f5
mov edx, dword [ebp - 0x18]
add edx, 0x2d3ff6d
push edx
call fcn.00469b80
add esp, 4
push eax
mov eax, dword [ebp - 0x18]
add eax, 0x2d3ff6d
push eax
push 1
push 0
push str.Bcd_Port2
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 4
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x18]
add eax, 0x2d3ff26
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push str.Bcd_BaudRate2
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x409143
push 4
mov eax, dword [ebp - 0x18]
add eax, 0x2d3ff26
push eax
push 4
push 0
push str.Bcd_BaudRate2
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 1
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x18]
add eax, 0x2d3ff2a
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push str.Bcd_ByteSize2
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x409191
push 1
mov eax, dword [ebp - 0x18]
add eax, 0x2d3ff2a
push eax
push 3
push 0
push str.Bcd_ByteSize2
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 1
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x18]
add eax, 0x2d3ff2c
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push str.Bcd_Parity2
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4091df
push 1
mov eax, dword [ebp - 0x18]
add eax, 0x2d3ff2c
push eax
push 3
push 0
push str.Bcd_Parity2
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 1
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x18]
add eax, 0x2d3ff2b
push eax
push 0
push 0
push str.Bcd_StopBits2
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40922c
push 1
mov edx, dword [ebp - 0x18]
add edx, 0x2d3ff2b
push edx
push 3
push 0
push str.Bcd_StopBits2
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 4
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 0x1f770d2
push edx
lea eax, [ebp - 4]
push eax
push 0
push str.IFType
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40927c
push 4
mov edx, dword [ebp - 0x18]
add edx, 0x1f770d2
push edx
push 4
push 0
push str.IFType
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 4
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 0x1f770d6
push edx
lea eax, [ebp - 4]
push eax
push 0
push 0x4a5914
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4092dc
mov edx, dword [ebp - 0x18]
add edx, 0x1f770d6
push edx
call fcn.00469b80
add esp, 4
push eax
mov eax, dword [ebp - 0x18]
add eax, 0x1f770d6
push eax
push 1
push 0
push 0x4a5914
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 4
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x18]
add eax, 0x1f770da
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0x4a5910
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40933b
mov eax, dword [ebp - 0x18]
add eax, 0x1f770da
push eax
call fcn.00469b80
add esp, 4
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x1f770da
push ecx
push 1
push 0
push 0x4a5910
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x1f770de
push ecx
lea edx, [ebp - 4]
push edx
push 0
push 0x4a590c
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40939c
mov ecx, dword [ebp - 0x18]
add ecx, 0x1f770de
push ecx
call fcn.00469b80
add esp, 4
push eax
mov edx, dword [ebp - 0x18]
add edx, 0x1f770de
push edx
push 1
push 0
push 0x4a590c
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 4
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 0x1f770e2
push edx
lea eax, [ebp - 4]
push eax
push 0
push 0x4a5908
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4093fc
mov edx, dword [ebp - 0x18]
add edx, 0x1f770e2
push edx
call fcn.00469b80
add esp, 4
push eax
mov eax, dword [ebp - 0x18]
add eax, 0x1f770e2
push eax
push 1
push 0
push 0x4a5908
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 2
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x18]
add eax, 0x3fee91
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0x4a5904
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40945b
mov eax, dword [ebp - 0x18]
add eax, 0x3fee91
push eax
call fcn.00469b80
add esp, 4
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x3fee91
push ecx
push 1
push 0
push 0x4a5904
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 1
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x1f770e6
push ecx
lea edx, [ebp - 4]
push edx
push 0
push str.NetMode
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4094ab
push 1
mov ecx, dword [ebp - 0x18]
add ecx, 0x1f770e6
push ecx
push 3
push 0
push str.NetMode
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
movsx ecx, byte [eax + 0x2d3fedc]
cmp ecx, 0x31
jne 0x40951c
mov edx, dword [ebp - 0x18]
add edx, 0x3fec30
push edx
call fcn.0046f6cb
add esp, 4
cmp eax, 0x2710
jge 0x40951c
push str.5000
mov eax, dword [ebp - 0x18]
add eax, 0x3fec30
push eax
call fcn.0046fd70
add esp, 8
mov ecx, dword [ebp - 0x18]
add ecx, 0x3fec30
push ecx
call fcn.00469b80
add esp, 4
push eax
mov edx, dword [ebp - 0x18]
add edx, 0x3fec30
push edx
push 1
push 0
push str.AckWaitTime
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret