Function at 0x757630
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x103c
call fcn.0075c1f0
mov eax, dword [0x81a1d0]
push ebp
push esi
mov esi, dword [esp + 0x1048]
xor ebp, ebp
push edi
mov edi, dword [esp + 0x1050]
cmp edi, ebp
mov dword [esp + 0x1044], eax
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
jne 0x7576c9
cmp dword [esi + 0xc8], 4
jne 0x7576c9
mov eax, dword [esi + 0x78]
push 2
push eax
mov dword [esi + 0xc8], 5
call dword [sym.imp.KERNEL32.dll_SetCommMask]
mov ecx, dword [esi + 0x78]
push 0xf
push ecx
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov edx, dword [esi + 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov dword [esi + 0x78], 0xffffffff
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x1038]
call fcn.00760e8e
add esp, 0x103c
ret
mov eax, dword [esi + 0xc8]
cmp eax, 1
je 0x7576f9
cmp eax, 5
je 0x7576f4
pop edi
pop esi
mov eax, 0xfffffff8
pop ebp
mov ecx, dword [esp + 0x1038]
call fcn.00760e8e
add esp, 0x103c
ret
cmp eax, 1
jne 0x7576fe
call fcn.007568d0
push 0x20
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0075c560
lea ecx, [esp + 0x30]
push 0x3a
push ecx
call fcn.0075cc30
add esp, 0x14
test eax, eax
je 0x75773d
lea edx, [esp + 0x24]
push 0x3a
push edx
call fcn.0075cc30
push 0x3a
push edi
mov byte [eax], 0
call fcn.0075cc30
mov edi, eax
add esp, 0x10
inc edi
jmp 0x757742
mov edi, 0x783fe5
push 4
lea eax, [esp + 0x28]
push str.TAPI
push eax
call fcn.0075ef00
add esp, 0xc
test eax, eax
jne 0x757809
mov al, byte [esp + 0x28]
xor ebp, ebp
cmp al, 0x30
lea ecx, [esp + 0x28]
jl 0x757785
lea esp, [esp]
cmp al, 0x39
jg 0x757785
and eax, 0xf
lea edx, [ebp + ebp*4]
inc ecx
lea ebp, [eax + edx*2]
mov al, byte [ecx]
cmp al, 0x30
jge 0x757770
mov dword [esi + 0x78], ebp
mov ecx, dword [esi + 0x78]
push 0x1000
push 0x2000
push ecx
call dword [sym.imp.KERNEL32.dll_SetupComm]
mov eax, dword [esi + 0x78]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetCommTimeouts]
mov ecx, dword [esi + 0x78]
push 2
push ecx
call dword [sym.imp.KERNEL32.dll_SetCommMask]
test ebp, ebp
je 0x75784d
mov ecx, dword [esi + 0x78]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x48]
push eax
push ecx
mov dword [esp + 0x18], 0x1000
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0xc]
mov ecx, dword [esi + 0x78]
or eax, 1
and eax, 0xffffb4ff
mov dword [esp + 0x54], eax
push edx
lea eax, [esp + 0x48]
push eax
push ecx
mov byte [esp + 0x71], 0xa
call dword [sym.imp.KERNEL32.dll_SetCommConfig]
jmp 0x757986
push 0
push 0x40000080
push 3
push 0
push 0
push 0xc0000000
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x78], eax
jne 0x757788
pop edi
pop esi
mov eax, 0xfffffffc
pop ebp
mov ecx, dword [esp + 0x1038]
call fcn.00760e8e
add esp, 0x103c
ret
mov eax, dword [esi + 0x78]
lea edx, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x54], 0x1c
call dword [sym.imp.KERNEL32.dll_GetCommState]
mov eax, dword [esp + 0x54]
or eax, 1
and eax, 0xffffb4ff
or eax, 2
and eax, 0xffffff97
or eax, 0x10
test edi, edi
mov byte [esp + 0x65], 0xa
mov byte [esp + 0x5e], 8
mov byte [esp + 0x60], 0
mov dword [esp + 0x54], eax
je 0x757977
mov al, byte [edi]
test al, al
je 0x757977
cmp al, 0x2c
jne 0x7578a3
inc edi
push 4
push str.RTS
push edi
call fcn.0075ef00
add esp, 0xc
test eax, eax
jne 0x7578cb
mov ecx, dword [esp + 0x54]
and ecx, 0xffffefff
or ecx, 0x2000
mov dword [esp + 0x54], ecx
push 4
push str._RTS
push edi
call fcn.0075ef00
add esp, 0xc
test eax, eax
jne 0x7578f3
mov edx, dword [esp + 0x54]
and edx, 0xffffdfff
or edx, 0x1000
mov dword [esp + 0x54], edx
push 4
push str.CTS
push edi
call fcn.0075ef00
add esp, 0xc
test eax, eax
jne 0x75790c
or dword [esp + 0x54], 4
push 4
push str._CTS
push edi
call fcn.0075ef00
add esp, 0xc
test eax, eax
jne 0x757925
and dword [esp + 0x54], 0xfffffffb
mov al, byte [edi]
cmp al, 0x30
jl 0x757958
cmp al, 0x39
jg 0x757958
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x50], ecx
mov al, byte [edi]
cmp al, 0x30
jl 0x757958
lea ecx, [ecx]
cmp al, 0x39
jg 0x757958
and eax, 0xf
lea ecx, [ecx + ecx*4]
lea ecx, [eax + ecx*2]
inc edi
mov dword [esp + 0x50], ecx
mov al, byte [edi]
cmp al, 0x30
jge 0x757940
mov al, byte [edi]
cmp al, 0x2c
je 0x757894
test al, al
je 0x757894
mov al, byte [edi + 1]
inc edi
cmp al, 0x2c
jne 0x757962
jmp 0x757894
mov eax, dword [esi + 0x78]
lea edx, [esp + 0x4c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetCommState]
mov ecx, dword [esi + 0x78]
push 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov edx, dword [esi + 0x8c]
mov edi, dword [sym.imp.KERNEL32.dll_SetEvent]
push edx
call edi
mov eax, dword [esi + 0xa0]
push eax
call edi
mov ecx, dword [esi + 0xb4]
push ecx
call edi
mov ecx, dword [esi + 0xc8]
xor edx, edx
cmp ecx, 5
mov ecx, dword [esp + 0x1044]
setne dl
pop edi
xor eax, eax
add edx, 4
mov dword [esi + 0xc8], edx
pop esi
pop ebp
call fcn.00760e8e
add esp, 0x103c
ret