Function at 0x4491a0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
sub esp, 0x5c
mov eax, dword [0x4a2e7c]
xor eax, esp
mov dword [esp + 0x58], eax
push ebp
push esi
mov esi, dword [esp + 0x68]
push edi
mov edi, dword [esp + 0x78]
push 0x10
push esi
lea eax, [esp + 0x58]
push 0x11
push eax
mov dword [esp + 0x1c], esi
call fcn.0044cae0
mov eax, esi
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4491d4
sub eax, edx
cmp eax, 0x10
jae 0x4491e8
mov byte [esp + eax + 0x50], cl
push 1
push 0
push 0
push 0
push 1
push 2
mov byte [esp + 0x78], 0
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x449248
test edi, edi
je 0x449212
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x70]
push eax
push ecx
push edx
push esi
push str.NSocketUtil::connectSock____s___d___d__code:__d___failed.._n
push 3
call fcn.00415d30
add esp, 0x18
pop edi
pop esi
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0044b607
add esp, 0x5c
ret
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x50]
push eax
mov word [esp + 0x44], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0x44], eax
jne 0x4492b0
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x44928c
mov eax, dword [eax + 0xc]
cmp dword [eax], 0
jne 0x4492a8
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0044b607
add esp, 0x5c
ret
mov edx, dword [eax]
mov eax, dword [edx]
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x70]
push ebx
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x46], ax
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov ebx, eax
test ebx, ebx
jne 0x4492e5
test edi, edi
je 0x4492d9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x449482
push 0x10
push ebx
push ebp
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x449309
test edi, edi
je 0x449474
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
jmp 0x449474
push 0x10
lea edx, [esp + 0x48]
push edx
push ebp
mov dword [esp + 0x20], ebx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
jne 0x44932e
test edi, edi
je 0x44932e
call esi
mov dword [edi], eax
call esi
mov esi, dword [esp + 0x78]
push 1
push esi
push 1
lea eax, [esp + 0x20]
push eax
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp eax, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x4493de
cmp eax, 0x102
je 0x4493f3
push 0x2c
lea ecx, [esp + 0x1c]
push 0
push ecx
call fcn.0044c830
add esp, 0xc
lea edx, [esp + 0x18]
push edx
push ebx
push ebp
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
cmp eax, 0xffffffff
je 0x449474
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x449408
push str.NSocketUtil::connectSock_5_:_lNetworkEvents__0_IGNORE_for__spurious_WSAWaitForMultipleEvents__ISSUE__n
push 3
call fcn.00415d30
add esp, 8
call edi
mov ecx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x78]
push esi
push eax
push ecx
push str.NSocketUtil::connectSock_5_:_DETAIL_param:___s___d___d__code:__d___n
push 3
call fcn.00415d30
add esp, 0x18
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
push 1
lea edx, [esp + 0x20]
push edx
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp eax, 0xffffffff
jne 0x449355
call edi
mov ecx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x78]
push esi
push eax
push ecx
push str.NSocketUtil::connectSock_3_____s___d___d__code:__d___failed.._n
jmp 0x44946a
call edi
mov edx, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x14]
push esi
push edx
push eax
push str.NSocketUtil::connectSock_4_____s___d___d__code:__d___failed.._n
jmp 0x44946a
cmp eax, 0x10
jne 0x449457
xor ecx, ecx
nop
add ecx, 1
mov edx, 0x10
sar edx, cl
cmp edx, 1
jne 0x449410
cmp dword [esp + ecx*4 + 0x1c], 0
je 0x44943b
call edi
mov ecx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x78]
push esi
push eax
push ecx
push str.NSocketUtil::connectSock_6_____s___d___d__code:__d___failed.._n
jmp 0x44946a
push ebx
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0044b607
add esp, 0x5c
ret
call edi
mov edx, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x14]
push esi
push edx
push eax
push str.NSocketUtil::connectSock_8_____s___d___d__code:__d___failed.._n
push 3
call fcn.00415d30
add esp, 0x18
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
push ebx
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov ecx, dword [esp + 0x68]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
or eax, 0xffffffff
call fcn.0044b607
add esp, 0x5c
ret