Function at 0x10004290
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005af8d
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x1007224c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], ecx
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push eax
push 0
push 0
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], esi
call fcn.10004720
mov edi, 2
mov dword [ebp - 4], 0
cmp word [esi], di
mov eax, 0x17
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
cmovne edi, eax
movq qword [ebp - 0x1c], xmm0
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
lea esi, [eax + 4]
lea eax, [ebp - 0x1c]
add ecx, 0x14
push eax
push 6
push 1
push edi
push esi
lea eax, [ebp - 0x28]
push eax
call fcn.10021ea0
mov ecx, dword [eax + 8]
test cl, 1
je 0x1000432c
cmp ecx, 1
jne 0x10004367
cmp dword [eax], 0
jne 0x10004367
xorps xmm0, xmm0
mov dword [ebp - 0x44], 2
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x34], xmm0
mov dword [ebp - 0x40], 0
movups xmm0, xmmword [ebp - 0x44]
mov dword [esi + 0x1c], edi
mov byte [esi + 0x20], 0
movups xmmword [esi + 0x24], xmm0
movq xmm0, qword [ebp - 0x34]
movq qword [esi + 0x34], xmm0
mov dword [esi + 0x3c], 0
mov eax, dword [ebp - 0x14]
movq xmm0, qword [ebp - 0x1c]
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x20], eax
test eax, eax
je 0x1000438b
cmp eax, 1
je 0x1000438b
and eax, 1
or eax, 0x10062a1c
mov dword [ebp - 0x20], eax
test byte [ebp - 0x20], 1
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x38], str.D:ProgrammsLibrares_boost_boost_asio_basic_socket_acceptor.hpp
mov dword [ebp - 0x34], str.basic_socket_acceptor
mov dword [ebp - 0x30], 0x126
mov dword [ebp - 0x2c], 0x1a
je 0x100043cd
cmp eax, 1
jne 0x100046ce
cmp dword [ebp - 0x28], 0
setne al
test al, al
jne 0x100046ce
cmp byte [ebp + 0x10], 0
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
je 0x100044e0
mov eax, dword [esi]
mov dword [ebp - 0x4c], 1
cmp eax, 0xffffffff
jne 0x1000444e
cmp dword [0x10072008], 0x257edfd1
jne 0x10004403
cmp dword [0x1007200c], 0xb2ab117a
je 0x1000441b
cmp dword [0x10072008], 0x257edfd0
jne 0x1000441f
cmp dword [0x1007200c], 0xb2ab117a
jne 0x1000441f
mov al, 1
jmp 0x10004433
mov eax, dword [section..data]
mov ecx, section..data
push 0x2719
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
mov dword [ebp - 0x1c], 0x2719
add eax, 2
mov dword [ebp - 0x18], 0x10072000
movq xmm0, qword [ebp - 0x1c]
jmp 0x10004482
push 4
lea ecx, [ebp - 0x4c]
push ecx
push 4
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x1000446b
xorps xmm0, xmm0
jmp 0x10004482
call edi
push section..data
push eax
lea ecx, [ebp - 0x28]
call fcn.10002330
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x20], eax
test eax, eax
je 0x1000449e
cmp eax, 1
je 0x1000449e
and eax, 1
or eax, 0x10062a2c
mov dword [ebp - 0x20], eax
test byte [ebp - 0x20], 1
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x38], str.D:ProgrammsLibrares_boost_boost_asio_basic_socket_acceptor.hpp
mov dword [ebp - 0x34], str.basic_socket_acceptor
mov dword [ebp - 0x30], 0x12b
mov dword [ebp - 0x2c], 0x1c
je 0x100044e0
cmp eax, 1
jne 0x100046e0
cmp dword [ebp - 0x28], 0
setne al
test al, al
jne 0x100046e0
mov edx, dword [ebp - 0x50]
mov ecx, 0x1c
mov eax, 0x10
cmp word [edx], 2
cmovne eax, ecx
mov ecx, dword [esi]
cmp ecx, 0xffffffff
jne 0x1000455e
cmp dword [0x10072008], 0x257edfd1
jne 0x10004513
cmp dword [0x1007200c], 0xb2ab117a
je 0x1000452b
cmp dword [0x10072008], 0x257edfd0
jne 0x1000452f
cmp dword [0x1007200c], 0xb2ab117a
jne 0x1000452f
mov al, 1
jmp 0x10004543
mov eax, dword [section..data]
mov ecx, section..data
push 0x2719
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
mov dword [ebp - 0x1c], 0x2719
add eax, 2
mov dword [ebp - 0x18], 0x10072000
movq xmm0, qword [ebp - 0x1c]
jmp 0x10004587
push eax
push edx
push ecx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x10004570
xorps xmm0, xmm0
jmp 0x10004587
call edi
push section..data
push eax
lea ecx, [ebp - 0x28]
call fcn.10002330
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x20], eax
test eax, eax
je 0x100045a3
cmp eax, 1
je 0x100045a3
and eax, 1
or eax, 0x100629c0
mov dword [ebp - 0x20], eax
test byte [ebp - 0x20], 1
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x38], str.D:ProgrammsLibrares_boost_boost_asio_basic_socket_acceptor.hpp
mov dword [ebp - 0x34], str.basic_socket_acceptor
mov dword [ebp - 0x30], 0x12e
mov dword [ebp - 0x2c], 0x1a
je 0x100045e5
cmp eax, 1
jne 0x100046f2
cmp dword [ebp - 0x28], 0
setne al
test al, al
jne 0x100046f2
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x1000464a
cmp dword [0x10072008], 0x257edfd1
jne 0x10004604
cmp dword [0x1007200c], 0xb2ab117a
je 0x1000461c
cmp dword [0x10072008], 0x257edfd0
jne 0x10004620
cmp dword [0x1007200c], 0xb2ab117a
jne 0x10004620
mov al, 1
jmp 0x10004634
mov eax, dword [section..data]
mov ecx, section..data
push 0x2719
mov eax, dword [eax + 0x18]
call eax
movzx eax, al
mov dword [ebp - 0x1c], 0x2719
add eax, 2
mov dword [ebp - 0x18], 0x10072000
jmp 0x1000467b
push bind
push eax
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
jne 0x1000465f
xorps xmm0, xmm0
jmp 0x10004676
call edi
push section..data
push eax
lea ecx, [ebp - 0x28]
call fcn.10002330
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x38], str.D:ProgrammsLibrares_boost_boost_asio_basic_socket_acceptor.hpp
mov dword [ebp - 0x34], str.basic_socket_acceptor
mov dword [ebp - 0x30], 0x131
mov dword [ebp - 0x2c], 0x1a
test al, 1
je 0x100046ae
cmp eax, 1
jne 0x10004704
cmp dword [ebp - 0x1c], 0
setne al
test al, al
jne 0x10004704
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1003e0d6
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 0x38]
push eax
push str.open
lea eax, [ebp - 0x1c]
push eax
call fcn.10002b50
lea eax, [ebp - 0x38]
push eax
push str.set_option
lea eax, [ebp - 0x1c]
push eax
call fcn.10002b50
lea eax, [ebp - 0x38]
push eax
push str.bind
lea eax, [ebp - 0x1c]
push eax
call fcn.10002b50
lea eax, [ebp - 0x38]
push eax
push str.listen
lea eax, [ebp - 0x1c]
push eax
call fcn.10002b50
int3