Function at 0x417890
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create raw socket
Create tcp socket
Get socket status
Send data
Send data on socket

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x442fc3
push eax
mov al, byte [0x44fb10]
mov dword fs:[0], esp
sub esp, 0x148
test al, al
push ebx
push ebp
push esi
push edi
je 0x417c8d
lea ecx, [esp + 0x10]
call fcn.0043fabe
xor edi, edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x160], edi
call fcn.0043fabe
lea ecx, [esp + 0x24]
mov byte [esp + 0x160], 1
call fcn.0043fabe
lea ecx, [esp + 0x20]
mov byte [esp + 0x160], 2
call fcn.0043fabe
lea ecx, [esp + 0x2c]
mov byte [esp + 0x160], 3
call fcn.0043fabe
mov ebx, 4
push 0x45d37c
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], bl
call fcn.0043fac4
push ecx
lea ecx, [esp + 0x14]
mov eax, esp
mov dword [esp + 0x34], esp
push ecx
push str.try_to_connect_server_ip:
push eax
call sub.MFC42.DLL_operator_1
call fcn.004193d0
add esp, 4
lea ecx, [esp + 0x10]
push 0x2e
call sub.MFC42.DLL_CString::Find
lea edx, [esp + 0x14]
push eax
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x164], 5
call fcn.0043fac4
lea ecx, [esp + 0x14]
mov byte [esp + 0x160], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::TrimLeft
push 0x44fde0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimLeft
push 0x2e
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
lea ecx, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x164], 6
call fcn.0043fac4
lea ecx, [esp + 0x14]
mov byte [esp + 0x160], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::TrimLeft
push 0x44fde0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimLeft
push 0x2e
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x164], 7
call fcn.0043fac4
lea ecx, [esp + 0x14]
mov byte [esp + 0x160], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimLeft
push 0x44fde0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimLeft
lea edx, [esp + 0x10]
lea ecx, [esp + 0x2c]
push edx
call fcn.0043fac4
mov eax, dword [esp + 0x1c]
mov esi, dword [sym.imp.MSVCRT.dll_atoi]
push eax
call esi
mov ecx, dword [esp + 0x28]
mov byte [esp + 0x34], al
push ecx
call esi
mov edx, dword [esp + 0x28]
mov byte [esp + 0x1c], al
push edx
call esi
mov byte [esp + 0x27], al
mov eax, dword [esp + 0x38]
push eax
call esi
mov edx, dword [esp + 0x24]
xor ecx, ecx
mov ch, al
mov eax, dword [esp + 0x40]
mov cl, byte [esp + 0x2b]
and edx, 0xff
shl ecx, 8
add esp, 0x10
or ecx, edx
shl ecx, 8
and eax, 0xff
mov ebp, 1
push 6
or ecx, eax
push ebp
push 2
mov esi, ecx
call sub.WSOCK32.dll_socket
mov cx, word [0x45d378]
mov dword [0x45d070], eax
push ecx
mov word [esp + 0x48], 2
mov dword [esp + 0x4c], esi
call sub.WSOCK32.dll_htons
lea edx, [esp + 0x34]
mov word [esp + 0x46], ax
mov eax, dword [0x45d070]
push edx
or esi, 0xffffffff
push 0x8004667e
push eax
mov dword [esp + 0x44], esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x40], ebp
call sub.WSOCK32.dll_ioctlsocket
lea ecx, [esp + 0x44]
push 0x10
push ecx
mov edx, dword [0x45d070]
push edx
call sub.WSOCK32.dll_connect
cmp eax, esi
jne 0x417b7a
mov eax, dword [0x45d070]
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x58]
mov dword [esp + 0x5c], eax
push edi
push edx
inc eax
push edi
push eax
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], 0x61a80
mov dword [esp + 0x68], ebp
call sub.WSOCK32.dll_select
test eax, eax
jle 0x417b76
mov edx, dword [0x45d070]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
push eax
push ecx
push 0x1007
push 0xffff
push edx
call sub.WSOCK32.dll_getsockopt
cmp dword [esp + 0x38], edi
sete bl
jmp 0x417b7c
xor bl, bl
jmp 0x417b7c
mov bl, 1
mov ecx, dword [0x45d070]
lea eax, [esp + 0x34]
push eax
push 0x8004667e
push ecx
mov dword [esp + 0x40], edi
call sub.WSOCK32.dll_ioctlsocket
test bl, bl
jne 0x417c19
mov edx, dword [0x45d070]
push edx
call sub.WSOCK32.dll_closesocket
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.connect_sick_overtime
call sub.MFC42.DLL_CString::CString_1
call fcn.004193d0
add esp, 4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x160], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x160], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x160], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x160], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x160], esi
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x417d54
push ecx
mov byte [0x44fb10], 0
mov ecx, esp
mov dword [esp + 0x34], esp
push str.connect_sick_ok
call sub.MFC42.DLL_CString::CString_1
call fcn.004193d0
add esp, 4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x160], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x160], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x160], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x160], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x160], esi
call sub.MFC42.DLL_CString::CString
mov ebx, dword [esp + 0x168]
lea eax, [ebx + 4]
push eax
mov dword [esp + 0x2c], eax
call sub.MFC42.DLL_operatornew
mov ecx, ebx
mov ebp, eax
mov esi, dword [esp + 0x170]
mov eax, ebx
shr ecx, 0x10
mov byte [ebp + 1], cl
mov ecx, ebx
mov edx, ecx
lea edi, [ebp + 4]
shr eax, 0x18
shr ecx, 2
mov byte [ebp], al
mov byte [ebp + 2], bl
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x28]
mov eax, dword [0x45d070]
push 0
push edi
push ebp
push eax
call sub.WSOCK32.dll_send
mov esi, eax
cmp esi, edi
je 0x417d46
lea ecx, [esp + 0x14]
mov byte [0x44fb10], 1
call fcn.0043fabe
push esi
lea ecx, [esp + 0x18]
push str.send_image_error_Send_Size_d
push ecx
mov dword [esp + 0x16c], 8
call sub.MFC42.DLL_CString::Format
add esp, 8
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call sub.MFC42.DLL_CString::CString_2
call fcn.004193d0
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x160], 0xffffffff
call sub.MFC42.DLL_CString::CString
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x158]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x154
ret