Function at 0x43df4d
Capabilities:
Connect socket
Get socket status
Resolve function by parsing pe exports
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x288
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], edx
lea edx, [esp + 0x178]
mov dword [edx], ecx
lea ecx, [esp + 0x180]
mov dword [edx + 4], eax
lea eax, [ebp + 0x10]
mov dword [ecx], edx
lea edx, [esp + 0x70]
mov dword [ecx + 4], fcn.004a3427
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], fcn.00428870
mov dword [edx], 0x4dfd68
push 2
pop eax
mov dword [edx + 4], eax
and dword [edx + 0x10], 0
lea edi, [esp + 0x60]
mov dword [edx + 8], ecx
mov dword [edx + 0xc], eax
mov ecx, edi
call fcn.0043cb43
mov edx, dword [edi]
lea esi, [esp + 0x70]
mov ecx, esi
mov dword [esp + 8], edx
push dword [edi + 8]
call fcn.00489d20
pop eax
mov ecx, dword [esi]
test ecx, ecx
je 0x43e0e2
mov al, byte [esp + 0x73]
mov esi, dword [esp + 0x7c]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x14], ebx
mov byte [esp + 0x4f], al
movzx eax, word [esp + 0x71]
mov word [esp + 0x4d], ax
mov eax, dword [esp + 0x78]
mov byte [esp + 0x4c], cl
mov dword [esp + 0x50], edx
cmp eax, esi
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], esi
je 0x43e0f5
lea ecx, [eax + 0x20]
mov dword [esp + 0x54], ecx
movzx edi, word [eax]
mov byte [esp + 0x20], 0x1f
cmp di, 2
je 0x43e0fa
movzx ecx, word [eax + 0x12]
lea esi, [esp + 0x70]
mov word [esi + 0x10], cx
movsd xmm0, qword [eax + 2]
movsd xmm1, qword [eax + 0xa]
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
mov ecx, dword [eax + 0x14]
movzx ebx, word [eax + 0x1e]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 0x18]
mov dword [esp + 0x34], ecx
movzx ecx, word [eax + 0x1c]
mov word [esp + 0x12], cx
lea ecx, [esp + 0x20]
call fcn.0043addc
movzx eax, word [esi + 0x10]
movsd xmm0, qword [esi]
movsd xmm1, qword [esi + 8]
mov ecx, esi
mov word [esp + 0x190], ax
mov word [esp + 0x48], ax
mov eax, dword [esp + 0xc]
movsd qword [esp + 0x38], xmm0
movsd qword [esp + 0x40], xmm1
mov eax, dword [eax]
mov edx, dword [eax + 0xd0]
push dword [eax + 0xd8]
push dword [eax + 0xd4]
call fcn.00439907
pop eax
pop ecx
mov eax, dword [esi + 8]
cmp eax, 0x3b9aca00
je 0x43e143
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
cmp eax, 0x3b9aca01
jne 0x43e16c
mov eax, dword [esp + 0x14]
mov byte [eax], 0x19
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
jmp 0x43e125
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov byte [ebx], 0x19
mov dword [ebx + 8], ecx
mov dword [ebx + 4], eax
jmp 0x43e12e
mov byte [esp + 0x20], 0x1f
movsd xmm0, qword [esp + 0x20]
movsd xmm1, qword [esp + 0x28]
mov eax, dword [esp + 0x14]
movsd qword [esp + 0x182], xmm0
movsd qword [esp + 0x18a], xmm1
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
lea ecx, [esp + 0x4c]
call fcn.0043e798
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x64]
call fcn.004a8f7f
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x3e]
mov edx, dword [esp + 0x3a]
cmp di, 3
mov word [esp + 8], bx
jne 0x43e1ec
mov edi, esp
mov ecx, edi
push eax
call fcn.0043e7af
pop eax
mov cl, byte [edi]
jmp 0x43e32d
mov dword [esp + 0xc], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov eax, dword [0x53cb84]
cmp eax, 3
jne 0x43e48f
lea esi, [esp + 0x70]
mov edx, edi
mov ecx, esi
push 1
call fcn.0048a7b0
pop eax
mov bl, byte [esi]
cmp bl, 4
jne 0x43e2bc
mov eax, dword [esp + 0x74]
mov dword [esp + 0x70], 1
push esi
push 0x8004667e
mov dword [esp + 0x10], eax
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
movzx edx, word [esp + 0x12]
cmp eax, 0xffffffff
je 0x43e409
mov ebx, esi
test di, di
je 0x43e351
push 0x1c
pop eax
movups xmm0, xmmword [esp + 0x3a]
mov esi, dword [esp + 0x30]
mov cx, 0x17
jmp 0x43e364
movzx ecx, word [esp + 0x38]
mov dword [esp + 0x1c], edx
mov word [esp + 0xc], cx
lea ecx, [esp + 0x20]
mov byte [ecx], 4
mov cl, 4
cmp di, 2
je 0x43e2d4
movzx ecx, word [esp + 0xc]
mov word [esp + 0x70], di
mov ebx, eax
mov word [esp + 0x72], cx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x46]
mov dword [esp + 0x74], edx
lea ecx, [esp + 0x180]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x42]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x88], eax
movzx eax, word [esp + 0x12]
mov word [esp + 0x8c], ax
movzx eax, word [esp + 8]
mov word [esp + 0x8e], ax
push 4
pop edx
lea eax, [esp + 0x70]
push eax
call fcn.0043e7af
pop eax
cmp byte [esp + 0x180], 4
je 0x43e2e2
mov edi, dword [esp + 0x180]
mov esi, dword [esp + 0x184]
lea ecx, [esp + 0x20]
call fcn.0043e8bd
mov edx, dword [esp + 0x1c]
mov ecx, edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x24], esi
mov di, 2
mov eax, ebx
jmp 0x43e203
movzx eax, byte [esp + 0x73]
movzx edi, word [esp + 0x71]
mov esi, dword [esp + 0x74]
shl eax, 0x10
or edi, eax
jmp 0x43e467
cmp cl, 4
jne 0x43e2fe
mov edx, 0x4e9408
mov cl, 2
jmp 0x43e314
mov eax, dword [esp + 0x184]
lea ecx, [esp + 0x20]
mov dword [esp + 4], eax
mov byte [esp], 4
call fcn.0043e8bd
mov cl, 4
jmp 0x43e32d
movzx edx, word [esp + 0x21]
mov al, byte [esp + 0x23]
mov word [esp + 0x70], dx
mov edx, dword [esp + 0x18]
mov byte [esp + 0x72], al
movzx eax, word [esp + 0x70]
mov byte [esp], cl
mov word [esp + 1], ax
mov ah, byte [esp + 0x72]
mov byte [esp + 3], ah
mov dword [esp + 4], edx
mov esi, dword [esp + 4]
cmp cl, 4
je 0x43e43f
mov ebx, dword [esp]
cmp bl, 4
je 0x43e43f
mov edi, ebx
shrd edi, esi, 8
jmp 0x43e467
movzx edx, word [esp + 0x3c]
push 0x10
pop eax
mov esi, dword [esp + 0x38]
mov cx, 2
xorps xmm0, xmm0
rol dx, 8
mov word [esp + 0x70], cx
mov word [esp + 0x72], dx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x74], esi
movups xmmword [esp + 0x78], xmm0
mov dword [esp + 0x88], edx
push eax
push ebx
mov esi, ebx
mov ebx, dword [esp + 0x10]
push ebx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x43e3b8
and dword [esp + 0x70], 0
mov edi, eax
push esi
push 0x8004667e
push ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x43e409
push 4
pop ebx
jmp 0x43e42f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
and dword [esp + 0x70], 0
mov edi, eax
push esi
push 0x8004667e
push ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x43e409
mov ecx, edi
call fcn.0047c360
xor ebx, ebx
cmp al, 0xd
jne 0x43e42f
mov edx, dword [esp + 0x18]
mov eax, edx
or eax, dword [esp + 0xc]
mov eax, dword [esp + 0x1c]
jne 0x43e499
test eax, eax
jne 0x43e499
mov bl, 2
mov esi, 0x4eb404
jmp 0x43e44e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
shr eax, 8
xor ebx, ebx
mov ecx, esi
shl ecx, 0x18
mov dword [esp + 1], ecx
mov word [esp + 5], ax
mov eax, esi
shr eax, 0x18
mov byte [esp + 7], al
jmp 0x43e44e
mov dword [esp], ebx
mov dword [esp + 4], edi
cmp bl, 4
jne 0x43e44a
mov esi, dword [esp + 8]
mov ecx, dword [esp + 0x14]
mov al, 0x2c
mov dword [ecx + 4], esi
jmp 0x43e47b
mov esi, dword [esp + 4]
movzx eax, byte [esp + 3]
movzx edi, word [esp + 1]
shl eax, 0x10
or edi, eax
push dword [esp + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x14]
shl edi, 8
movzx eax, bl
or eax, edi
mov dword [ecx + 4], eax
mov al, 0x19
mov dword [ecx + 8], esi
mov byte [ecx], al
lea ecx, [esp + 0x4c]
call fcn.0043e798
mov ecx, dword [esp + 0x60]
jmp 0x43e132
call fcn.004cb450
jmp 0x43e186
mov ecx, SysReAllocString
mov edi, eax
cmp edx, ecx
cmovae edx, ecx
cmp dword [esp + 0xc], 0
cmovne edx, ecx
mov ecx, 0x3e8
mov ebx, edx
xor edx, edx
div ecx
xor esi, esi
mov dword [esp + 0x20], ebx
inc esi
test ebx, ebx
mov edx, eax
cmove edx, esi
cmp edi, ecx
lea edi, [esp + 0x78]
cmovae edx, eax
mov eax, 0xfc
mov dword [esp + 0x24], edx
push eax
push 0
push edi
call fcn.004bae60
add esp, 0xc
mov ebx, dword [esp + 8]
lea eax, [esp + 0x188]
mov ecx, 0xfc
mov dword [eax - 8], esi
mov dword [eax - 4], ebx
push ecx
push 0
push eax
call fcn.004bae60
add esp, 0xc
lea eax, [esp + 0x20]
mov dword [edi - 8], esi
mov dword [edi - 4], ebx
push eax
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x188]
push eax
push 0
push esi
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x43e549
cmp eax, 0xffffffff
jne 0x43e558
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
and word [esp + 1], 0
mov byte [esp + 3], 0
mov dword [esp + 4], eax
xor edx, edx
jmp 0x43e5c2
mov dword [esp + 4], 0x4eb3d8
mov bl, 2
jmp 0x43e436
cmp dword [esp + 0x180], 1
mov bl, 4
je 0x43e436
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x6c]
and dword [eax], 0
mov dword [ecx], 4
push ecx
push eax
push 0x1007
push 0xffff
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x43e5b3
mov ecx, eax
mov eax, dword [esp + 0x5c]
xor edx, edx
test eax, eax
sete dl
shl edx, 2
cmp ecx, 0xffffffff
je 0x43e5bb
test eax, eax
je 0x43e436
jmp 0x43e5bb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor edx, edx
mov dword [esp], edx
mov dword [esp + 4], eax
mov ebx, edx
jmp 0x43e436