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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bf3ff
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x639490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xcc], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.004104d0
mov byte [ebp - 4], 1
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x70], 1
movzx eax, byte [0x648f7d]
test eax, eax
jne 0x41b62c
lea ecx, [ebp - 0x70]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0041b4e0
mov edx, dword [ebp - 0xcc]
or edx, 1
mov dword [ebp - 0xcc], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00409a40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004066d0
mov eax, dword [ebp + 8]
jmp 0x41bc4f
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x110], esp
lea eax, [ebp + 0xc]
push eax
call fcn.004065b0
mov dword [ebp - 0x10c], eax
call fcn.00421800
add esp, 0x18
mov dword [ebp - 0xec], eax
mov ecx, dword [ebp - 0xec]
mov dword [ebp - 0xd0], ecx
cmp dword [ebp - 0xd0], 0
jne 0x41b6b4
push str.main_link_not_exist
lea ecx, [ebp - 0x6c]
call fcn.00408b60
lea edx, [ebp - 0x70]
push edx
mov ecx, dword [ebp + 8]
call fcn.0041b4e0
mov eax, dword [ebp - 0xcc]
or eax, 1
mov dword [ebp - 0xcc], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00409a40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004066d0
mov eax, dword [ebp + 8]
jmp 0x41bc4f
push 0x60a9ea
mov ecx, dword [ebp - 0xd0]
add ecx, 0x180
push ecx
call fcn.0041eab0
add esp, 8
movzx edx, al
test edx, edx
je 0x41b720
push str.main_link_not_empty
lea ecx, [ebp - 0x6c]
call fcn.00408b60
lea eax, [ebp - 0x70]
push eax
mov ecx, dword [ebp + 8]
call fcn.0041b4e0
mov ecx, dword [ebp - 0xcc]
or ecx, 1
mov dword [ebp - 0xcc], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00409a40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004066d0
mov eax, dword [ebp + 8]
jmp 0x41bc4f
push 0xc
lea ecx, [ebp - 0x20]
call fcn.00408330
lea ecx, [ebp - 0x20]
call fcn.00409f00
mov byte [ebp - 4], 2
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0xd0]
add eax, 0x124
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x108], esp
push eax
call fcn.004065b0
mov dword [ebp - 0x104], eax
call fcn.004156b0
add esp, 0x1c
lea ecx, [ebp - 0x20]
call fcn.0040b8c0
test eax, eax
jbe 0x41b7c7
push str.ip_link_exist
lea ecx, [ebp - 0x6c]
call fcn.00408b60
lea ecx, [ebp - 0x70]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0041b4e0
mov edx, dword [ebp - 0xcc]
or edx, 1
mov dword [ebp - 0xcc], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.0040b840
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00409a40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004066d0
mov eax, dword [ebp + 8]
jmp 0x41bc4f
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0xd4], 0xffffffff
jne 0x41b8aa
mov byte [ebp - 0x70], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [ebp - 0x140]
push eax
call fcn.004087a0
add esp, 8
mov dword [ebp - 0xf0], eax
mov ecx, dword [ebp - 0xf0]
mov dword [ebp - 0xf8], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0xf8]
push edx
push 0x60d084
lea eax, [ebp - 0x170]
push eax
call fcn.00408b80
add esp, 0xc
mov dword [ebp - 0x100], eax
mov ecx, dword [ebp - 0x100]
push ecx
lea ecx, [ebp - 0x6c]
call fcn.0040f610
lea ecx, [ebp - 0x170]
call fcn.004066d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x140]
call fcn.004066d0
lea edx, [ebp - 0x70]
push edx
mov ecx, dword [ebp + 8]
call fcn.0041b4e0
mov eax, dword [ebp - 0xcc]
or eax, 1
mov dword [ebp - 0xcc], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.0040b840
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00409a40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004066d0
mov eax, dword [ebp + 8]
jmp 0x41bc4f
mov ecx, dword [0x63a708]
mov dword [ebp - 0x14], ecx
push 4
lea edx, [ebp - 0x14]
push edx
push 0x1002
push 0xffff
mov eax, dword [ebp - 0xd4]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [ebp - 0x14]
push ecx
push 0x1001
push 0xffff
mov edx, dword [ebp - 0xd4]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x1c8
call fcn.00459f55
add esp, 4
mov dword [ebp - 0xd8], eax
mov byte [ebp - 4], 4
cmp dword [ebp - 0xd8], 0
je 0x41b936
push 0x1c8
mov ecx, dword [ebp - 0xd8]
call fcn.00408330
mov eax, dword [0x63a704]
push eax
mov ecx, dword [ebp - 0xd8]
call fcn.004204e0
mov dword [ebp - 0xdc], eax
jmp 0x41b940
mov dword [ebp - 0xdc], 0
mov ecx, dword [ebp - 0xdc]
mov dword [ebp - 0xf4], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0xf4]
mov dword [ebp - 0xc8], edx
mov eax, dword [ebp - 0xc8]
mov dword [eax + 4], 0x41c090
mov ecx, dword [ebp - 0xc8]
mov dword [ecx + 8], 0x41c180
mov edx, dword [ebp - 0xc8]
mov dword [edx + 0xc], fcn.00408780
mov eax, dword [ebp - 0xc8]
mov dword [eax + 0x10], fcn.0041c1b0
mov ecx, dword [ebp - 0xc8]
mov dword [ecx + 0x14], 0x41c480
mov edx, dword [ebp - 0xc8]
mov eax, dword [ebp - 0xd4]
mov dword [edx + 0x30], eax
mov ecx, dword [ebp - 0xc8]
mov dl, byte [0x63a700]
mov byte [ecx + 0x4e], dl
mov eax, dword [ebp - 0xc8]
mov ecx, dword [0x63a744]
mov dword [eax + 0x58], ecx
mov edx, dword [ebp - 0xc8]
mov eax, dword [0x63a740]
mov dword [edx + 0x5c], eax
cmp dword [0x648ed8], 0x64
jl 0x41b9eb
mov dword [0x648ed8], 0
mov ecx, dword [0x648ed8]
add ecx, 1
mov dword [0x648ed8], ecx
mov edx, dword [ebp - 0xc8]
mov eax, dword [0x648ed8]
mov dword [edx + 0x11c], eax
lea ecx, [ebp - 0x128]
push ecx
call fcn.0042bbc0
add esp, 4
mov dword [ebp - 0xe8], eax
mov edx, dword [ebp - 0xe8]
push edx
mov ecx, dword [ebp - 0xc8]
add ecx, 0x18
call fcn.0040f610
lea ecx, [ebp - 0x128]
call fcn.004066d0
mov eax, dword [ebp - 0xc8]
mov byte [eax + 0x120], 0
mov ecx, dword [ebp - 0xc8]
mov edx, dword [ebp - 0xd0]
mov eax, dword [edx + 0x140]
mov dword [ecx + 0x140], eax
mov ecx, dword [ebp - 0xd0]
add ecx, 0x124
push ecx
mov ecx, dword [ebp - 0xc8]
add ecx, 0x124
call fcn.004070f0
mov edx, dword [ebp - 0xc8]
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax + 0x144]
mov dword [edx + 0x144], ecx
call fcn.0042b950
mov edx, dword [ebp - 0xc8]
mov dword [edx + 0x148], eax
mov eax, dword [ebp - 0xc8]
mov byte [eax + 0x150], 1
call fcn.00455820
mov ecx, dword [ebp - 0xc8]
mov dword [ecx + 0x64], eax
mov edx, dword [ebp - 0xc8]
mov eax, dword [ebp - 0xd0]
mov cx, word [eax + 0x13c]
mov word [edx + 0x13c], cx
mov edx, dword [ebp - 0xc8]
mov byte [edx + 0x165], 1
mov eax, dword [ebp - 0xd0]
add eax, 0x18
push eax
mov ecx, dword [ebp - 0xc8]
add ecx, 0x168
call fcn.004070f0
mov ecx, dword [ebp - 0xc8]
add ecx, 0x18
push ecx
mov ecx, dword [ebp - 0xd0]
add ecx, 0x180
call fcn.004070f0
mov dword [ebp - 0xe0], 0x604282
mov edx, dword [ebp - 0xe0]
push edx
lea eax, [ebp - 0xc4]
push eax
call fcn.00449020
add esp, 8
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0xc8]
mov edx, dword [ecx + 0x11c]
push edx
lea eax, [ebp - 0x158]
push eax
call fcn.004087a0
add esp, 8
mov dword [ebp - 0xfc], eax
mov ecx, dword [ebp - 0xfc]
mov dword [ebp - 0xe4], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0xe4]
push edx
push 3
push 0
push 0x60d09c
lea ecx, [ebp - 0xbc]
call fcn.0041cdd0
push eax
lea ecx, [ebp - 0xbc]
call fcn.0041cda0
push eax
lea ecx, [ebp - 0xbc]
call fcn.004070f0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x158]
call fcn.004066d0
lea eax, [ebp - 0xc4]
push eax
call fcn.00449280
add esp, 4
lea ecx, [ebp - 0xc8]
push ecx
push 0x41ab30
lea ecx, [ebp - 0x28]
call fcn.0041ea50
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x28]
call fcn.004093b0
mov byte [ebp - 0x70], 1
lea edx, [ebp - 0x70]
push edx
mov ecx, dword [ebp + 8]
call fcn.0041b4e0
mov eax, dword [ebp - 0xcc]
or eax, 1
mov dword [ebp - 0xcc], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.00409360
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xc4]
call fcn.00419470
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.0040b840
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00409a40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004066d0
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.00581e9f
mov esp, ebp
pop ebp
ret