Function at 0x4149c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5608a1
mov eax, dword fs:[0]
push eax
sub esp, 0x824
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 + 0x1b09], 0
jne 0x414ed9
movzx ecx, word [esi + 0x1b0a]
mov eax, ecx
cmp ecx, 0xa
ja 0x414a3d
inc eax
mov word [esi + 0x1b0a], ax
mov eax, dword [esi + 0x1adc]
push eax
mov eax, dword [0x641a88]
add eax, 0x32c
cmp ecx, 0xa
jne 0x414a5b
push ecx
push str.Exceeded__d_attempts_to_connect_via_modem_on_hardware_port__s
push 0x3eb
push eax
call fcn.004ec2c0
add esp, 0x14
xor al, al
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
push str.Connecting_via_Modem_on_hardware_port__s
push 0x3eb
push eax
call fcn.004ec2c0
add esp, 0x10
mov dword [ebp - 0x81c], 0
lea ecx, [ebp - 0x814]
mov dword [ebp - 0x818], 0
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x1b0c]
mov ecx, dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__31]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [eax - 0xc], 0
je 0x414bca
push eax
lea eax, [ebp - 0x814]
push str._s_r_n
push eax
call ecx
add esp, 0xc
lea eax, [ebp - 0x810]
push 0
push 0
push 0x400
push eax
push 0xffffffffffffffff
push dword [ebp - 0x814]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push dword [esi + 0x1b0c]
mov eax, dword [0x641a88]
push str.Sending_to_modem:__s
add eax, 0x32c
push 0x3eb
push eax
call fcn.004ec2c0
lea ecx, [ebp - 0x810]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x414b17
push 0
lea eax, [ebp - 0x81c]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x810]
push eax
push dword [esi + 0x1ad8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x818]
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
push dword [esi + 0x1ad8]
call ebx
mov eax, dword [ebp - 0x818]
cmp eax, 0x400
jae 0x414ee0
mov byte [ebp + eax - 0x410], 0
test eax, eax
je 0x414bbd
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x830]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__20]
mov byte [ebp - 4], 1
push dword [eax]
mov eax, dword [0x641a88]
push str.Response_from_modem:__s
add eax, 0x32c
push 0x3eb
push eax
call fcn.004ec2c0
add esp, 0x10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x830]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push 0x3e8
call edi
mov ecx, dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__31]
push dword [esi + 0x1b10]
lea eax, [ebp - 0x814]
push str._s_r_n
push eax
call ecx
add esp, 0xc
lea eax, [ebp - 0x810]
push 0
push 0
push 0x400
push eax
push 0xffffffffffffffff
push dword [ebp - 0x814]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push dword [esi + 0x1b10]
mov eax, dword [0x641a88]
push str.Sending_to_modem:__s
add eax, 0x32c
push 0x3eb
push eax
call fcn.004ec2c0
lea ecx, [ebp - 0x810]
add esp, 0x10
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x414c30
push 0
lea eax, [ebp - 0x81c]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x810]
push eax
push dword [esi + 0x1ad8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x818]
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
push dword [esi + 0x1ad8]
call ebx
mov eax, dword [ebp - 0x818]
cmp eax, 0x400
jae 0x414ee0
mov byte [ebp + eax - 0x410], 0
test eax, eax
je 0x414cd6
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x830]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__20]
mov byte [ebp - 4], 2
push dword [eax]
mov eax, dword [0x641a88]
push str.Response_from_modem:__s
add eax, 0x32c
push 0x3eb
push eax
call fcn.004ec2c0
add esp, 0x10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x830]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea eax, [ebp - 0x82c]
push eax
call fcn.004cf540
lea eax, [ebp - 0x824]
push eax
call fcn.004cf540
xor eax, eax
mov dword [ebp - 0x818], eax
nop word [eax + eax]
cmp eax, 0xafc8
jae 0x414ddf
push 0x3e8
call edi
push 0
lea eax, [ebp - 0x818]
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
push dword [esi + 0x1ad8]
call ebx
mov eax, dword [ebp - 0x818]
cmp eax, 0x400
jae 0x414ee0
mov byte [ebp + eax - 0x410], 0
test eax, eax
je 0x414d92
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x830]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__20]
mov byte [ebp - 4], 3
push dword [eax]
mov eax, dword [0x641a88]
push str.Response_from_modem:__s
add eax, 0x32c
push 0x3eb
push eax
call fcn.004ec2c0
add esp, 0x10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x830]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea eax, [ebp - 0x824]
push eax
call fcn.004cf540
lea edx, [ebp - 0x824]
lea ecx, [ebp - 0x82c]
call fcn.00509f60
test eax, eax
jne 0x414dcb
mov ecx, dword [ebp - 0x824]
mov edx, dword [ebp - 0x820]
mov dword [ebp - 0x82c], ecx
mov dword [ebp - 0x828], edx
cmp dword [ebp - 0x818], 1
jb 0x414d00
cmp eax, 0xafc8
jb 0x414dfc
mov eax, dword [0x641a88]
push str.Connecting_via_Modem_timed_out
add eax, 0x32c
push 0x3eb
push eax
call fcn.004ec2c0
add esp, 0xc
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x830]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__20]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x814]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__27]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x830]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x814]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__23]
push 0
push dword [esi + 0x1b14]
lea ecx, [ebp - 0x814]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__25]
test eax, eax
mov eax, dword [0x641a88]
jns 0x414e89
push str.Failed_to_connect_via_modem
add eax, 0x32c
push 0x3eb
push eax
call fcn.004ec2c0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x814]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
jmp 0x414a3d
push str.Successfully_connected_via_modem
add eax, 0x32c
push 0x3eb
push eax
call fcn.004ec2c0
add esp, 0xc
mov byte [esi + 0x1b09], 1
push 0x3e8
call edi
lea eax, [esi + 0x68]
push eax
call fcn.004cf540
push 0xc
push dword [esi + 0x1ad8]
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x814]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov al, 1
jmp 0x414a3f
call fcn.0055c99e
int3