Function at 0x4018a0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x437234
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
mov eax, dword [0x446b48]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x20], eax
xor ebx, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x134], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edx, dword [0x44b2c4]
lea ecx, [esp + 0x28]
stosb byte es:[edi], al
mov eax, dword [0x44b050]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
mov eax, dword [0x44cb00]
push 0x104
push ecx
push edx
push str.Protocol
push eax
mov byte [esp + 0x14c], 4
xor ebp, ebp
call edi
mov esi, dword [0x44b2c4]
lea eax, [esp + 0x28]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401957
cmp cl, bl
je 0x401953
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401957
add eax, 2
add esi, 2
cmp cl, bl
jne 0x401933
xor eax, eax
jmp 0x40195c
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x4019ba
mov eax, dword [0x446b48]
mov dword [esp + 0x10], eax
mov ecx, dword [0x44cb00]
mov edx, dword [0x44b050]
push ecx
push edx
push str.Protocol
lea eax, [esp + 0x1c]
push 0xb6
push eax
mov byte [esp + 0x148], 5
mov ebp, 1
call fcn.00429191
mov ecx, dword [esp + 0x24]
add esp, 0x14
push ebx
push ebx
push ecx
call fcn.00431cd2
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 4
call fcn.0042ab0d
jmp 0x4019d9
lea edx, [esp + 0x28]
lea ecx, [esp + 0x20]
push edx
call fcn.0042ac96
mov ecx, dword [esp + 0x140]
lea eax, [esp + 0x20]
push eax
call fcn.0042ac46
mov ecx, dword [0x44b050]
mov eax, dword [0x44b2c4]
push ecx
mov ecx, dword [0x44cb00]
lea edx, [esp + 0x2c]
push 0x104
push edx
push eax
push str.Commsport
push ecx
call edi
mov esi, dword [0x44b2c4]
lea eax, [esp + 0x28]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401a2c
cmp cl, bl
je 0x401a28
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401a2c
add eax, 2
add esi, 2
cmp cl, bl
jne 0x401a08
xor eax, eax
jmp 0x401a31
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x401a8f
mov eax, dword [0x446b48]
mov dword [esp + 0x10], eax
mov ecx, dword [0x44cb00]
mov edx, dword [0x44b050]
push ecx
push edx
push str.CommsPort
lea eax, [esp + 0x1c]
push 0xb6
push eax
mov byte [esp + 0x148], 6
mov ebp, 1
call fcn.00429191
mov ecx, dword [esp + 0x24]
add esp, 0x14
push ebx
push ebx
push ecx
call fcn.00431cd2
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 4
call fcn.0042ab0d
jmp 0x401ab7
lea edx, [esp + 0x28]
lea ecx, [esp + 0x18]
push edx
call fcn.0042ac96
lea ecx, [esp + 0x18]
call fcn.0042afd4
mov ecx, dword [esp + 0x144]
lea eax, [esp + 0x18]
push eax
call fcn.0042ac46
mov ecx, dword [0x44b050]
mov eax, dword [0x44b2c4]
push ecx
mov ecx, dword [0x44cb00]
lea edx, [esp + 0x2c]
push 0x104
push edx
push eax
push str.BaudRate
push ecx
call edi
mov esi, dword [0x44b2c4]
lea eax, [esp + 0x28]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401b0a
cmp cl, bl
je 0x401b06
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401b0a
add eax, 2
add esi, 2
cmp cl, bl
jne 0x401ae6
xor eax, eax
jmp 0x401b0f
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x401b6d
mov eax, dword [0x446b48]
mov dword [esp + 0x10], eax
mov ecx, dword [0x44cb00]
mov edx, dword [0x44b050]
push ecx
push edx
push str.BaudRate
lea eax, [esp + 0x1c]
push 0xb6
push eax
mov byte [esp + 0x148], 7
mov ebp, 1
call fcn.00429191
mov ecx, dword [esp + 0x24]
add esp, 0x14
push ebx
push ebx
push ecx
call fcn.00431cd2
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 4
call fcn.0042ab0d
jmp 0x401b91
mov esi, dword [esp + 0x144]
lea edx, [esp + 0x28]
push edx
lea ecx, [esi + 8]
call fcn.0042ac96
lea eax, [esp + 0x28]
push eax
call fcn.004197f9
add esp, 4
mov dword [esi + 4], eax
mov ecx, dword [0x44b050]
mov eax, dword [0x44b2c4]
push ecx
mov ecx, dword [0x44cb00]
lea edx, [esp + 0x2c]
push 0x104
push edx
push eax
push str.DataBits
push ecx
call edi
mov esi, dword [0x44b2c4]
lea eax, [esp + 0x28]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401be4
cmp cl, bl
je 0x401be0
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401be4
add eax, 2
add esi, 2
cmp cl, bl
jne 0x401bc0
xor eax, eax
jmp 0x401be9
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x401c47
mov eax, dword [0x446b48]
mov dword [esp + 0x10], eax
mov ecx, dword [0x44cb00]
mov edx, dword [0x44b050]
push ecx
push edx
push str.DataBits
lea eax, [esp + 0x1c]
push 0xb6
push eax
mov byte [esp + 0x148], 8
mov ebp, 1
call fcn.00429191
mov ecx, dword [esp + 0x24]
add esp, 0x14
push ebx
push ebx
push ecx
call fcn.00431cd2
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 4
call fcn.0042ab0d
jmp 0x401c6b
mov esi, dword [esp + 0x144]
lea edx, [esp + 0x28]
push edx
lea ecx, [esi + 0x10]
call fcn.0042ac96
lea eax, [esp + 0x28]
push eax
call fcn.004197f9
add esp, 4
mov dword [esi + 0xc], eax
mov ecx, dword [0x44b050]
mov eax, dword [0x44b2c4]
push ecx
mov ecx, dword [0x44cb00]
lea edx, [esp + 0x2c]
push 0x104
push edx
push eax
push str.Parity
push ecx
call edi
mov esi, dword [0x44b2c4]
lea eax, [esp + 0x28]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401cbe
cmp cl, bl
je 0x401cba
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401cbe
add eax, 2
add esi, 2
cmp cl, bl
jne 0x401c9a
xor eax, eax
jmp 0x401cc3
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x401d21
mov eax, dword [0x446b48]
mov dword [esp + 0x10], eax
mov ecx, dword [0x44cb00]
mov edx, dword [0x44b050]
push ecx
push edx
push str.Parity
lea eax, [esp + 0x1c]
push 0xb6
push eax
mov byte [esp + 0x148], 9
mov ebp, 1
call fcn.00429191
mov ecx, dword [esp + 0x24]
add esp, 0x14
push ebx
push ebx
push ecx
call fcn.00431cd2
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 4
call fcn.0042ab0d
jmp 0x401d4c
lea edx, [esp + 0x28]
lea ecx, [esp + 0x14]
push edx
call fcn.0042ac96
lea ecx, [esp + 0x14]
call fcn.0042afd4
mov ecx, dword [esp + 0x144]
lea eax, [esp + 0x14]
push eax
add ecx, 0x14
call fcn.0042ac46
mov edx, dword [0x44b050]
mov ecx, dword [0x44b2c4]
push edx
mov edx, dword [0x44cb00]
lea eax, [esp + 0x2c]
push 0x104
push eax
push ecx
push str.StopBits
push edx
call edi
mov esi, dword [0x44b2c4]
lea eax, [esp + 0x28]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401da0
cmp cl, bl
je 0x401d9c
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401da0
add eax, 2
add esi, 2
cmp cl, bl
jne 0x401d7c
xor eax, eax
jmp 0x401da5
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x401e03
mov eax, dword [0x446b48]
mov dword [esp + 0x10], eax
mov ecx, dword [0x44cb00]
mov edx, dword [0x44b050]
push ecx
push edx
push str.StopBits
lea eax, [esp + 0x1c]
push 0xb6
push eax
mov byte [esp + 0x148], 0xa
mov ebp, 1
call fcn.00429191
mov ecx, dword [esp + 0x24]
add esp, 0x14
push ebx
push ebx
push ecx
call fcn.00431cd2
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 4
call fcn.0042ab0d
jmp 0x401e27
mov esi, dword [esp + 0x144]
lea edx, [esp + 0x28]
push edx
lea ecx, [esi + 0x20]
call fcn.0042ac96
lea eax, [esp + 0x28]
push eax
call fcn.004197f9
add esp, 4
mov dword [esi + 0x1c], eax
mov ecx, dword [0x44b050]
mov eax, dword [0x44b2c4]
push ecx
mov ecx, dword [0x44cb00]
lea edx, [esp + 0x2c]
push 0x104
push edx
push eax
push str.FlowControl
push ecx
call edi
mov esi, dword [0x44b2c4]
lea eax, [esp + 0x28]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401e7a
cmp cl, bl
je 0x401e76
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401e7a
add eax, 2
add esi, 2
cmp cl, bl
jne 0x401e56
xor eax, eax
jmp 0x401e7f
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x401ed8
mov eax, dword [0x446b48]
mov dword [esp + 0x10], eax
mov ecx, dword [0x44cb00]
mov edx, dword [0x44b050]
push ecx
push edx
push str.FlowControl
lea eax, [esp + 0x1c]
push 0xb6
push eax
mov byte [esp + 0x148], 0xb
call fcn.00429191
mov ecx, dword [esp + 0x24]
add esp, 0x14
push ebx
push ebx
push ecx
call fcn.00431cd2
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 4
call fcn.0042ab0d
jmp 0x401f08
lea edx, [esp + 0x28]
lea ecx, [esp + 0x1c]
push edx
call fcn.0042ac96
lea ecx, [esp + 0x1c]
call fcn.0042afd4
mov ecx, dword [esp + 0x144]
lea eax, [esp + 0x1c]
push eax
add ecx, 0x18
call fcn.0042ac46
cmp ebp, 1
jne 0x401f63
lea ecx, [esp + 0x24]
mov byte [esp + 0x134], 3
call fcn.0042ab0d
lea ecx, [esp + 0x1c]
mov byte [esp + 0x134], 2
call fcn.0042ab0d
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], 1
call fcn.0042ab0d
lea ecx, [esp + 0x18]
mov byte [esp + 0x134], bl
call fcn.0042ab0d
lea ecx, [esp + 0x20]
mov dword [esp + 0x134], 0xffffffff
call fcn.0042ab0d
xor eax, eax
jmp 0x401fbf
lea ecx, [esp + 0x24]
mov byte [esp + 0x134], 3
call fcn.0042ab0d
lea ecx, [esp + 0x1c]
mov byte [esp + 0x134], 2
call fcn.0042ab0d
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], 1
call fcn.0042ab0d
lea ecx, [esp + 0x18]
mov byte [esp + 0x134], bl
call fcn.0042ab0d
lea ecx, [esp + 0x20]
mov dword [esp + 0x134], 0xffffffff
call fcn.0042ab0d
mov eax, 1
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret