Function at 0x49d5c0
Capabilities:
Contain obfuscated stackstrings
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571031
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x640040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x8c], 0
mov eax, dword [ebp + 8]
jne 0x49d657
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x250]
push ecx
push 0x20019
push 0
push 0x5c1448
push eax
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x24c], 0
call edi
test eax, eax
je 0x49d65e
mov eax, dword [0x641a88]
push str.Failed_to_open_registry_key_SOFTWARE
add eax, 0x32c
push 0x3e9
push eax
call fcn.004ec2c0
add esp, 0xc
xor al, al
jmp 0x49d827
lea eax, [ebp - 0x254]
push eax
push 0x20019
push 0
push 0x5c0f24
push dword [ebp - 0x250]
call edi
test eax, eax
je 0x49d6ad
mov eax, dword [0x641a88]
push str.Failed_to_open_registry_key_EUROTHERM
add eax, 0x32c
push 0x3e9
push eax
call fcn.004ec2c0
add esp, 0xc
push dword [ebp - 0x250]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x49d827
lea eax, [ebp - 0x24c]
push eax
push 0x20019
push 0
push str.EuroMBus
push dword [ebp - 0x254]
call edi
test eax, eax
je 0x49d6e9
push dword [ebp - 0x254]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x250]
call esi
xor al, al
jmp 0x49d827
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x80]
push eax
lea ecx, [ebp - 0x244]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x244]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__23]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea eax, [ebp - 0x210]
push 0x100
push eax
xor edi, edi
push edi
push dword [ebp - 0x24c]
call ebx
test eax, eax
jne 0x49d7f2
nop dword [eax + eax]
lea ecx, [ebp - 0x228]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov byte [ebp - 4], 1
push ecx
mov ecx, esp
mov dword [ebp - 0x248], esp
push str.HWName
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
mov byte [ebp - 4], 2
lea eax, [ebp - 0x210]
push ecx
mov ecx, esp
mov dword [ebp - 0x218], esp
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
lea edx, [ebp - 0x228]
mov ecx, dword [ebp - 0x24c]
call fcn.0050de20
add esp, 8
test al, al
je 0x49d7c4
lea ecx, [ebp - 0x228]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__23]
push dword [ebp - 0x244]
lea ecx, [ebp - 0x228]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__29]
test eax, eax
je 0x49d845
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push 0x100
lea eax, [ebp - 0x210]
inc edi
push eax
push edi
push dword [ebp - 0x24c]
call ebx
test eax, eax
je 0x49d740
push dword [ebp - 0x24c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x254]
call esi
push dword [ebp - 0x250]
call esi
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055c86d
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x214], 0
mov ebx, 1
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov byte [ebp - 4], 4
lea edi, [ebp - 0x214]
push ecx
mov ecx, esp
mov dword [ebp - 0x218], esp
push str.Enabled
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
mov byte [ebp - 4], 5
lea eax, [ebp - 0x210]
push ecx
mov ecx, esp
mov dword [ebp - 0x21c], esp
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
mov byte [ebp - 4], 6
mov byte [ebp - 4], 4
mov edx, edi
mov ecx, dword [ebp - 0x24c]
call fcn.0050da10
add esp, 8
test al, al
je 0x49d8c9
cmp dword [ebp - 0x214], 0
mov ecx, esi
jbe 0x49d8c2
push ebx
jmp 0x49d8c4
push 0
call fcn.0049ad20
push ecx
mov ecx, esp
mov dword [ebp - 0x218], esp
push str.DefaultTimeout
lea edi, [ebp - 0x214]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
mov byte [ebp - 4], 7
lea eax, [ebp - 0x210]
push ecx
mov ecx, esp
mov dword [ebp - 0x21c], esp
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
mov byte [ebp - 4], 8
mov byte [ebp - 4], 4
mov edx, edi
mov ecx, dword [ebp - 0x24c]
call fcn.0050da10
add esp, 8
test al, al
je 0x49d922
mov eax, dword [ebp - 0x214]
mov dword [esi + 0x7c], eax
push ecx
mov ecx, esp
mov dword [ebp - 0x218], esp
push str.DefaultBlockSize
lea edi, [ebp - 0x214]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
mov byte [ebp - 4], 9
lea eax, [ebp - 0x210]
push ecx
mov ecx, esp
mov dword [ebp - 0x21c], esp
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
mov byte [ebp - 4], 0xa
mov byte [ebp - 4], 4
mov edx, edi
mov ecx, dword [ebp - 0x24c]
call fcn.0050da10
add esp, 8
test al, al
je 0x49d98d
mov eax, dword [ebp - 0x214]
mov dword [esi + 0x80], eax
cmp eax, 1
jne 0x49d98d
mov dword [esi + 0x80], 0x7d
push ecx
mov ecx, esp
mov dword [ebp - 0x218], esp
push str.CommsProtocol
lea edi, [ebp - 0x214]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x210]
push ecx
mov ecx, esp
mov dword [ebp - 0x21c], esp
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
mov byte [ebp - 4], 0xc
mov byte [ebp - 4], 4
mov edx, edi
mov ecx, dword [ebp - 0x24c]
call fcn.0050da10
add esp, 8
test al, al
cmovne ebx, dword [ebp - 0x214]
cmp byte [esi + 0x100], 0
mov dword [ebp - 0x240], ebx
je 0x49de2f
mov ecx, esi
call fcn.004a74e0
xor edi, edi
mov ebx, dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__31]
push ecx
mov ecx, esp
mov dword [ebp - 0x258], esp
push str.ModbusTCP
mov byte [ebp - 0x218], 0
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x210]
push ecx
mov ecx, esp
mov dword [ebp - 0x25c], esp
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
mov byte [ebp - 4], 0xe
mov byte [ebp - 4], 4
lea edx, [ebp - 0x234]
mov ecx, dword [ebp - 0x24c]
call fcn.0050da10
add esp, 8
test al, al
je 0x49da67
cmp dword [ebp - 0x234], 0
setbe byte [ebp - 0x218]
lea ecx, [ebp - 0x224]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x220]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x230]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x22c]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov byte [ebp - 4], 0x12
test edi, edi
jle 0x49db00
push edi
push str.Hostname
lea eax, [ebp - 0x224]
push str._s_0d
push eax
call ebx
push edi
push 0x592404
lea eax, [ebp - 0x220]
push str._s_0d
push eax
call ebx
push edi
push str.ModbusTCPIPPingHost
lea eax, [ebp - 0x230]
push str._s_0d
push eax
call ebx
push edi
push str.DefaultBlockSize
lea eax, [ebp - 0x22c]
push str._s_0d
push eax
call ebx
add esp, 0x40
jmp 0x49db44
push str.Hostname
lea ecx, [ebp - 0x224]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
push 0x592404
lea ecx, [ebp - 0x220]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
push str.ModbusTCPIPPingHost
lea ecx, [ebp - 0x230]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
push str.DefaultBlockSize
lea ecx, [ebp - 0x22c]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::operator]
lea ecx, [ebp - 0x214]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov byte [ebp - 4], 0x13
lea eax, [ebp - 0x224]
push ecx
mov ecx, esp
mov dword [ebp - 0x260], esp
push eax
mov dword [ebp - 0x23c], 0x1f6
lea ebx, [ebp - 0x214]
mov byte [ebp - 0x238], 1
mov dword [ebp - 0x21c], 0x7d
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__30]
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0x210]
push ecx
mov ecx, esp
mov dword [ebp - 0x264], esp
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
mov byte [ebp - 4], 0x15
mov byte [ebp - 4], 0x13
mov edx, ebx
mov ecx, dword [ebp - 0x24c]
call fcn.0050de20
add esp, 8
test al, al
je 0x49ddda
push ecx
lea eax, [ebp - 0x230]
mov dword [ebp - 0x268], esp
mov ecx, esp
lea ebx, [ebp - 0x234]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__30]
mov byte [ebp - 4], 0x16
lea eax, [ebp - 0x210]
push ecx
mov ecx, esp
mov dword [ebp - 0x26c], esp
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
mov byte [ebp - 4], 0x17
mov byte [ebp - 4], 0x13
mov edx, ebx
mov ecx, dword [ebp - 0x24c]
call fcn.0050da10
add esp, 8
test al, al
je 0x49dc25
cmp dword [ebp - 0x234], 0
seta byte [ebp - 0x238]
push ecx
lea eax, [ebp - 0x220]
mov dword [ebp - 0x270], esp
mov ecx, esp
lea ebx, [ebp - 0x23c]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__30]
mov byte [ebp - 4], 0x18
lea eax, [ebp - 0x210]
push ecx
mov ecx, esp
mov dword [ebp - 0x274], esp
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
mov byte [ebp - 4], 0x19
mov byte [ebp - 4], 0x13
mov edx, ebx
mov ecx, dword [ebp - 0x24c]
call fcn.0050dcd0
add esp, 4
lea eax, [ebp - 0x22c]
mov ecx, esp
mov dword [ebp - 0x278], esp
lea ebx, [ebp - 0x21c]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__30]
mov byte [ebp - 4], 0x1a
lea eax, [ebp - 0x210]
push ecx
mov ecx, esp
mov dword [ebp - 0x27c], esp
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
mov byte [ebp - 4], 0x1b
mov byte [ebp - 4], 0x13
mov edx, ebx
mov ecx, dword [ebp - 0x24c]
call fcn.0050da10
add esp, 8
lea eax, [ebp - 0x214]
push dword [ebp - 0x240]
push dword [ebp - 0x238]
push dword [ebp - 0x23c]
push ecx
mov ecx, esp
mov dword [ebp - 0x280], esp
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__30]
mov byte [ebp - 4], 0x1c
mov byte [ebp - 4], 0x13
mov ecx, esi
call fcn.004a6dc0
mov ebx, eax
test ebx, ebx
je 0x49dd62
movzx eax, byte [esi + 0x84]
push ecx
push 0
push dword [ebp - 0x240]
push dword [ebp - 0x21c]
push dword [esi + 0x7c]
push dword [esi + 0x88]
push eax
push dword [ebp - 0x218]
lea eax, [ebp - 0x214]
push 1
push dword [ebp - 0x238]
push dword [ebp - 0x23c]
push ecx
mov ecx, esp
mov dword [ebp - 0x284], esp
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__30]
mov byte [ebp - 4], 0x1d
mov byte [ebp - 4], 0x13
mov ecx, ebx
call fcn.00415ac0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xf8]
jmp 0x49dd84
mov eax, dword [0x641a88]
push 0x842
push str.c:DevjenkinsworkspaceiTools_for_IDMDeployer_V9.87_servermodbusPortClasses.cpp
add eax, 0x32c
push 0x587798
push eax
call fcn.004ec040
add esp, 0x10
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x214]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x22c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x230]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x220]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x224]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
inc edi
jmp 0x49d9fe
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x214]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x22c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x230]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x220]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x224]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
jmp 0x49e273
cmp dword [esi + 0x9c], 1
je 0x49de6a
mov eax, dword [0x641a88]
push 0x850
push str.c:DevjenkinsworkspaceiTools_for_IDMDeployer_V9.87_servermodbusPortClasses.cpp
add eax, 0x32c
push 0x587798
push eax
call fcn.004ec040
add esp, 0x10
mov ecx, esi
call fcn.004a74e0
push 3
mov ecx, esi
call fcn.0049ec50
mov ecx, esi
call fcn.004a7290
mov dword [ebp - 0x234], eax
test eax, eax
je 0x49e273
push ecx
mov ecx, esp
mov dword [ebp - 0x284], esp
push str.BaudRate
mov dword [ebp - 0x218], 0x2580
lea edi, [ebp - 0x218]
mov dword [ebp - 0x21c], 8
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0x7d
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
mov byte [ebp - 4], 0x1e
lea eax, [ebp - 0x210]
push ecx
mov ecx, esp
mov dword [ebp - 0x280], esp
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
mov byte [ebp - 4], 0x1f
mov byte [ebp - 4], 4
mov edx, edi
mov ecx, dword [ebp - 0x24c]
call fcn.0050da10
mov ecx, dword [ebp - 0x218]
lea edi, [ebp - 0x21c]
test al, al
mov edx, 0x2580
cmove ecx, edx
add esp, 4
mov dword [ebp - 0x220], ecx
mov ecx, esp
mov dword [ebp - 0x27c], esp
push str.DataBits
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
mov byte [ebp - 4], 0x20
lea eax, [ebp - 0x210]
push ecx
mov ecx, esp
mov dword [ebp - 0x278], esp
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
mov byte [ebp - 4], 0x21
mov byte [ebp - 4], 4
mov edx, edi
mov ecx, dword [ebp - 0x24c]
call fcn.0050dcd0
mov ecx, dword [ebp - 0x21c]
lea edi, [ebp - 0x240]
test al, al
mov edx, 8
cmove ecx, edx
add esp, 4
mov dword [ebp - 0x224], ecx
mov ecx, esp
mov dword [ebp - 0x274], esp
push 0x58ef10
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
mov byte [ebp - 4], 0x22
lea eax, [ebp - 0x210]
push ecx
mov ecx, esp
mov dword [ebp - 0x270], esp
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
mov byte [ebp - 4], 0x23
mov byte [ebp - 4], 4
mov edx, edi
mov ecx, dword [ebp - 0x24c]
call fcn.0050dcd0
mov ecx, dword [ebp - 0x240]
lea edi, [ebp - 0x214]
xor edx, edx
test al, al
cmove ecx, edx
mov dword [ebp - 0x21c], ecx
add esp, 4
mov ecx, esp
mov dword [ebp - 0x26c], esp
push str.FlowControl
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
mov byte [ebp - 4], 0x24
lea eax, [ebp - 0x210]
push ecx
mov ecx, esp
mov dword [ebp - 0x268], esp
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
mov byte [ebp - 4], 0x25
mov byte [ebp - 4], 4
mov edx, edi
mov ecx, dword [ebp - 0x24c]
call fcn.0050da10
test al, al
lea edi, [ebp - 0x23c]
mov ecx, 2
cmovne ecx, dword [ebp - 0x214]
add esp, 4
mov dword [ebp - 0x218], ecx
mov ecx, esp
mov dword [ebp - 0x264], esp
push str.StopBits
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
mov byte [ebp - 4], 0x26
lea eax, [ebp - 0x210]
push ecx
mov ecx, esp
mov dword [ebp - 0x260], esp
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
mov byte [ebp - 4], 0x27
mov byte [ebp - 4], 4
mov edx, edi
mov ecx, dword [ebp - 0x24c]
call fcn.0050dcd0
mov ebx, dword [ebp - 0x23c]
lea edi, [ebp - 0x238]
xor ecx, ecx
test al, al
cmove ebx, ecx
add esp, 4
mov ecx, esp
mov dword [ebp - 0x25c], esp
push str.DefaultBlockSize
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
mov byte [ebp - 4], 0x28
lea eax, [ebp - 0x210]
push ecx
mov ecx, esp
mov dword [ebp - 0x258], esp
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
mov byte [ebp - 4], 0x29
mov byte [ebp - 4], 4
mov edx, edi
mov ecx, dword [ebp - 0x24c]
call fcn.0050da10
mov edi, dword [ebp - 0x238]
test al, al
mov ecx, 0x7d
cmove edi, ecx
add esp, 4
mov ecx, esp
mov dword [ebp - 0x230], esp
push str.CommsProtocol
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
mov byte [ebp - 4], 0x2a
push ecx
mov ecx, esp
mov dword [ebp - 0x22c], esp
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
mov byte [ebp - 4], 0x2b
mov byte [ebp - 4], 4
lea edx, [ebp - 0x214]
mov ecx, dword [ebp - 0x24c]
call fcn.0050da10
test al, al
mov eax, 1
cmovne eax, dword [ebp - 0x214]
push eax
movzx eax, byte [esi + 0x84]
push edi
push dword [esi + 0x7c]
push dword [esi + 0x88]
mov esi, dword [ebp - 0x234]
push eax
movzx eax, byte [esi + 0x1af0]
push eax
push ebx
push dword [ebp - 0x218]
lea eax, [ebp - 0x228]
push dword [ebp - 0x21c]
push dword [ebp - 0x224]
push dword [ebp - 0x220]
push ecx
mov ecx, esp
mov dword [ebp - 0x234], esp
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__30]
mov byte [ebp - 4], 0x2c
mov byte [ebp - 4], 4
mov ecx, esi
call fcn.00411400
push ecx
mov ecx, esp
mov dword [ebp - 0x288], esp
push str.EIBisyncGIDOnly
lea edi, [ebp - 0x214]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
mov byte [ebp - 4], 0x2d
lea eax, [ebp - 0x210]
push ecx
mov ecx, esp
mov dword [ebp - 0x28c], esp
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
mov byte [ebp - 4], 0x2e
mov byte [ebp - 4], 4
mov edx, edi
mov ecx, dword [ebp - 0x24c]
call fcn.0050da10
add esp, 8
test al, al
je 0x49e200
cmp dword [ebp - 0x214], 0
mov ecx, esi
mov eax, dword [esi]
jbe 0x49e1f8
push 1
jmp 0x49e1fa
push 0
call dword [eax + 0xb0]
push ecx
mov ecx, esp
mov dword [ebp - 0x28c], esp
push str.IgnoreCommsEcho
lea edi, [ebp - 0x214]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
mov byte [ebp - 4], 0x2f
lea eax, [ebp - 0x210]
push ecx
mov ecx, esp
mov dword [ebp - 0x288], esp
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__26]
mov byte [ebp - 4], 0x30
mov byte [ebp - 4], 4
mov edx, edi
mov ecx, dword [ebp - 0x24c]
call fcn.0050da10
add esp, 8
test al, al
je 0x49e269
cmp dword [ebp - 0x214], 0
mov ecx, esi
mov eax, dword [esi]
jbe 0x49e261
push 1
jmp 0x49e263
push 0
call dword [eax + 0x98]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xf8]
push dword [ebp - 0x24c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x254]
call esi
push dword [ebp - 0x250]
call esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x248]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov bl, 1
jmp 0x49d812