Function at 0x480cd0
Capabilities:
Resolve function by parsing pe exports
Set socket configuration

Disassembly:
sub esp, 0x44
mov eax, dword [0x7f9c40]
xor eax, esp
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x54]
push ebx
mov ebx, dword [esp + 0x4c]
push ebp
mov ebp, dword [esp + 0x64]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x14], eax
cmp ecx, 2
je 0x480d0e
cmp ecx, 0x17
jne 0x480eda
mov eax, dword [esp + 0x60]
cmp eax, 1
je 0x480d20
cmp eax, 5
je 0x480d20
xor esi, esi
jmp 0x480d9f
lea edx, [edi + 0xc]
xor ecx, ecx
xor eax, eax
lock cmpxchg dword [edx], ecx
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
jne 0x480d94
push eax
push eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
push 4
lea eax, [esp + 0x20]
mov dword [esp + 0x34], 0x25a207b9
push eax
push 0x10
lea eax, [esp + 0x3c]
mov dword [esp + 0x40], 0x4660ddf3
push eax
push 0xc8000006
push dword [ebx]
mov dword [esp + 0x50], 0xe576e98e
mov dword [esp + 0x54], 0x3e06748c
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x480d87
mov eax, edi
mov dword [esp + 0x10], eax
jmp 0x480d8b
mov eax, dword [esp + 0x10]
lea ecx, [edi + 0xc]
xchg dword [ecx], eax
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x5c]
xor eax, eax
cmp esi, edi
cmove esi, eax
test esi, esi
je 0x480eda
lea eax, [ebp + 0x20]
mov dword [esp + 0x4c], 0
push eax
cmp ecx, 2
mov edx, 0x10
mov eax, 0x1c
xorps xmm0, xmm0
cmove eax, edx
movq qword [esp + 0x48], xmm0
push eax
lea eax, [esp + 0x3c]
push eax
push dword [ebx]
movups xmmword [esp + 0x44], xmm0
mov word [esp + 0x44], cx
call fcn.00477440
mov ecx, dword [ebp + 0x28]
add esp, 0x10
test cl, 1
je 0x480e85
cmp ecx, 1
jne 0x480e01
cmp dword [ebp + 0x20], 0
je 0x480e85
mov ecx, dword [0x7f5030]
mov eax, dword [0x7f5034]
cmp ecx, 0x257edfd1
jne 0x480e1b
cmp eax, 0xb2ab117a
je 0x480e2a
cmp ecx, 0x257edfd0
jne 0x480e2e
cmp eax, 0xb2ab117a
jne 0x480e2e
mov al, 1
jmp 0x480e42
mov eax, dword [0x7f5028]
mov ecx, 0x7f5028
push 0x2726
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
add eax, 2
mov dword [esp + 0x24], 0x2726
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x2c], 0x7f5028
lea eax, [ebp + 0x20]
movq xmm0, qword [esp + 0x28]
push eax
movq qword [esp + 0x2c], xmm0
call fcn.0046a970
add esp, 8
test al, al
jne 0x480e85
mov ecx, dword [edi + 4]
jmp 0x480fa9
mov byte [ebp + 0x3c], 1
mov eax, dword [edi + 4]
add eax, 0x18
lock inc dword [eax]
mov ebp, dword [esp + 0x14]
push ebp
push 0
push 0
push 0
push dword [esp + 0x78]
push dword [esp + 0x30]
push dword [ebx]
call esi
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x480ecc
cmp eax, 0x3e5
je 0x480ecc
mov ecx, dword [edi + 4]
push esi
push eax
push ebp
call fcn.0047cd40
jmp 0x480fb1
mov ecx, dword [edi + 4]
push ebp
call fcn.0047ce70
jmp 0x480fb1
lea edx, [edi + 8]
xor ecx, ecx
xor eax, eax
lock cmpxchg dword [edx], ecx
mov ecx, eax
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x480f26
mov eax, dword [edi]
push ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov esi, dword [eax]
lea eax, [esp + 0x18]
push eax
call fcn.00461cc0
add esp, 8
lea eax, [esp + 0x14]
mov ecx, esi
push dword [esi + 0x18]
push 0x461460
push eax
call fcn.0047b220
mov dword [esp + 0x10], eax
lea ecx, [edi + 8]
xchg dword [ecx], eax
test byte [ebx + 4], 3
jne 0x480ffb
mov eax, dword [ebx]
lea edi, [ebp + 0x20]
cmp eax, 0xffffffff
jne 0x480fc9
mov ecx, dword [0x7f5030]
mov eax, dword [0x7f5034]
cmp ecx, 0x257edfd1
jne 0x480f58
cmp eax, 0xb2ab117a
je 0x480f67
cmp ecx, 0x257edfd0
jne 0x480f6b
cmp eax, 0xb2ab117a
jne 0x480f6b
mov al, 1
jmp 0x480f7f
mov eax, dword [0x7f5028]
mov ecx, 0x7f5028
push 0x2719
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
mov dword [esp + 0x24], 0x2719
add eax, 2
mov dword [esp + 0x28], 0x7f5028
movq xmm0, qword [esp + 0x24]
movq qword [edi], xmm0
mov dword [edi + 8], eax
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 0x14]
push 0
push ebp
call fcn.0047d860
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.006def69
add esp, 0x44
ret 0x1c
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 1
push ecx
push 0x8004667e
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
mov ecx, eax
shr ecx, 0x1f
push ecx
push edi
call fcn.0047ba10
add esp, 8
test esi, esi
js 0x480fa2
or byte [ebx + 4], 2
lea eax, [ebp + 0x20]
push eax
push dword [esp + 0x6c]
push dword [esp + 0x24]
push dword [ebx]
call fcn.00478a50
add esp, 0x10
test eax, eax
je 0x480fa2
mov edi, dword [0x7f5030]
mov esi, dword [0x7f5034]
cmp edi, 0x257edfd1
jne 0x481031
cmp esi, 0xb2ab117a
je 0x481041
cmp edi, 0x257edfd0
jne 0x481045
cmp esi, 0xb2ab117a
jne 0x481045
mov al, 1
jmp 0x481065
mov eax, dword [0x7f5028]
mov ecx, 0x7f5028
push 0x2734
mov eax, dword [eax + 0x18]
call eax
mov esi, dword [0x7f5034]
mov edi, dword [0x7f5030]
movzx eax, al
add eax, 2
mov dword [esp + 0x24], 0x2734
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x2c], 0x7f5028
lea eax, [ebp + 0x20]
movq xmm0, qword [esp + 0x28]
push eax
movq qword [esp + 0x2c], xmm0
call fcn.0046a970
add esp, 8
test al, al
jne 0x481117
cmp edi, 0x257edfd1
jne 0x4810b0
cmp esi, 0xb2ab117a
je 0x4810c0
cmp edi, 0x257edfd0
jne 0x4810c4
cmp esi, 0xb2ab117a
jne 0x4810c4
mov al, 1
jmp 0x4810d8
mov eax, dword [0x7f5028]
mov ecx, 0x7f5028
push 0x2733
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
add eax, 2
mov dword [esp + 0x24], 0x2733
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x2c], 0x7f5028
lea eax, [ebp + 0x20]
movq xmm0, qword [esp + 0x28]
push eax
movq qword [esp + 0x2c], xmm0
call fcn.0046a970
add esp, 8
test al, al
je 0x480fa2
mov ecx, dword [esp + 0x10]
lea eax, [ebx + 0x10]
push 0
push 0
push ebp
xorps xmm0, xmm0
movq qword [ebp + 0x20], xmm0
push eax
mov dword [ebp + 0x28], 0
push dword [ebx]
push 3
call fcn.00481160
mov ecx, dword [esp + 0x50]
mov eax, 3
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.006def69
add esp, 0x44
ret 0x1c