Function at 0x4098e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x430468
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 1
call fcn.004258f4
mov eax, dword [0x440b2c]
mov dword [esp + 0x10], eax
mov ecx, dword [esi + 0x14c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x147
push ecx
mov dword [esp + 0x38], 0
call ebp
lea edx, [esp + 0x10]
lea ecx, [esi + 0x130]
push edx
push eax
call fcn.0042b4c7
mov eax, dword [esp + 0x10]
mov eax, dword [eax - 8]
cmp eax, 4
jne 0x40996e
lea ecx, [esp + 0x18]
push 1
push ecx
lea ecx, [esp + 0x18]
call fcn.00420f78
mov eax, dword [eax]
push eax
call fcn.00414f2f
add esp, 4
mov ebx, eax
lea ecx, [esp + 0x18]
jmp 0x40998f
lea edx, [esp + 0x18]
push 2
push edx
lea ecx, [esp + 0x18]
call fcn.00420f78
mov eax, dword [eax]
push eax
call fcn.00414f2f
add esp, 4
mov ebx, eax
lea ecx, [esp + 0x18]
call fcn.00426e13
mov eax, dword [esi + 0x188]
push 0
push 0
push 0x147
push eax
call ebp
lea ecx, [esp + 0x10]
push ecx
push eax
lea ecx, [esi + 0x16c]
call fcn.0042b4c7
mov edx, dword [esp + 0x10]
push edx
call fcn.00414f2f
add esp, 4
mov edi, eax
mov eax, dword [esi + 0x98]
push 0
push 0
push pe_nt_image_headers32
push eax
call ebp
test eax, eax
je 0x4099e1
mov ebx, 0x63
push edi
push ebx
call sub.XZ_F35_API.dll_SUNSON_OpenCom
cmp eax, 0xffffffff
je 0x409b3f
test eax, eax
mov eax, dword [0x43fcb8]
jne 0x409a54
test eax, eax
push ebx
jne 0x409a0b
lea ecx, [esp + 0x14]
push 0x43fea8
push ecx
jmp 0x409a15
lea edx, [esp + 0x14]
push str.Com_d_opend_failed_please_check_port_I_O_or_check_current_baudrate_set_
push edx
call fcn.00421374
add esp, 0xc
lea eax, [esp + 0x10]
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.00426b88
mov ecx, esi
call fcn.00409d00
mov ecx, esi
call fcn.00409be0
push 0
mov ecx, esi
mov dword [0x442b20], 0
call fcn.004258f4
jmp 0x409bab
test eax, eax
push edi
push ebx
jne 0x409a66
lea ecx, [esp + 0x18]
push 0x43fe3c
push ecx
jmp 0x409a70
lea edx, [esp + 0x18]
push str.Com_d_open_success_current_baudrate__ld_
push edx
call fcn.00421374
add esp, 0x10
lea eax, [esp + 0x10]
mov dword [0x43fcc0], edi
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.00426b88
mov ecx, esi
call fcn.00409d00
push 0
mov ecx, esi
call fcn.004258f4
mov edi, 1
mov dword [0x442b20], edi
call fcn.0042c428
call fcn.0042c428
mov eax, dword [eax + 0xc]
push 0x83
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [esi + 0x1b4], eax
mov ecx, dword [esi + 0xd4]
push 0
push eax
push 0x170
push ecx
call ebp
push str.Open_comport_time
lea ecx, [esp + 0x1c]
mov dword [0x442b20], edi
call fcn.00426e81
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
mov byte [esp + 0x30], 1
call fcn.00426b88
mov ecx, esi
call fcn.00409d60
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 0
call fcn.00426e13
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.00426e13
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [0x440b2c]
mov dword [esp + 0x14], eax
mov eax, dword [0x43fcb8]
mov byte [esp + 0x28], 2
test eax, eax
jne 0x409b5d
push 0x43fddc
jmp 0x409b62
push str.Not_find_comport_or_open_failed_
lea ecx, [esp + 0x18]
call fcn.00426f9c
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.00426b88
mov ecx, esi
call fcn.00409d00
mov ecx, esi
call fcn.00409be0
push 0
mov ecx, esi
mov dword [0x442b20], 0
call fcn.004258f4
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 0
call fcn.00426e13
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.00426e13
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret