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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b1db5
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x62b490]
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.00410140
mov dword [ebp - 4], 0
mov dword [ebp - 0x48], 0
push 0xc
lea ecx, [ebp - 0x20]
call fcn.00407f20
lea ecx, [ebp - 0x20]
call fcn.00409af0
mov byte [ebp - 4], 1
cmp dword [ebp + 0xc], 0xffffffff
jne 0x418d6d
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.00442310
add esp, 0xc
jmp 0x418d85
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.00442440
add esp, 0x10
lea ecx, [ebp - 0x20]
call fcn.0041b3e0
test eax, eax
jne 0x418e21
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.0043e590
add esp, 8
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x148]
add eax, 8
push eax
lea ecx, [ebp - 0x7c]
call fcn.0040f1f0
lea ecx, [ebp - 0x21c]
call fcn.00417800
lea ecx, [ebp - 0x80]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00419480
mov edx, dword [ebp - 0x118]
or edx, 1
mov dword [ebp - 0x118], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0041b3c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00409630
mov eax, dword [ebp + 8]
jmp 0x41945d
cmp dword [ebp + 0xc], 0xffffffff
je 0x418f2d
cmp dword [ebp + 0x10], 1
jne 0x418f2d
push 0
lea ecx, [ebp - 0x20]
call fcn.0041b400
mov eax, dword [eax + 4]
push eax
lea ecx, [ebp - 0x98]
push ecx
call fcn.00436050
add esp, 8
mov byte [ebp - 4], 2
push 0xc
lea ecx, [ebp - 0x30]
call fcn.00407f20
lea ecx, [ebp - 0x30]
call fcn.00409af0
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.004061a0
mov dword [ebp - 0x158], eax
call fcn.0041e700
add esp, 0x1c
lea ecx, [ebp - 0x30]
call fcn.0040b4b0
test eax, eax
jbe 0x418f12
mov dword [ebp - 0x48], 1
mov byte [ebp - 0x80], 0
push 0x5fd8c7
lea ecx, [ebp - 0x7c]
call fcn.00408750
lea ecx, [ebp - 0x80]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00419480
mov edx, dword [ebp - 0x118]
or edx, 1
mov dword [ebp - 0x118], edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0040b430
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x98]
call fcn.004062c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0041b3c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00409630
mov eax, dword [ebp + 8]
jmp 0x41945d
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0040b430
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x98]
call fcn.004062c0
mov dword [ebp - 0x128], 0
push 4
lea ecx, [ebp - 0x14]
call fcn.00407f20
lea ecx, [ebp - 0x14]
call fcn.0040b5e0
lea eax, [ebp - 0x160]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040b450
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
jmp 0x418f70
push 0
lea edx, [ebp - 0x168]
push edx
lea ecx, [ebp - 0x14]
call fcn.0041b420
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040b480
push eax
lea ecx, [ebp - 0x14]
call fcn.0040b670
movzx ecx, al
test ecx, ecx
je 0x419424
lea ecx, [ebp - 0x14]
call fcn.0040b600
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 0x41908c
mov byte [ebp - 0x80], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [ebp - 0x198]
push eax
call fcn.00408390
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 0x5ffd4c
lea eax, [ebp - 0x1b0]
push eax
call fcn.00408770
add esp, 0xc
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp - 0x134]
push ecx
lea ecx, [ebp - 0x7c]
call fcn.0040f1f0
lea ecx, [ebp - 0x1b0]
call fcn.004062c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x198]
call fcn.004062c0
lea edx, [ebp - 0x80]
push edx
mov ecx, dword [ebp + 8]
call fcn.00419480
mov eax, dword [ebp - 0x118]
or eax, 1
mov dword [ebp - 0x118], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0041b3c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00409630
mov eax, dword [ebp + 8]
jmp 0x41945d
mov ecx, dword [0x62c720]
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.00436050
add esp, 8
mov byte [ebp - 4], 5
push 0x1c8
call fcn.0044d960
add esp, 4
mov dword [ebp - 0x124], eax
mov byte [ebp - 4], 6
cmp dword [ebp - 0x124], 0
je 0x419133
push 0x1c8
mov ecx, dword [ebp - 0x124]
call fcn.00407f20
mov edx, dword [0x62c71c]
push edx
mov ecx, dword [ebp - 0x124]
call fcn.0041d2a0
mov dword [ebp - 0x12c], eax
jmp 0x41913d
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], 0x41a020
mov eax, dword [ebp - 0x108]
mov dword [eax + 8], 0x41a110
mov ecx, dword [ebp - 0x108]
mov dword [ecx + 0xc], fcn.00408370
mov edx, dword [ebp - 0x108]
mov dword [edx + 0x10], fcn.0041a140
mov eax, dword [ebp - 0x108]
mov dword [eax + 0x14], 0x41a410
mov ecx, dword [ebp - 0x108]
mov edx, dword [ebp - 0x11c]
mov dword [ecx + 0x30], edx
mov eax, dword [ebp - 0x108]
mov cl, byte [0x62c701]
mov byte [eax + 0x4e], cl
mov edx, dword [ebp - 0x108]
mov eax, dword [0x62c750]
mov dword [edx + 0x58], eax
mov ecx, dword [ebp - 0x108]
mov edx, dword [0x62c74c]
mov dword [ecx + 0x5c], edx
cmp dword [0x63aef4], 0x64
jl 0x4191e8
mov dword [0x63aef4], 0
mov eax, dword [0x63aef4]
add eax, 1
mov dword [0x63aef4], eax
mov ecx, dword [ebp - 0x108]
mov edx, dword [0x63aef4]
mov dword [ecx + 0x11c], edx
lea eax, [ebp - 0x180]
push eax
call fcn.00428cc0
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.0040f1f0
lea ecx, [ebp - 0x180]
call fcn.004062c0
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.00406ce0
mov eax, dword [ebp - 0x108]
mov ecx, dword [ebp - 0x10c]
mov dword [eax + 0x144], ecx
call fcn.00428a50
mov edx, dword [ebp - 0x108]
mov dword [edx + 0x148], eax
mov eax, dword [ebp - 0x108]
mov byte [eax + 0x150], 1
call fcn.0044a920
mov ecx, dword [ebp - 0x108]
mov dword [ecx + 0x64], eax
mov edx, dword [0x62c718]
mov dword [ebp - 0x120], edx
mov eax, dword [ebp - 0x108]
cmp dword [eax + 0x140], 0xb4
jne 0x4192d9
mov dword [ebp - 0x120], 0xd3d
mov ecx, dword [ebp - 0x108]
cmp dword [ecx + 0x140], 0x1f4
jl 0x419307
mov edx, dword [ebp - 0x108]
cmp dword [edx + 0x140], 0x257
jg 0x419307
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.0043e590
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.00408390
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 0x5ffd64
lea ecx, [ebp - 0xfc]
call fcn.0041ad60
push eax
lea ecx, [ebp - 0xfc]
call fcn.0041ad30
push eax
lea ecx, [ebp - 0xfc]
call fcn.00406ce0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1c8]
call fcn.004062c0
lea eax, [ebp - 0x104]
push eax
call fcn.0043e7f0
add esp, 4
lea ecx, [ebp - 0x108]
push ecx
push 0x418ad0
lea ecx, [ebp - 0x38]
call fcn.0041c590
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x38]
call fcn.00408fa0
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.00408f50
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x104]
call fcn.00417800
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb0]
call fcn.004062c0
jmp 0x418f5f
lea eax, [ebp - 0x80]
push eax
mov ecx, dword [ebp + 8]
call fcn.00419480
mov ecx, dword [ebp - 0x118]
or ecx, 1
mov dword [ebp - 0x118], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0041b3c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00409630
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.00575898
mov esp, ebp
pop ebp
ret