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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c6375
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x642490]
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.00410520
mov dword [ebp - 4], 0
mov dword [ebp - 0x48], 0
push 0xc
lea ecx, [ebp - 0x20]
call fcn.00408390
lea ecx, [ebp - 0x20]
call fcn.00409f60
mov byte [ebp - 4], 1
cmp dword [ebp + 0xc], 0xffffffff
jne 0x41ae4d
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.00453dd0
add esp, 0xc
jmp 0x41ae65
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.00453f00
add esp, 0x10
lea ecx, [ebp - 0x20]
call fcn.0041d600
test eax, eax
jne 0x41af01
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.0044ef30
add esp, 8
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x148]
add eax, 8
push eax
lea ecx, [ebp - 0x7c]
call fcn.0040f660
lea ecx, [ebp - 0x21c]
call fcn.004194f0
lea ecx, [ebp - 0x80]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0041b560
mov edx, dword [ebp - 0x118]
or edx, 1
mov dword [ebp - 0x118], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0041d5e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00409aa0
mov eax, dword [ebp + 8]
jmp 0x41b53d
cmp dword [ebp + 0xc], 0xffffffff
je 0x41b00d
cmp dword [ebp + 0x10], 1
jne 0x41b00d
push 0
lea ecx, [ebp - 0x20]
call fcn.0041d620
mov eax, dword [eax + 4]
push eax
lea ecx, [ebp - 0x98]
push ecx
call fcn.00444320
add esp, 8
mov byte [ebp - 4], 2
push 0xc
lea ecx, [ebp - 0x30]
call fcn.00408390
lea ecx, [ebp - 0x30]
call fcn.00409f60
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.00406610
mov dword [ebp - 0x158], eax
call fcn.004219f0
add esp, 0x1c
lea ecx, [ebp - 0x30]
call fcn.0040b920
test eax, eax
jbe 0x41aff2
mov dword [ebp - 0x48], 1
mov byte [ebp - 0x80], 0
push 0x612a07
lea ecx, [ebp - 0x7c]
call fcn.00408bc0
lea ecx, [ebp - 0x80]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0041b560
mov edx, dword [ebp - 0x118]
or edx, 1
mov dword [ebp - 0x118], edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0040b8a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x98]
call fcn.00406730
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0041d5e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00409aa0
mov eax, dword [ebp + 8]
jmp 0x41b53d
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0040b8a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x98]
call fcn.00406730
mov dword [ebp - 0x128], 0
push 4
lea ecx, [ebp - 0x14]
call fcn.00408390
lea ecx, [ebp - 0x14]
call fcn.0040ba50
lea eax, [ebp - 0x160]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040b8c0
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
jmp 0x41b050
push 0
lea edx, [ebp - 0x168]
push edx
lea ecx, [ebp - 0x14]
call fcn.0041d640
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040b8f0
push eax
lea ecx, [ebp - 0x14]
call fcn.0040bae0
movzx ecx, al
test ecx, ecx
je 0x41b504
lea ecx, [ebp - 0x14]
call fcn.0040ba70
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 0x41b16c
mov byte [ebp - 0x80], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [ebp - 0x198]
push eax
call fcn.00408800
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 0x615088
lea eax, [ebp - 0x1b0]
push eax
call fcn.00408be0
add esp, 0xc
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp - 0x134]
push ecx
lea ecx, [ebp - 0x7c]
call fcn.0040f660
lea ecx, [ebp - 0x1b0]
call fcn.00406730
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x198]
call fcn.00406730
lea edx, [ebp - 0x80]
push edx
mov ecx, dword [ebp + 8]
call fcn.0041b560
mov eax, dword [ebp - 0x118]
or eax, 1
mov dword [ebp - 0x118], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0041d5e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00409aa0
mov eax, dword [ebp + 8]
jmp 0x41b53d
mov ecx, dword [0x643708]
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.00444320
add esp, 8
mov byte [ebp - 4], 5
push 0x1c8
call fcn.00460b25
add esp, 4
mov dword [ebp - 0x124], eax
mov byte [ebp - 4], 6
cmp dword [ebp - 0x124], 0
je 0x41b213
push 0x1c8
mov ecx, dword [ebp - 0x124]
call fcn.00408390
mov edx, dword [0x643704]
push edx
mov ecx, dword [ebp - 0x124]
call fcn.00420560
mov dword [ebp - 0x12c], eax
jmp 0x41b21d
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], 0x41c110
mov eax, dword [ebp - 0x108]
mov dword [eax + 8], 0x41c200
mov ecx, dword [ebp - 0x108]
mov dword [ecx + 0xc], fcn.004087e0
mov edx, dword [ebp - 0x108]
mov dword [edx + 0x10], fcn.0041c230
mov eax, dword [ebp - 0x108]
mov dword [eax + 0x14], 0x41c500
mov ecx, dword [ebp - 0x108]
mov edx, dword [ebp - 0x11c]
mov dword [ecx + 0x30], edx
mov eax, dword [ebp - 0x108]
mov cl, byte [0x643700]
mov byte [eax + 0x4e], cl
mov edx, dword [ebp - 0x108]
mov eax, dword [0x643744]
mov dword [edx + 0x58], eax
mov ecx, dword [ebp - 0x108]
mov edx, dword [0x643740]
mov dword [ecx + 0x5c], edx
cmp dword [0x651fdc], 0x64
jl 0x41b2c8
mov dword [0x651fdc], 0
mov eax, dword [0x651fdc]
add eax, 1
mov dword [0x651fdc], eax
mov ecx, dword [ebp - 0x108]
mov edx, dword [0x651fdc]
mov dword [ecx + 0x11c], edx
lea eax, [ebp - 0x180]
push eax
call fcn.0042f880
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.0040f660
lea ecx, [ebp - 0x180]
call fcn.00406730
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.00407150
mov eax, dword [ebp - 0x108]
mov ecx, dword [ebp - 0x10c]
mov dword [eax + 0x144], ecx
call fcn.0042f610
mov edx, dword [ebp - 0x108]
mov dword [edx + 0x148], eax
mov eax, dword [ebp - 0x108]
mov byte [eax + 0x150], 1
call fcn.0045c340
mov ecx, dword [ebp - 0x108]
mov dword [ecx + 0x64], eax
mov edx, dword [0x6436fc]
mov dword [ebp - 0x120], edx
mov eax, dword [ebp - 0x108]
cmp dword [eax + 0x140], 0xb4
jne 0x41b3b9
mov dword [ebp - 0x120], 0xd3d
mov ecx, dword [ebp - 0x108]
cmp dword [ecx + 0x140], 0x1f4
jl 0x41b3e7
mov edx, dword [ebp - 0x108]
cmp dword [edx + 0x140], 0x257
jg 0x41b3e7
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.0044ef30
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.00408800
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 0x6150a0
lea ecx, [ebp - 0xfc]
call fcn.0041ce50
push eax
lea ecx, [ebp - 0xfc]
call fcn.0041ce20
push eax
lea ecx, [ebp - 0xfc]
call fcn.00407150
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1c8]
call fcn.00406730
lea eax, [ebp - 0x104]
push eax
call fcn.0044f190
add esp, 4
lea ecx, [ebp - 0x108]
push ecx
push 0x41abb0
lea ecx, [ebp - 0x38]
call fcn.0041ead0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x38]
call fcn.00409410
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.004093c0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x104]
call fcn.004194f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb0]
call fcn.00406730
jmp 0x41b03f
lea eax, [ebp - 0x80]
push eax
mov ecx, dword [ebp + 8]
call fcn.0041b560
mov ecx, dword [ebp - 0x118]
or ecx, 1
mov dword [ebp - 0x118], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0041d5e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00409aa0
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.00588a69
mov esp, ebp
pop ebp
ret