Function at 0x445940
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x4c5158
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x503040]
xor eax, esp
mov dword [esp + 0x54], eax
push esi
push edi
mov eax, dword [0x503040]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov dword [esp + 0x24], ecx
call fcn.004a56a0
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov edi, eax
mov dword [esp + 0x20], edi
call fcn.004a56a0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], esi
cmp edi, 0xffffffff
jne 0x4459c1
or edi, edi
mov dword [esp + 0x20], edi
jmp 0x4459d4
call fcn.004a56a0
mov dword [esp + 0x38], eax
xor eax, eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x28], edi
mov dword [esp + 0x70], 0
cmp edi, 0xffffffff
jne 0x4459f8
test eax, eax
je 0x4459f8
push str.socket_select_interrupter
lea eax, [esp + 0x38]
push eax
call fcn.0040ab00
mov dword [esp + 0x3c], 1
cmp edi, 0xffffffff
je 0x445a33
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea eax, [esp + 0x40]
push eax
push 4
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
call fcn.004a56a0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x445a38
call fcn.004a56a0
xorps xmm0, xmm0
mov dword [esp + 0x1c], 0x10
mov eax, 2
movdqa xmmword [esp + 0x44], xmm0
push 0x7f000001
mov word [esp + 0x48], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x48], eax
xor eax, eax
mov word [esp + 0x46], ax
cmp edi, 0xffffffff
jne 0x445a85
call fcn.004a56a0
mov ecx, 0x2719
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ecx
jmp 0x445b07
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0x10
lea eax, [esp + 0x48]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
mov dword [esp + 0x18], eax
call fcn.004a56a0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [esp + 0x38], esi
mov eax, dword [esp + 0x18]
mov dword [esp + 0x34], ecx
test eax, eax
jne 0x445b02
call fcn.004a56a0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], eax
lea eax, [esp + 0x34]
mov ecx, edi
push eax
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x4c]
call fcn.004455b0
add esp, 8
cmp eax, 0xffffffff
jne 0x445b1a
cmp dword [esp + 0x34], 0
je 0x445b1a
push str.socket_select_interrupter
lea eax, [esp + 0x38]
push eax
call fcn.0040ab00
cmp eax, 0xffffffff
jne 0x445acf
test ecx, ecx
je 0x445acf
push str.socket_select_interrupter
lea eax, [esp + 0x38]
push eax
call fcn.0040ab00
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push 0
call esi
cmp dword [esp + 0x48], eax
jne 0x445b35
push 0x7f000001
call esi
mov dword [esp + 0x48], eax
lea eax, [esp + 0x34]
mov ecx, edi
push eax
call fcn.00445290
add esp, 4
cmp eax, 0xffffffff
jne 0x445b5f
cmp dword [esp + 0x34], 0
je 0x445b5f
push str.socket_select_interrupter
lea eax, [esp + 0x38]
push eax
call fcn.0040ab00
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov dword [esp + 0x18], eax
call fcn.004a56a0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0x34], eax
cmp esi, 0xffffffff
jne 0x445ba3
or esi, esi
mov dword [esp + 0x18], esi
jmp 0x445bb6
call fcn.004a56a0
mov dword [esp + 0x38], eax
xor eax, eax
mov dword [esp + 0x34], 0
mov dword [esp + 0x2c], esi
mov byte [esp + 0x70], 1
cmp esi, 0xffffffff
jne 0x445bee
test eax, eax
je 0x445bd7
push str.socket_select_interrupter
lea eax, [esp + 0x38]
push eax
call fcn.0040ab00
call fcn.004a56a0
mov ecx, 0x2719
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ecx
jmp 0x445c75
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [esp + 0x1c]
lea eax, [esp + 0x48]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov dword [esp + 0x1c], eax
call fcn.004a56a0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov dword [esp + 0x38], esi
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x34], ecx
test eax, eax
jne 0x445c70
call fcn.004a56a0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], eax
lea eax, [esp + 0x34]
push eax
push ecx
mov ecx, edi
call fcn.00444e80
mov esi, eax
add esp, 8
mov dword [esp + 0x30], esi
mov byte [esp + 0x70], 2
cmp esi, 0xffffffff
jne 0x445c88
cmp dword [esp + 0x34], 0
je 0x445c88
push str.socket_select_interrupter
lea eax, [esp + 0x38]
push eax
call fcn.0040ab00
cmp eax, 0xffffffff
jne 0x445c3a
test ecx, ecx
je 0x445c3a
push str.socket_select_interrupter
lea eax, [esp + 0x38]
push eax
call fcn.0040ab00
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 1
push eax
push ecx
lea edx, [esp + 0x23]
mov byte [esp + 0x23], 0
mov ecx, edi
call fcn.00445650
add esp, 0xc
test eax, eax
je 0x445ccc
cmp dword [esp + 0x34], 0
je 0x445ccc
push str.socket_select_interrupter
lea eax, [esp + 0x38]
push eax
call fcn.0040ab00
mov dword [esp + 0x3c], 1
cmp edi, 0xffffffff
jne 0x445ce8
call fcn.004a56a0
mov dword [esp + 0x34], 0x2719
jmp 0x445d2f
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea eax, [esp + 0x40]
push eax
push 1
push 6
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [esp + 0x1c], eax
call fcn.004a56a0
mov edi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edi
jne 0x445d33
call fcn.004a56a0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], eax
lea eax, [esp + 0x34]
mov dword [esp + 0x40], 1
push eax
lea eax, [esp + 0x44]
mov byte [esp + 0x1b], 0
push eax
push ecx
lea edx, [esp + 0x23]
mov ecx, esi
call fcn.00445650
add esp, 0xc
test eax, eax
je 0x445d73
cmp dword [esp + 0x34], 0
je 0x445d73
push str.socket_select_interrupter
lea eax, [esp + 0x38]
push eax
call fcn.0040ab00
mov dword [esp + 0x3c], 1
cmp esi, 0xffffffff
je 0x445dab
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea eax, [esp + 0x40]
push eax
push 1
push 6
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.004a56a0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
jne 0x445db0
call fcn.004a56a0
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x70], 0xffffffff
mov dword [ecx], esi
mov esi, dword [esp + 0x20]
mov dword [ecx + 4], eax
cmp esi, 0xffffffff
je 0x445e02
xorps xmm0, xmm0
movq qword [esp + 0x34], xmm0
mov dword [esp + 0x34], 0
call fcn.004a56a0
mov dword [esp + 0x38], eax
lea eax, [esp + 0x34]
push eax
push 1
lea eax, [esp + 0x1f]
mov byte [esp + 0x1f], 0
push eax
push esi
call fcn.0043de20
add esp, 0x10
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.004b73db
mov esp, ebp
pop ebp
ret