Function at 0x481240
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x11c], edx
mov dword [ebp - 0x118], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x481628
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x490], 0
jne 0x481293
mov eax, 0x2726
call fcn.0047e164
mov edx, 0x481640
mov eax, dword [ebp - 4]
call fcn.00481cc4
jmp 0x48160a
mov eax, dword [ebp - 4]
cmp byte [eax + 0x484], 0
jne 0x4812bb
mov eax, 0x2726
call fcn.0047e164
mov edx, 0x481664
mov eax, dword [ebp - 4]
call fcn.00481cc4
jmp 0x48160a
mov eax, dword [ebp - 4]
cmp byte [eax + 0x47c], 0
jne 0x4812e3
mov eax, 0x2726
call fcn.0047e164
mov edx, 0x48168c
mov eax, dword [ebp - 4]
call fcn.00481cc4
jmp 0x48160a
xor eax, eax
push ebp
push 0x4813d5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x485], 0
jne 0x481341
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x488]
call fcn.00480310
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x480], ebx
cmp ebx, 0x11
jne 0x48132a
mov eax, dword [ebp - 4]
mov dword [eax + 0x4a4], 2
jmp 0x481337
mov eax, dword [ebp - 4]
mov dword [eax + 0x4a4], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x485], 1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x491], 0
jne 0x48139e
lea edx, [ebp - 0x118]
mov eax, dword [ebp - 4]
call fcn.0047f9dc
mov edx, dword [ebp - 0x118]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48c]
call fcn.00480108
movzx eax, ax
mov edx, dword [ebp - 4]
mov dword [edx + 0x494], eax
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x494]
call fcn.0047e678
mov edx, dword [ebp - 4]
mov word [edx + 0x55a], ax
mov eax, dword [ebp - 4]
mov byte [eax + 0x491], 1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x474], 0
jne 0x4813cb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x470]
call fcn.0047feac
mov edx, dword [ebp - 4]
mov dword [edx + 0x55c], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x474], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x481418
mov eax, dword [ebp - 4]
call fcn.00481838
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x480]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x4a4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x478]
call fcn.0047e3e8
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x46c], ebx
inc ebx
jne 0x481460
mov edx, 0x4816c8
mov eax, dword [ebp - 4]
call fcn.00481cc4
jmp 0x48160a
mov eax, dword [ebp - 4]
cmp dword [eax + 0x4a4], 2
jne 0x4814b1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x4e0], 0
je 0x4814b1
mov dword [ebp - 8], 0xffffffff
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0xffff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x46c]
push eax
call sub.wsock32.dll_setsockopt
test eax, eax
je 0x4814b1
mov edx, 0x4816d8
mov eax, dword [ebp - 4]
call fcn.00481cc4
jmp 0x48160a
mov eax, dword [ebp - 4]
lea edx, [eax + 0x558]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x46c]
mov ecx, 0x10
call fcn.0047e7ac
test eax, eax
jne 0x4814dd
mov dl, 2
mov eax, dword [ebp - 4]
call fcn.0047eff4
jmp 0x4814fa
mov edx, 0x4816fc
mov eax, dword [ebp - 4]
call fcn.00481cc4
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x90]
jmp 0x48160a
mov eax, dword [ebp - 4]
cmp dword [eax + 0x4a4], 2
jne 0x48156e
mov eax, dword [ebp - 4]
cmp byte [eax + 0x4d5], 0
je 0x48156e
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x4d8]
lea eax, [ebp - 0x111]
call fcn.00408f58
lea eax, [ebp - 0x111]
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x10], eax
push 0
call sub.wsock32.dll_htonl
mov dword [ebp - 0xc], eax
push 8
lea eax, [ebp - 0x10]
push eax
push 5
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x46c]
push eax
call sub.wsock32.dll_setsockopt
test eax, eax
je 0x48156e
mov edx, 0x48170c
mov eax, dword [ebp - 4]
call fcn.00481cc4
jmp 0x48160a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4a4]
cmp eax, 2
jne 0x48159c
mov dl, 6
mov eax, dword [ebp - 4]
call fcn.0047eff4
mov dl, 4
mov eax, dword [ebp - 4]
call fcn.0047eff4
xor edx, edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x6c]
jmp 0x4815d1
dec eax
jne 0x4815d1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x46c]
mov edx, 5
call fcn.0047e584
test eax, eax
jne 0x4815c2
mov dl, 6
mov eax, dword [ebp - 4]
call fcn.0047eff4
jmp 0x4815d1
mov edx, 0x481730
mov eax, dword [ebp - 4]
call fcn.00481cc4
jmp 0x48160a
mov edx, dword [ebp - 4]
mov eax, 0x2b
mov dword [edx + 0x4e8], eax
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x4c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x46c]
mov ecx, 0x401
call fcn.0047e2dc
test eax, eax
je 0x48160a
mov edx, 0x481740
mov eax, dword [ebp - 4]
call fcn.00481cc4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48162f
lea eax, [ebp - 0x11c]
mov edx, 2
call fcn.004044c4
ret