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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c5995
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.004104d0
mov dword [ebp - 4], 0
mov dword [ebp - 0x48], 0
push 0xc
lea ecx, [ebp - 0x20]
call fcn.00408330
lea ecx, [ebp - 0x20]
call fcn.00409f00
mov byte [ebp - 4], 1
cmp dword [ebp + 0xc], 0xffffffff
jne 0x41adcd
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.00453410
add esp, 0xc
jmp 0x41ade5
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.00453540
add esp, 0x10
lea ecx, [ebp - 0x20]
call fcn.0041d580
test eax, eax
jne 0x41ae81
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.0044e570
add esp, 8
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x148]
add eax, 8
push eax
lea ecx, [ebp - 0x7c]
call fcn.0040f610
lea ecx, [ebp - 0x21c]
call fcn.00419470
lea ecx, [ebp - 0x80]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0041b4e0
mov edx, dword [ebp - 0x118]
or edx, 1
mov dword [ebp - 0x118], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0041d560
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00409a40
mov eax, dword [ebp + 8]
jmp 0x41b4bd
cmp dword [ebp + 0xc], 0xffffffff
je 0x41af8d
cmp dword [ebp + 0x10], 1
jne 0x41af8d
push 0
lea ecx, [ebp - 0x20]
call fcn.0041d5a0
mov eax, dword [eax + 4]
push eax
lea ecx, [ebp - 0x98]
push ecx
call fcn.004437d0
add esp, 8
mov byte [ebp - 4], 2
push 0xc
lea ecx, [ebp - 0x30]
call fcn.00408330
lea ecx, [ebp - 0x30]
call fcn.00409f00
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.004065b0
mov dword [ebp - 0x158], eax
call fcn.00421970
add esp, 0x1c
lea ecx, [ebp - 0x30]
call fcn.0040b8c0
test eax, eax
jbe 0x41af72
mov dword [ebp - 0x48], 1
mov byte [ebp - 0x80], 0
push 0x611a17
lea ecx, [ebp - 0x7c]
call fcn.00408b60
lea ecx, [ebp - 0x80]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0041b4e0
mov edx, dword [ebp - 0x118]
or edx, 1
mov dword [ebp - 0x118], edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0040b840
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x98]
call fcn.004066d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0041d560
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00409a40
mov eax, dword [ebp + 8]
jmp 0x41b4bd
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.0040b840
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x98]
call fcn.004066d0
mov dword [ebp - 0x128], 0
push 4
lea ecx, [ebp - 0x14]
call fcn.00408330
lea ecx, [ebp - 0x14]
call fcn.0040b9f0
lea eax, [ebp - 0x160]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040b860
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
jmp 0x41afd0
push 0
lea edx, [ebp - 0x168]
push edx
lea ecx, [ebp - 0x14]
call fcn.0041d5c0
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040b890
push eax
lea ecx, [ebp - 0x14]
call fcn.0040ba80
movzx ecx, al
test ecx, ecx
je 0x41b484
lea ecx, [ebp - 0x14]
call fcn.0040ba10
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 0x41b0ec
mov byte [ebp - 0x80], 0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [ebp - 0x198]
push eax
call fcn.004087a0
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 0x614070
lea eax, [ebp - 0x1b0]
push eax
call fcn.00408b80
add esp, 0xc
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp - 0x134]
push ecx
lea ecx, [ebp - 0x7c]
call fcn.0040f610
lea ecx, [ebp - 0x1b0]
call fcn.004066d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x198]
call fcn.004066d0
lea edx, [ebp - 0x80]
push edx
mov ecx, dword [ebp + 8]
call fcn.0041b4e0
mov eax, dword [ebp - 0x118]
or eax, 1
mov dword [ebp - 0x118], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0041d560
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00409a40
mov eax, dword [ebp + 8]
jmp 0x41b4bd
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.004437d0
add esp, 8
mov byte [ebp - 4], 5
push 0x1c8
call fcn.00460215
add esp, 4
mov dword [ebp - 0x124], eax
mov byte [ebp - 4], 6
cmp dword [ebp - 0x124], 0
je 0x41b193
push 0x1c8
mov ecx, dword [ebp - 0x124]
call fcn.00408330
mov edx, dword [0x642704]
push edx
mov ecx, dword [ebp - 0x124]
call fcn.004204e0
mov dword [ebp - 0x12c], eax
jmp 0x41b19d
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], 0x41c090
mov eax, dword [ebp - 0x108]
mov dword [eax + 8], 0x41c180
mov ecx, dword [ebp - 0x108]
mov dword [ecx + 0xc], fcn.00408780
mov edx, dword [ebp - 0x108]
mov dword [edx + 0x10], fcn.0041c1b0
mov eax, dword [ebp - 0x108]
mov dword [eax + 0x14], 0x41c480
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 0x41b248
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.0042f310
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.0040f610
lea ecx, [ebp - 0x180]
call fcn.004066d0
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.004070f0
mov eax, dword [ebp - 0x108]
mov ecx, dword [ebp - 0x10c]
mov dword [eax + 0x144], ecx
call fcn.0042f0a0
mov edx, dword [ebp - 0x108]
mov dword [edx + 0x148], eax
mov eax, dword [ebp - 0x108]
mov byte [eax + 0x150], 1
call fcn.0045b980
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 0x41b339
mov dword [ebp - 0x120], 0xd3d
mov ecx, dword [ebp - 0x108]
cmp dword [ecx + 0x140], 0x1f4
jl 0x41b367
mov edx, dword [ebp - 0x108]
cmp dword [edx + 0x140], 0x257
jg 0x41b367
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.0044e570
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.004087a0
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 0x614088
lea ecx, [ebp - 0xfc]
call fcn.0041cdd0
push eax
lea ecx, [ebp - 0xfc]
call fcn.0041cda0
push eax
lea ecx, [ebp - 0xfc]
call fcn.004070f0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1c8]
call fcn.004066d0
lea eax, [ebp - 0x104]
push eax
call fcn.0044e7d0
add esp, 4
lea ecx, [ebp - 0x108]
push ecx
push 0x41ab30
lea ecx, [ebp - 0x38]
call fcn.0041ea50
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x38]
call fcn.004093b0
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.00409360
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x104]
call fcn.00419470
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xb0]
call fcn.004066d0
jmp 0x41afbf
lea eax, [ebp - 0x80]
push eax
mov ecx, dword [ebp + 8]
call fcn.0041b4e0
mov ecx, dword [ebp - 0x118]
or ecx, 1
mov dword [ebp - 0x118], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0041d560
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.00409a40
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.0058815d
mov esp, ebp
pop ebp
ret