Function at 0x408720
Capabilities:
Set socket configuration

Disassembly:
push 0xffffffffffffffff
push 0x5f1358
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x6656b0]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6656b0]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov eax, dword [esp + 0x84]
mov ebp, 7
xor ebx, ebx
xor edx, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], dx
mov dword [esp + 0x7c], ebx
mov edi, 0xf
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
mov byte [esp + 0x7c], 1
xor ecx, ecx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], cx
mov byte [esp + 0x7c], 2
cmp eax, ebx
je 0x408a86
cmp dx, word [eax]
je 0x408a86
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x4087b7
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x3c]
call fcn.0040f730
lea eax, [esp + 0x14]
push eax
mov ebx, 1
xor eax, eax
mov edx, esi
mov dword [esp + 0x18], 0x5f
call fcn.0040a320
or edi, 0xffffffff
cmp eax, edi
je 0x4087fd
push eax
mov ecx, esi
call fcn.004bcd20
add esp, 4
mov eax, dword [esp + 0x3c]
mov esi, 8
cmp dword [esp + 0x50], esi
jae 0x408810
lea eax, [esp + 0x3c]
push str.0123456789.
push eax
call fcn.005b877c
add esp, 8
cmp dword [esp + 0x4c], eax
je 0x408831
push eax
lea ecx, [esp + 0x3c]
call fcn.004bcd20
add esp, 4
push 0x2e
xor ebx, ebx
lea ecx, [esp + 0x20]
push ebx
push ecx
lea ecx, [esp + 0x44]
call fcn.004bc3f0
add esp, 0xc
cmp dword [esp + 0x30], ebx
jne 0x4088bf
mov byte [esp + 0x7c], 1
cmp dword [esp + 0x34], esi
jb 0x408865
mov edx, dword [esp + 0x20]
push edx
call fcn.004c4802
add esp, 4
xor eax, eax
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], ax
mov byte [esp + 0x7c], bl
cmp dword [esp + 0x6c], 0x10
jb 0x40888c
mov ecx, dword [esp + 0x58]
push ecx
call fcn.004c4802
add esp, 4
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
mov dword [esp + 0x7c], edi
cmp dword [esp + 0x50], esi
jb 0x4088b3
mov edx, dword [esp + 0x3c]
push edx
call fcn.004c4802
add esp, 4
xor eax, eax
mov word [esp + 0x3c], ax
jmp 0x408af8
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x34], esi
jae 0x4088cd
lea eax, [esp + 0x20]
push eax
call fcn.005b87db
mov ebp, eax
add esp, 4
cmp ebp, 0xff
ja 0x4088fb
push 0x2e
lea ecx, [esp + 0x20]
push 1
push ecx
lea ecx, [esp + 0x44]
call fcn.004bc3f0
add esp, 0xc
cmp dword [esp + 0x30], ebx
jne 0x408928
mov byte [esp + 0x7c], 1
lea esi, [esp + 0x1c]
call fcn.0040f810
mov byte [esp + 0x7c], bl
lea ecx, [esp + 0x54]
call fcn.0040f080
mov dword [esp + 0x7c], edi
lea esi, [esp + 0x38]
call fcn.0040f810
jmp 0x408b00
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x34], esi
jae 0x408936
lea eax, [esp + 0x20]
push eax
call fcn.005b87db
mov edi, eax
add esp, 4
cmp edi, 0xff
ja 0x408964
push 0x2e
lea edx, [esp + 0x20]
push 2
push edx
lea ecx, [esp + 0x44]
call fcn.004bc3f0
add esp, 0xc
cmp dword [esp + 0x30], ebx
jne 0x408995
mov byte [esp + 0x7c], 1
lea esi, [esp + 0x1c]
call fcn.0040f810
mov byte [esp + 0x7c], bl
lea ecx, [esp + 0x54]
call fcn.0040f080
mov dword [esp + 0x7c], 0xffffffff
lea esi, [esp + 0x38]
call fcn.0040f810
jmp 0x408b00
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x34], esi
jae 0x4089a3
lea eax, [esp + 0x20]
push eax
call fcn.005b87db
mov esi, eax
add esp, 4
cmp esi, 0xff
ja 0x408964
push 0x2e
lea eax, [esp + 0x20]
push 3
push eax
lea ecx, [esp + 0x44]
call fcn.004bc3f0
add esp, 0xc
cmp dword [esp + 0x30], ebx
je 0x408964
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
jae 0x4089e0
lea eax, [esp + 0x20]
push eax
call fcn.005b87db
add esp, 4
cmp eax, 0xff
ja 0x408964
push eax
push esi
mov esi, dword [esp + 0x20]
push edi
push ebp
push str._d._d._d._d
mov ecx, esi
call fcn.004bc870
add esp, 0x14
cmp dword [esi + 0x18], 8
jb 0x408a16
mov eax, dword [esi + 4]
jmp 0x408a19
lea eax, [esi + 4]
push eax
lea ecx, [esp + 0x58]
call fcn.004bc9f0
mov eax, dword [esp + 0x5c]
add esp, 4
cmp dword [esp + 0x6c], 0x10
jae 0x408a35
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
or edi, 0xffffffff
cmp eax, edi
je 0x4088fb
cmp eax, ebx
je 0x4088fb
cmp eax, 0x7f000001
je 0x4088fb
mov byte [esp + 0x7c], 1
lea esi, [esp + 0x1c]
call fcn.0040f810
mov byte [esp + 0x7c], bl
lea ecx, [esp + 0x54]
call fcn.0040f080
mov dword [esp + 0x7c], edi
lea esi, [esp + 0x38]
call fcn.0040f810
mov al, 1
jmp 0x408b02
mov byte [esp + 0x7c], 1
mov esi, 8
cmp dword [esp + 0x34], esi
jb 0x408aa3
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004c4802
add esp, 4
xor edx, edx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], dx
mov byte [esp + 0x7c], bl
cmp dword [esp + 0x6c], 0x10
jb 0x408aca
mov eax, dword [esp + 0x58]
push eax
call fcn.004c4802
add esp, 4
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
mov dword [esp + 0x7c], 0xffffffff
cmp dword [esp + 0x50], esi
jb 0x408af1
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.004c4802
add esp, 4
xor edx, edx
mov word [esp + 0x3c], dx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebp
xor al, al
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.005b7e8e
add esp, 0x6c
ret 4