Function at 0x10032bb0
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006265d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x78
mov eax, dword [0x10079040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov al, byte [esi + 0x58]
test al, al
jne 0x10033258
push 4
xorps xmm0, xmm0
mov dword [ebp - 0x58], 0
push str.._
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x54], 0
movups xmmword [ebp - 0x68], xmm0
call fcn.10006da0
lea eax, [esi + 0x5c]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x68]
call fcn.100133f0
cmp dword [ebp - 0x54], 0xf
lea eax, [ebp - 0x68]
push 0
cmova eax, dword [ebp - 0x68]
push 0x40000080
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x20], eax
cmp eax, 0xffffffff
je 0x1003321a
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 1
push 0
call edi
mov dword [esi + 0x28], eax
cmp eax, 0xffffffff
je 0x1003320a
push 0
push 0
xorps xmm0, xmm0
push 1
movups xmmword [esi + 0x44], xmm0
push 0
mov dword [esi + 0x54], 0
call edi
mov dword [esi + 0x54], eax
cmp eax, 0xffffffff
je 0x1003320a
cmp dword [esi + 0x84], 0
mov dword [ebp - 0x18], 0x1c200
mov byte [ebp - 0x86], 8
mov byte [ebp - 0x87], 0
mov byte [ebp - 0x85], 0
je 0x10033053
cmp dword [0x1007b9f0], 0xf
lea ecx, [esi + 0x74]
mov eax, 0x1007b9dc
cmova eax, dword [0x1007b9dc]
cmp dword [esi + 0x88], 0xf
jbe 0x10032ced
mov ecx, dword [esi + 0x74]
push dword [0x1007b9ec]
mov edx, dword [esi + 0x84]
push eax
call fcn.10014b10
add esp, 8
test eax, eax
je 0x10033053
push 8
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
push str.baudrate
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
call fcn.10006da0
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 1
push eax
lea edx, [esi + 0x74]
lea ecx, [ebp - 0x4c]
call fcn.1002ba10
add esp, 4
cmp dword [eax + 0x14], 0xf
jbe 0x10032d4c
mov eax, dword [eax]
push 0xa
push 0
push eax
call fcn.10048463
mov ecx, dword [ebp - 0x38]
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp ecx, 0xf
jbe 0x10032d90
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10032d86
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10033276
push ecx
push edx
call fcn.100337ea
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
cmp ecx, 0xf
jbe 0x10032dda
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10032dd0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10033276
push ecx
push edx
call fcn.100337ea
add esp, 8
push 8
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
push str.databits
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
call fcn.10006da0
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 2
push eax
lea edx, [esi + 0x74]
lea ecx, [ebp - 0x4c]
call fcn.1002ba10
add esp, 4
cmp dword [eax + 0x14], 0xf
jbe 0x10032e1c
mov eax, dword [eax]
push 0xa
push 0
push eax
call fcn.10048463
mov ecx, dword [ebp - 0x38]
add esp, 0xc
mov byte [ebp - 0x86], al
cmp ecx, 0xf
jbe 0x10032e63
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10032e59
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003327b
push ecx
push edx
call fcn.100337ea
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
cmp ecx, 0xf
jbe 0x10032ead
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10032ea3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003327b
push ecx
push edx
call fcn.100337ea
add esp, 8
push 8
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
push str.stopbits
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
call fcn.10006da0
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 3
push eax
lea edx, [esi + 0x74]
lea ecx, [ebp - 0x4c]
call fcn.1002ba10
add esp, 4
cmp dword [eax + 0x14], 0xf
jbe 0x10032eef
mov eax, dword [eax]
push 0xa
push 0
push eax
call fcn.10048463
mov ecx, dword [ebp - 0x38]
add esp, 0xc
mov byte [ebp - 0x87], al
cmp ecx, 0xf
jbe 0x10032f36
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10032f2c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10033280
push ecx
push edx
call fcn.100337ea
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
cmp ecx, 0xf
jbe 0x10032f80
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10032f76
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10033280
push ecx
push edx
call fcn.100337ea
add esp, 8
push 6
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
push str.parity
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
call fcn.10006da0
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 4
push eax
lea edx, [esi + 0x74]
lea ecx, [ebp - 0x4c]
call fcn.1002ba10
add esp, 4
cmp dword [eax + 0x14], 0xf
jbe 0x10032fc2
mov eax, dword [eax]
push 0xa
push 0
push eax
call fcn.10048463
mov ecx, dword [ebp - 0x38]
add esp, 0xc
mov byte [ebp - 0x85], al
cmp ecx, 0xf
jbe 0x10033009
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10032fff
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10033285
push ecx
push edx
call fcn.100337ea
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
cmp ecx, 0xf
jbe 0x10033053
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10033049
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10033285
push ecx
push edx
call fcn.100337ea
add esp, 8
lea eax, [ebp - 0x84]
mov dword [ebp - 0x34], 0x1c
push eax
push dword [esi + 0x20]
mov dword [esi + 0x2c], 0
mov dword [ebp - 0x84], 0x1c
call dword [sym.imp.KERNEL32.dll_GetCommState]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1003309d
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x84]
push eax
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_SetCommState]
jmp 0x1003309f
call edi
lea eax, [ebp - 0x50]
mov dword [esi + 0x2c], 0
push eax
push dword [esi + 0x20]
mov dword [ebp - 0x50], 0x1c
call dword [sym.imp.KERNEL32.dll_GetCommState]
test eax, eax
je 0x100330ec
mov al, byte [ebp - 0x85]
and dword [ebp - 0x48], 0xfffffffd
mov byte [ebp - 0x3d], al
mov al, byte [ebp - 0x86]
mov byte [ebp - 0x3e], al
mov al, byte [ebp - 0x87]
mov byte [ebp - 0x3c], al
lea eax, [ebp - 0x50]
push eax
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_SetCommState]
jmp 0x100330f1
call edi
mov dword [esi + 0x2c], eax
lea eax, [ebp - 0x34]
push eax
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetCommState]
test eax, eax
je 0x1003311e
and dword [ebp - 0x2c], 0xffff8e83
lea eax, [ebp - 0x34]
push eax
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_SetCommState]
test eax, eax
je 0x1003320a
lea eax, [ebp - 0x2c]
mov dword [esi + 0x2c], 0
push eax
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetCommTimeouts]
test eax, eax
je 0x10033205
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x32
push eax
push dword [esi + 0x20]
mov dword [ebp - 0x28], 0x32
mov dword [ebp - 0x24], 0xa
call dword [sym.imp.KERNEL32.dll_SetCommTimeouts]
test eax, eax
je 0x1003320a
lea eax, [ebp - 0x2c]
mov dword [esi + 0x2c], 0
push eax
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetCommTimeouts]
test eax, eax
je 0x10033205
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x20], 0x32
push eax
push dword [esi + 0x20]
mov dword [ebp - 0x1c], 0xa
call dword [sym.imp.KERNEL32.dll_SetCommTimeouts]
test eax, eax
je 0x1003320a
push 1
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_SetCommMask]
push 0xd
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_PurgeComm]
cmp dword [esi + 0x24], 0
je 0x100331c9
mov al, 1
mov dword [esi + 0x2c], 0xb7
mov byte [esi + 0x58], al
jmp 0x1003321c
lea eax, [ebp - 0x18]
mov dword [esi + 0x2c], 0
push eax
push 0x20
push esi
push 0x100320d0
push 0
push 0
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x24], eax
test eax, eax
jne 0x100331f9
call edi
mov dword [esi + 0x2c], eax
cmp dword [esi + 0x24], 0
setne al
mov byte [esi + 0x58], al
jmp 0x1003321c
call edi
mov dword [esi + 0x2c], eax
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x20], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x54]
mov byte [ebp - 0x85], al
cmp ecx, 0xf
jbe 0x10033258
mov edx, dword [ebp - 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10033248
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003328a
push ecx
push edx
call fcn.100337ea
mov al, byte [ebp - 0x85]
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10033290
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.1004280a
call fcn.1004280a
call fcn.1004280a
call fcn.1004280a
call fcn.1004280a
int3