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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b32f5
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x62c490]
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.004102e0
mov dword [ebp - 4], 0
mov dword [ebp - 0x48], 0
push 0xc
lea ecx, [ebp - 0x20]
call fcn.00408150
lea ecx, [ebp - 0x20]
call fcn.00409d20
mov byte [ebp - 4], 1
cmp dword [ebp + 0xc], 0xffffffff
jne 0x41929d
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.004427e0
add esp, 0xc
jmp 0x4192b5
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.00442910
add esp, 0x10
lea ecx, [ebp - 0x20]
call fcn.0041b920
test eax, eax
jne 0x419351
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.0043f000
add esp, 8
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x148]
add eax, 8
push eax
lea ecx, [ebp - 0x7c]
call fcn.0040f420
lea ecx, [ebp - 0x21c]
call fcn.00417a50
lea ecx, [ebp - 0x80]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004199b0
mov edx, dword [ebp - 0x118]
or edx, 1
mov dword [ebp - 0x118], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0041b900
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00409860
mov eax, dword [ebp + 8]
jmp 0x41998d
cmp dword [ebp + 0xc], 0xffffffff
je 0x41945d
cmp dword [ebp + 0x10], 1
jne 0x41945d
push 0
lea ecx, [ebp - 0x20]
call fcn.0041b940
mov eax, dword [eax + 4]
push eax
lea ecx, [ebp - 0x98]
push ecx
call fcn.00434b20
add esp, 8
mov byte [ebp - 4], 2
push 0xc
lea ecx, [ebp - 0x30]
call fcn.00408150
lea ecx, [ebp - 0x30]
call fcn.00409d20
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.004063d0
mov dword [ebp - 0x158], eax
call fcn.0041f750
add esp, 0x1c
lea ecx, [ebp - 0x30]
call fcn.0040b6e0
test eax, eax
jbe 0x419442
mov dword [ebp - 0x48], 1
mov byte [ebp - 0x80], 0
push 0x5fe8e7
lea ecx, [ebp - 0x7c]
call fcn.00408980
lea ecx, [ebp - 0x80]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004199b0
mov edx, dword [ebp - 0x118]
or edx, 1
mov dword [ebp - 0x118], edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0040b660
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x98]
call fcn.004064f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0041b900
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00409860
mov eax, dword [ebp + 8]
jmp 0x41998d
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0040b660
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x98]
call fcn.004064f0
mov dword [ebp - 0x128], 0
push 4
lea ecx, [ebp - 0x14]
call fcn.00408150
lea ecx, [ebp - 0x14]
call fcn.0040b810
lea eax, [ebp - 0x160]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040b680
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
jmp 0x4194a0
push 0
lea edx, [ebp - 0x168]
push edx
lea ecx, [ebp - 0x14]
call fcn.0041b960
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040b6b0
push eax
lea ecx, [ebp - 0x14]
call fcn.0040b8a0
movzx ecx, al
test ecx, ecx
je 0x419954
lea ecx, [ebp - 0x14]
call fcn.0040b830
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 0x4195bc
mov byte [ebp - 0x80], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [ebp - 0x198]
push eax
call fcn.004085c0
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 0x600d7c
lea eax, [ebp - 0x1b0]
push eax
call fcn.004089a0
add esp, 0xc
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp - 0x134]
push ecx
lea ecx, [ebp - 0x7c]
call fcn.0040f420
lea ecx, [ebp - 0x1b0]
call fcn.004064f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x198]
call fcn.004064f0
lea edx, [ebp - 0x80]
push edx
mov ecx, dword [ebp + 8]
call fcn.004199b0
mov eax, dword [ebp - 0x118]
or eax, 1
mov dword [ebp - 0x118], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0041b900
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00409860
mov eax, dword [ebp + 8]
jmp 0x41998d
mov ecx, dword [0x62d708]
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.00434b20
add esp, 8
mov byte [ebp - 4], 5
push 0x1c8
call fcn.0044f1d5
add esp, 4
mov dword [ebp - 0x124], eax
mov byte [ebp - 4], 6
cmp dword [ebp - 0x124], 0
je 0x419663
push 0x1c8
mov ecx, dword [ebp - 0x124]
call fcn.00408150
mov edx, dword [0x62d704]
push edx
mov ecx, dword [ebp - 0x124]
call fcn.0041e2d0
mov dword [ebp - 0x12c], eax
jmp 0x41966d
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], 0x41a560
mov eax, dword [ebp - 0x108]
mov dword [eax + 8], 0x41a650
mov ecx, dword [ebp - 0x108]
mov dword [ecx + 0xc], fcn.004085a0
mov edx, dword [ebp - 0x108]
mov dword [edx + 0x10], fcn.0041a680
mov eax, dword [ebp - 0x108]
mov dword [eax + 0x14], 0x41a950
mov ecx, dword [ebp - 0x108]
mov edx, dword [ebp - 0x11c]
mov dword [ecx + 0x30], edx
mov eax, dword [ebp - 0x108]
mov cl, byte [0x62d700]
mov byte [eax + 0x4e], cl
mov edx, dword [ebp - 0x108]
mov eax, dword [0x62d744]
mov dword [edx + 0x58], eax
mov ecx, dword [ebp - 0x108]
mov edx, dword [0x62d740]
mov dword [ecx + 0x5c], edx
cmp dword [0x63beb8], 0x64
jl 0x419718
mov dword [0x63beb8], 0
mov eax, dword [0x63beb8]
add eax, 1
mov dword [0x63beb8], eax
mov ecx, dword [ebp - 0x108]
mov edx, dword [0x63beb8]
mov dword [ecx + 0x11c], edx
lea eax, [ebp - 0x180]
push eax
call fcn.00429ea0
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.0040f420
lea ecx, [ebp - 0x180]
call fcn.004064f0
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.00406f10
mov eax, dword [ebp - 0x108]
mov ecx, dword [ebp - 0x10c]
mov dword [eax + 0x144], ecx
call fcn.00429c30
mov edx, dword [ebp - 0x108]
mov dword [edx + 0x148], eax
mov eax, dword [ebp - 0x108]
mov byte [eax + 0x150], 1
call fcn.0044a6f0
mov ecx, dword [ebp - 0x108]
mov dword [ecx + 0x64], eax
mov edx, dword [0x62d6fc]
mov dword [ebp - 0x120], edx
mov eax, dword [ebp - 0x108]
cmp dword [eax + 0x140], 0xb4
jne 0x419809
mov dword [ebp - 0x120], 0xd3d
mov ecx, dword [ebp - 0x108]
cmp dword [ecx + 0x140], 0x1f4
jl 0x419837
mov edx, dword [ebp - 0x108]
cmp dword [edx + 0x140], 0x257
jg 0x419837
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.0043f000
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.004085c0
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 0x600d94
lea ecx, [ebp - 0xfc]
call fcn.0041b2a0
push eax
lea ecx, [ebp - 0xfc]
call fcn.0041b270
push eax
lea ecx, [ebp - 0xfc]
call fcn.00406f10
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1c8]
call fcn.004064f0
lea eax, [ebp - 0x104]
push eax
call fcn.0043f260
add esp, 4
lea ecx, [ebp - 0x108]
push ecx
push 0x419000
lea ecx, [ebp - 0x38]
call fcn.0041cbb0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x38]
call fcn.004091d0
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.00409180
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x104]
call fcn.00417a50
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb0]
call fcn.004064f0
jmp 0x41948f
lea eax, [ebp - 0x80]
push eax
mov ecx, dword [ebp + 8]
call fcn.004199b0
mov ecx, dword [ebp - 0x118]
or ecx, 1
mov dword [ebp - 0x118], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0041b900
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00409860
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.00577115
mov esp, ebp
pop ebp
ret