Function at 0x41ad00
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c5695
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x641490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x118], 0
lea ecx, [ebp - 0x80]
call fcn.00410490
mov dword [ebp - 4], 0
mov dword [ebp - 0x48], 0
push 0xc
lea ecx, [ebp - 0x20]
call fcn.00408300
lea ecx, [ebp - 0x20]
call fcn.00409ed0
mov byte [ebp - 4], 1
cmp dword [ebp + 0xc], 0xffffffff
jne 0x41ad7d
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.004530a0
add esp, 0xc
jmp 0x41ad95
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004531d0
add esp, 0x10
lea ecx, [ebp - 0x20]
call fcn.0041d540
test eax, eax
jne 0x41ae31
mov dword [ebp - 0x48], 1
mov byte [ebp - 0x80], 0
mov dword [ebp - 0x138], 0x7df098
mov ecx, dword [ebp - 0x138]
push ecx
lea edx, [ebp - 0x21c]
push edx
call fcn.0044e200
add esp, 8
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x148]
add eax, 8
push eax
lea ecx, [ebp - 0x7c]
call fcn.0040f5d0
lea ecx, [ebp - 0x21c]
call fcn.00419420
lea ecx, [ebp - 0x80]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0041b490
mov edx, dword [ebp - 0x118]
or edx, 1
mov dword [ebp - 0x118], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0041d520
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00409a10
mov eax, dword [ebp + 8]
jmp 0x41b46d
cmp dword [ebp + 0xc], 0xffffffff
je 0x41af3d
cmp dword [ebp + 0x10], 1
jne 0x41af3d
push 0
lea ecx, [ebp - 0x20]
call fcn.0041d560
mov eax, dword [eax + 4]
push eax
lea ecx, [ebp - 0x98]
push ecx
call fcn.004435f0
add esp, 8
mov byte [ebp - 4], 2
push 0xc
lea ecx, [ebp - 0x30]
call fcn.00408300
lea ecx, [ebp - 0x30]
call fcn.00409ed0
mov byte [ebp - 4], 3
lea edx, [ebp - 0x30]
push edx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x164], esp
lea eax, [ebp - 0x98]
push eax
call fcn.00406580
mov dword [ebp - 0x158], eax
call fcn.00421930
add esp, 0x1c
lea ecx, [ebp - 0x30]
call fcn.0040b890
test eax, eax
jbe 0x41af22
mov dword [ebp - 0x48], 1
mov byte [ebp - 0x80], 0
push 0x611a57
lea ecx, [ebp - 0x7c]
call fcn.00408b30
lea ecx, [ebp - 0x80]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0041b490
mov edx, dword [ebp - 0x118]
or edx, 1
mov dword [ebp - 0x118], edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0040b810
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x98]
call fcn.004066a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0041d520
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00409a10
mov eax, dword [ebp + 8]
jmp 0x41b46d
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0040b810
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x98]
call fcn.004066a0
mov dword [ebp - 0x128], 0
push 4
lea ecx, [ebp - 0x14]
call fcn.00408300
lea ecx, [ebp - 0x14]
call fcn.0040b9c0
lea eax, [ebp - 0x160]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040b830
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
jmp 0x41af80
push 0
lea edx, [ebp - 0x168]
push edx
lea ecx, [ebp - 0x14]
call fcn.0041d580
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040b860
push eax
lea ecx, [ebp - 0x14]
call fcn.0040ba50
movzx ecx, al
test ecx, ecx
je 0x41b434
lea ecx, [ebp - 0x14]
call fcn.0040b9e0
mov edx, dword [eax]
mov dword [ebp - 0x114], edx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x110], ecx
mov edx, dword [eax + 8]
mov dword [ebp - 0x10c], edx
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x11c], eax
cmp dword [ebp - 0x11c], 0xffffffff
jne 0x41b09c
mov byte [ebp - 0x80], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [ebp - 0x198]
push eax
call fcn.00408770
add esp, 8
mov dword [ebp - 0x140], eax
mov ecx, dword [ebp - 0x140]
mov dword [ebp - 0x144], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x144]
push edx
push 0x6140b0
lea eax, [ebp - 0x1b0]
push eax
call fcn.00408b50
add esp, 0xc
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp - 0x134]
push ecx
lea ecx, [ebp - 0x7c]
call fcn.0040f5d0
lea ecx, [ebp - 0x1b0]
call fcn.004066a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x198]
call fcn.004066a0
lea edx, [ebp - 0x80]
push edx
mov ecx, dword [ebp + 8]
call fcn.0041b490
mov eax, dword [ebp - 0x118]
or eax, 1
mov dword [ebp - 0x118], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0041d520
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00409a10
mov eax, dword [ebp + 8]
jmp 0x41b46d
mov ecx, dword [0x642708]
mov dword [ebp - 0x24], ecx
push 4
lea edx, [ebp - 0x24]
push edx
push 0x1002
push 0xffff
mov eax, dword [ebp - 0x11c]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [ebp - 0x24]
push ecx
push 0x1001
push 0xffff
mov edx, dword [ebp - 0x11c]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [ebp - 0x110]
push eax
lea ecx, [ebp - 0xb0]
push ecx
call fcn.004435f0
add esp, 8
mov byte [ebp - 4], 5
push 0x1c8
call fcn.0045fea5
add esp, 4
mov dword [ebp - 0x124], eax
mov byte [ebp - 4], 6
cmp dword [ebp - 0x124], 0
je 0x41b143
push 0x1c8
mov ecx, dword [ebp - 0x124]
call fcn.00408300
mov edx, dword [0x642704]
push edx
mov ecx, dword [ebp - 0x124]
call fcn.004204a0
mov dword [ebp - 0x12c], eax
jmp 0x41b14d
mov dword [ebp - 0x12c], 0
mov eax, dword [ebp - 0x12c]
mov dword [ebp - 0x13c], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x13c]
mov dword [ebp - 0x108], ecx
mov edx, dword [ebp - 0x108]
mov dword [edx + 4], 0x41c050
mov eax, dword [ebp - 0x108]
mov dword [eax + 8], 0x41c140
mov ecx, dword [ebp - 0x108]
mov dword [ecx + 0xc], fcn.00408750
mov edx, dword [ebp - 0x108]
mov dword [edx + 0x10], fcn.0041c170
mov eax, dword [ebp - 0x108]
mov dword [eax + 0x14], 0x41c440
mov ecx, dword [ebp - 0x108]
mov edx, dword [ebp - 0x11c]
mov dword [ecx + 0x30], edx
mov eax, dword [ebp - 0x108]
mov cl, byte [0x642700]
mov byte [eax + 0x4e], cl
mov edx, dword [ebp - 0x108]
mov eax, dword [0x642744]
mov dword [edx + 0x58], eax
mov ecx, dword [ebp - 0x108]
mov edx, dword [0x642740]
mov dword [ecx + 0x5c], edx
cmp dword [0x650f58], 0x64
jl 0x41b1f8
mov dword [0x650f58], 0
mov eax, dword [0x650f58]
add eax, 1
mov dword [0x650f58], eax
mov ecx, dword [ebp - 0x108]
mov edx, dword [0x650f58]
mov dword [ecx + 0x11c], edx
lea eax, [ebp - 0x180]
push eax
call fcn.0042f140
add esp, 4
mov dword [ebp - 0x14c], eax
mov ecx, dword [ebp - 0x14c]
push ecx
mov ecx, dword [ebp - 0x108]
add ecx, 0x18
call fcn.0040f5d0
lea ecx, [ebp - 0x180]
call fcn.004066a0
mov edx, dword [ebp - 0x108]
mov byte [edx + 0x120], 0
mov eax, dword [ebp - 0x108]
mov ecx, dword [ebp - 0x114]
mov dword [eax + 0x140], ecx
lea edx, [ebp - 0xb0]
push edx
mov ecx, dword [ebp - 0x108]
add ecx, 0x124
call fcn.004070c0
mov eax, dword [ebp - 0x108]
mov ecx, dword [ebp - 0x10c]
mov dword [eax + 0x144], ecx
call fcn.0042eed0
mov edx, dword [ebp - 0x108]
mov dword [edx + 0x148], eax
mov eax, dword [ebp - 0x108]
mov byte [eax + 0x150], 1
call fcn.0045b610
mov ecx, dword [ebp - 0x108]
mov dword [ecx + 0x64], eax
mov edx, dword [0x6426fc]
mov dword [ebp - 0x120], edx
mov eax, dword [ebp - 0x108]
cmp dword [eax + 0x140], 0xb4
jne 0x41b2e9
mov dword [ebp - 0x120], 0xd3d
mov ecx, dword [ebp - 0x108]
cmp dword [ecx + 0x140], 0x1f4
jl 0x41b317
mov edx, dword [ebp - 0x108]
cmp dword [edx + 0x140], 0x257
jg 0x41b317
mov dword [ebp - 0x120], 0x1b58
mov eax, dword [ebp - 0x108]
mov cx, word [ebp - 0x120]
mov word [eax + 0x13c], cx
mov dword [ebp - 0x154], 0x604282
mov edx, dword [ebp - 0x154]
push edx
lea eax, [ebp - 0x104]
push eax
call fcn.0044e200
add esp, 8
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x108]
mov edx, dword [ecx + 0x11c]
push edx
lea eax, [ebp - 0x1c8]
push eax
call fcn.00408770
add esp, 8
mov dword [ebp - 0x150], eax
mov ecx, dword [ebp - 0x150]
mov dword [ebp - 0x130], ecx
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x130]
push edx
push 3
push 0
push 0x6140c8
lea ecx, [ebp - 0xfc]
call fcn.0041cd90
push eax
lea ecx, [ebp - 0xfc]
call fcn.0041cd60
push eax
lea ecx, [ebp - 0xfc]
call fcn.004070c0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1c8]
call fcn.004066a0
lea eax, [ebp - 0x104]
push eax
call fcn.0044e460
add esp, 4
lea ecx, [ebp - 0x108]
push ecx
push 0x41aae0
lea ecx, [ebp - 0x38]
call fcn.0041ea10
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x38]
call fcn.00409380
mov byte [ebp - 0x80], 1
mov edx, dword [ebp - 0x128]
add edx, 1
mov dword [ebp - 0x128], edx
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x38]
call fcn.00409330
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x104]
call fcn.00419420
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb0]
call fcn.004066a0
jmp 0x41af6f
lea eax, [ebp - 0x80]
push eax
mov ecx, dword [ebp + 8]
call fcn.0041b490
mov ecx, dword [ebp - 0x118]
or ecx, 1
mov dword [ebp - 0x118], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0041d520
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00409a10
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00587de5
mov esp, ebp
pop ebp
ret