Function at 0x48fb60
Capabilities:
Create thread
Initialize winsock library
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x4ff94c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x50af1c]
push ebx
xor ebx, ebx
push esi
push edi
cmp ecx, ebx
je 0x48fb87
call fcn.00434ed0
mov esi, dword [sym.imp.USER32.dll_LoadCursorW]
push 0x7f02
push ebx
call esi
mov edi, dword [sym.imp.USER32.dll_SetCursor]
push eax
call edi
mov eax, dword [0x4fac14]
cmp eax, 0x3e7
je 0x48fece
cmp eax, 0x3e6
je 0x48fece
cmp eax, 0x3e5
jne 0x48fc8b
cmp byte [0x50f19c], bl
je 0x48fed6
mov ecx, dword [0x5120e4]
mov edx, dword [ecx + 0x20]
push edx
push 0x50f19c
call fcn.00455600
add esp, 8
test eax, eax
je 0x48feee
nop
call fcn.00454970
test eax, eax
jns 0x48fc07
mov ecx, 0x50a900
call fcn.0043e020
test eax, eax
jne 0x48fbf0
call fcn.00454970
test eax, eax
je 0x48feee
push 0x7f00
mov eax, 1
push ebx
mov word [0x50eff4], ax
call esi
push eax
call edi
push 1
call fcn.00482010
mov ecx, dword [0x50ded8]
push ecx
call fcn.00408090
mov edx, dword [0x50ded8]
push edx
call fcn.00455d80
push 0x50f19c
call fcn.00444110
mov eax, dword [0x5120e4]
add esp, 0x10
cmp eax, ebx
je 0x48fc75
mov eax, dword [eax + 0x20]
push ebx
push 0x3e8
push ebx
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x512128], eax
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b7f56
mov esp, ebp
pop ebp
ret
push eax
lea ecx, [ebp - 0x24]
push str.COM_d
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x244]
call fcn.0040d600
push 0x4fabe8
lea ecx, [ebp - 0x248]
call fcn.0040d600
lea ecx, [ebp - 0x248]
call fcn.0040d4d0
push eax
lea ecx, [ebp - 0x244]
call fcn.0040d4d0
push eax
push str._s____s
push 0x50ecf8
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x10
push ebx
push 0x40000080
push 3
push ebx
push ebx
push 0xc0000000
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x50eae8], eax
cmp eax, 0xffffffff
jne 0x48fd34
lea ecx, [ebp - 0x248]
call fcn.0040d440
lea ecx, [ebp - 0x244]
call fcn.0040d440
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b7f56
mov esp, ebp
pop ebp
ret
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetCommMask]
mov ecx, dword [0x50eae8]
push 0x1000
push 0x1000
push ecx
call dword [sym.imp.KERNEL32.dll_SetupComm]
mov eax, dword [0x50eae8]
lea edx, [ebp - 0xb0]
push edx
push eax
mov dword [ebp - 0xb0], 0xffffffff
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xa0], 0x1388
call dword [sym.imp.KERNEL32.dll_SetCommTimeouts]
call fcn.0048e4e0
mov edi, eax
cmp edi, ebx
je 0x48fe7c
lea edx, [ebp - 0x24c]
push edx
push ebx
push ebx
push 0x48ea90
push ebx
mov ecx, 1
push ebx
mov word [0x50eff4], cx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
cmp esi, ebx
jne 0x48fde0
mov ecx, dword [0x50eae8]
xor eax, eax
push ecx
mov word [0x50eff4], ax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
jmp 0x48fe92
mov edx, dword [ebp - 0x24c]
push 0xffffffffffffffff
push esi
mov dword [0x50eaec], edx
mov dword [0x50efa8], esi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [0x50eae8]
push 5
push eax
call dword [sym.imp.KERNEL32.dll_EscapeCommFunction]
push 1
call fcn.00482010
mov ecx, dword [0x50ded8]
push ecx
call fcn.00408090
mov edx, dword [0x50ded8]
push edx
call fcn.00455d80
mov esi, dword [0x50f038]
add esp, 0xc
cmp esi, ebx
jne 0x48fe42
mov esi, dword [0x501860]
cmp byte [0x50f000], bl
je 0x48fe92
mov eax, dword [0x501864]
push ebx
push 0x483860
push esi
push 0xbf
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp eax, 1
je 0x48fe92
push 0x30
push 0x4fabe8
push str.Modem_connection_unsuccessful
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x48fe92
mov edx, dword [0x50eae8]
xor ecx, ecx
push edx
mov word [0x50eff4], cx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x7f00
push ebx
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
lea ecx, [ebp - 0x248]
call fcn.0040d440
lea ecx, [ebp - 0x244]
call fcn.0040d440
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b7f56
mov esp, ebp
pop ebp
ret
cmp byte [0x50f19c], bl
jne 0x48ff01
mov eax, dword [0x501860]
push 0x30
push 0x4fabe8
push str.Host_name_not_defined_
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b7f56
mov esp, ebp
pop ebp
ret
mov edi, 1
cmp eax, 0x3e6
jne 0x48ff21
mov dword [0x50ccd0], edi
mov dword [0x50ccec], ebx
mov dword [0x50cccc], ebx
jmp 0x48ff31
mov dword [0x50ccd0], ebx
mov dword [0x50ccec], 1
cmp dword [0x50ccdc], ebx
jne 0x48ff41
cmp dword [0x50cce4], ebx
je 0x48ff4f
cmp dword [0x50ccd8], ebx
jne 0x48ff4f
mov dword [0x50ccd8], edi
cmp dword [0x512118], ebx
jne 0x48ffbd
lea ecx, [ebp - 0x240]
push ecx
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x48ffb7
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
lea edx, [ebp - 0x9c]
push str.WSAStartup_got_error__d_
push edx
call dword [sym.imp.MSVCR100.dll__swprintf]
mov ecx, dword [0x501860]
add esp, 0xc
push 0x30
push 0x4fabe8
lea eax, [ebp - 0x9c]
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b7f56
mov esp, ebp
pop ebp
ret
mov dword [0x512118], edi
push 0x48ec30
call dword [sym.imp.WSOCK32.dll_WSASetBlockingHook]
mov edx, edi
mov word [0x51211c], dx
call fcn.0047c540
push ebx
push ebx
push 0x50f19c
call fcn.004788f0
add esp, 0xc
test eax, eax
jne 0x49003f
xor esi, esi
cmp word [0x51211c], bx
jge 0x490014
mov eax, dword [0x5120e4]
cmp eax, ebx
je 0x490014
mov eax, dword [eax + 0x20]
push ebx
push 0x803c
push 0x111
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov esi, edi
mov edx, dword [0x50ded8]
xor ecx, ecx
push edx
mov word [0x51211c], cx
call fcn.00455d80
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b7f56
mov esp, ebp
pop ebp
ret
push 0x7f00
xor eax, eax
mov ecx, edi
push ebx
mov word [0x51211c], ax
mov word [0x50eff4], cx
call esi
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push edi
call fcn.00482010
mov edx, dword [0x50ded8]
push edx
call fcn.00455d80
push 0x50f19c
call fcn.00444110
mov eax, dword [0x50f02c]
mov ecx, dword [0x517900]
add esp, 0xc
push 0x27
push 0x44
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_WSAAsyncSelect]
test eax, eax
jns 0x4900d0
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
lea edx, [ebp - 0x9c]
push str.WSAAsyncSelect_error__d
push edx
call dword [sym.imp.MSVCR100.dll__swprintf]
mov ecx, dword [0x501860]
add esp, 0xc
push 0x30
push 0x4e6530
lea eax, [ebp - 0x9c]
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [0x5120e4]
cmp eax, ebx
je 0x4900ef
mov edx, dword [eax + 0x20]
push ebx
push 0x3e8
push ebx
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x512128], eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b7f56
mov esp, ebp
pop ebp
ret