Function at 0x40b2e1
Capabilities:
Set socket configuration

Disassembly:
mov eax, 0x450abe
call fcn.0041e4b8
sub esp, 0x2c
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x180], edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
jne 0x40b600
cmp dword [ebp + 8], 0x33
jne 0x40b329
mov ecx, dword [esi + 0x15c]
push 4
push dword [ebp + 0xc]
lea eax, [esi + 0x1ab4]
push eax
call fcn.00412994
jmp 0x40ba41
mov ecx, dword [esi + 0x158]
cmp byte [ecx + 0x14], 0x31
jne 0x40b344
mov eax, dword [ecx]
call dword [eax + 0x10]
mov eax, dword [esi + 0x158]
mov byte [eax + 0x14], 0x30
mov eax, dword [esi + 0x158]
cmp byte [eax + 0x14], 0x30
jne 0x40b45f
xor ebx, ebx
inc ebx
mov dword [ebp - 0x14], ebx
or dword [eax + 4], 0xffffffff
call fcn.0042dd95
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
cmp dword [ebp + 8], 0x41
mov dword [ebp - 4], edi
je 0x40b38b
cmp dword [ebp + 8], 0x42
je 0x40b38b
cmp dword [ebp + 8], 0x58
lea eax, [esi + 0x80]
jne 0x40b391
lea eax, [esi + 0x8c]
lea ecx, [ebp - 0x18]
push eax
call fcn.00401c11
push dword [ebp - 0x18]
mov ecx, dword [esi + 0x158]
push 0x3f
push ebx
push edi
call fcn.0044fa3c
test eax, eax
je 0x40b40f
mov eax, dword [esi + 0x158]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [ebp - 0x14]
push ecx
push 8
mov ebx, 0xffff
push ebx
push dword [eax + 4]
call edi
mov eax, dword [esi + 0x158]
and dword [ebp - 0x14], 0
push 4
lea ecx, [ebp - 0x14]
push ecx
push 0xffffff7f
push ebx
push dword [eax + 4]
call edi
push dword [esi + 0x78]
mov eax, dword [esi + 0x134]
mov ecx, dword [esi + 0x158]
push eax
call fcn.0044f42e
test eax, eax
je 0x40b44e
mov eax, dword [esi + 0x158]
mov byte [eax + 0x14], 0x31
jmp 0x40b44e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xa
lea ecx, [ebp - 0x30]
push ecx
push eax
call fcn.004225e1
lea edi, [esi + 0x154]
mov ecx, dword [edi]
mov eax, dword [ecx]
add esp, 0xc
call dword [eax + 0x10]
mov eax, dword [edi]
push str.The_sockect_cant_create_error_no_is
mov ecx, esi
mov byte [eax + 0x18], 0x30
call fcn.00408cf5
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
call fcn.00408cf5
mov ecx, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.004011ce
xor edi, edi
mov ecx, dword [esi + 0x158]
cmp byte [ecx + 0x14], 0x30
jne 0x40b4c9
mov eax, dword [esi + 0x64]
cmp eax, 0x3c
je 0x40ba41
cmp eax, 0x3e
je 0x40ba41
and dword [ebp + 8], 0
push 3
lea ebx, [esi + 0x1c0]
pop edi
mov dword [ebx], edi
mov byte [esi + 0x1c4], 0x38
mov byte [esi + 0x1c5], 0x41
mov byte [esi + 0x1c6], 0x32
mov edx, dword [ebx]
mov ecx, dword [esi + 0x154]
mov eax, dword [ecx]
push 0
add edx, 4
push edx
push ebx
call dword [eax + 0x18]
cmp eax, 0xffffffff
jne 0x40b53a
mov eax, dword [ebp + 8]
inc dword [ebp + 8]
cmp eax, edi
jl 0x40b4a4
jmp 0x40b53a
mov eax, dword [ecx]
push edi
push dword [ebp + 0xc]
lea ebx, [esi + 0x1ab4]
push ebx
call dword [eax + 0x18]
cmp eax, 0xffffffff
jne 0x40b54f
mov eax, dword [esi + 0x64]
cmp eax, 0x3c
je 0x40ba41
cmp eax, 0x3e
je 0x40ba41
and dword [ebp + 8], 0
push 3
lea ebx, [esi + 0x1c0]
pop edi
mov dword [ebx], edi
mov byte [esi + 0x1c4], 0x38
mov byte [esi + 0x1c5], 0x41
mov byte [esi + 0x1c6], 0x32
mov edx, dword [ebx]
mov ecx, dword [esi + 0x154]
mov eax, dword [ecx]
push 0
add edx, 4
push edx
push ebx
call dword [eax + 0x18]
cmp eax, 0xffffffff
jne 0x40b53a
mov eax, dword [ebp + 8]
inc dword [ebp + 8]
cmp eax, edi
jl 0x40b517
cmp dword [ebp + 8], edi
mov ecx, esi
jg 0x40ba2e
push str.FEP___HOST_:
jmp 0x40b6a9
push dword [ebp + 0xc]
mov ecx, dword [esi + 0x150]
push ebx
call fcn.00410fb0
mov ecx, dword [esi + 0x150]
push 1
call fcn.00411b81
mov eax, dword [esi + 0x64]
cmp eax, 0x3c
je 0x40b5f1
cmp eax, 0x3e
je 0x40b5f1
and dword [ebp + 0xc], 0
push 3
lea ebx, [esi + 0x1c0]
pop edi
mov dword [ebx], edi
mov byte [esi + 0x1c4], 0x38
mov byte [esi + 0x1c5], 0x39
mov byte [esi + 0x1c6], 0
mov edx, dword [ebx]
mov ecx, dword [esi + 0x154]
mov eax, dword [ecx]
push 0
add edx, 4
push edx
push ebx
call dword [eax + 0x18]
cmp eax, 0xffffffff
jne 0x40b5bf
mov eax, dword [ebp + 0xc]
inc dword [ebp + 0xc]
cmp eax, edi
jl 0x40b59c
cmp dword [ebp + 0xc], edi
jg 0x40b5e5
mov eax, dword [ebx]
mov ecx, dword [esi + 0x150]
add eax, 4
push eax
push ebx
call fcn.004114ef
mov ecx, dword [esi + 0x150]
push 1
call fcn.00411b81
jmp 0x40b5f1
push 0x458034
mov ecx, esi
call fcn.00408cf5
push dword [ebp + 8]
mov ecx, esi
call fcn.0040a885
jmp 0x40ba41
mov ebx, dword [ebp + 0xc]
dec ebx
push ebx
push edi
push 0x10
mov dword [ebp + 0xc], ebx
mov dword [esi + 0x2e3c], ebx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
cmp eax, edi
mov dword [ebp - 0x1c], eax
jne 0x40b6d0
push str.Out_of_memory_
mov ecx, esi
call fcn.00408cf5
cmp dword [ebp + 8], 0x43
je 0x40ba35
cmp dword [ebp + 8], 0x44
je 0x40ba35
cmp dword [ebp + 8], 0x33
je 0x40ba35
and dword [ebp + 8], 0
push 3
lea ebx, [esi + 0x1c0]
pop edi
mov dword [ebx], edi
mov byte [esi + 0x1c4], 0x38
mov byte [esi + 0x1c5], 0x41
mov byte [esi + 0x1c6], 0x31
mov edx, dword [ebx]
mov ecx, dword [esi + 0x154]
mov eax, dword [ecx]
push 0
add edx, 4
push edx
push ebx
call dword [eax + 0x18]
cmp eax, 0xffffffff
jne 0x40b699
mov eax, dword [ebp + 8]
inc dword [ebp + 8]
cmp eax, edi
jl 0x40b676
cmp dword [ebp + 8], edi
mov ecx, esi
jg 0x40ba2e
push str.FEP___ATM_:COM
call fcn.00408cf5
mov eax, dword [ebx]
add eax, 4
push eax
add esi, 0x150
mov ecx, dword [esi]
push ebx
call fcn.004114ef
mov ecx, dword [esi]
push 1
call fcn.00411b81
jmp 0x40ba41
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
cmp eax, edi
jge 0x40b6e9
push str.Safe_array_access_data_calling_error_
jmp 0x40b62d
lea eax, [ebp - 0x20]
push eax
push 1
push dword [ebp - 0x1c]
call dword [sym.imp.OLEAUT32.dll_SafeArrayLock]
cmp eax, edi
jge 0x40b706
push str.Safe_array_get_lowest_bound_error_
jmp 0x40b62d
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
push ebx
add ecx, eax
push edi
push ecx
call fcn.0041e5e0
add esp, 0xc
push ebx
lea edi, [esi + 0x1ab4]
push edi
mov ecx, esi
call fcn.004030e0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
push ebx
add eax, ecx
push edi
push eax
call fcn.0041d970
add esp, 0xc
push dword [ebp - 0x1c]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
test eax, eax
jge 0x40b752
push str.Safe_array_unaccess_data_calling_error_
jmp 0x40b62d
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax]
lea edx, [ebp - 0x28]
push edx
push eax
mov dword [ebp - 4], 1
call dword [ecx + 0x2c]
jmp 0x40b78b
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x28], 1
je 0x40b845
cmp dword [ebp + 8], 0x43
je 0x40b83b
cmp dword [ebp + 8], 0x44
je 0x40b83b
cmp dword [ebp + 8], 0x33
je 0x40b83b
and dword [ebp + 8], 0
push 3
lea ebx, [esi + 0x1c0]
pop edi
mov dword [ebx], edi
mov byte [esi + 0x1c4], 0x38
mov byte [esi + 0x1c5], 0x41
mov byte [esi + 0x1c6], 0x32
mov edx, dword [ebx]
mov ecx, dword [esi + 0x154]
mov eax, dword [ecx]
push 0
add edx, 4
push edx
push ebx
call dword [eax + 0x18]
cmp eax, 0xffffffff
jne 0x40b7fe
mov eax, dword [ebp + 8]
inc dword [ebp + 8]
cmp eax, edi
jl 0x40b7db
cmp dword [ebp + 8], edi
mov ecx, esi
jg 0x40b831
push str.FEP___HOST_:COM
call fcn.00408cf5
mov eax, dword [ebx]
add eax, 4
push eax
add esi, 0x150
mov ecx, dword [esi]
push ebx
call fcn.004114ef
mov ecx, dword [esi]
push 1
call fcn.00411b81
jmp 0x40ba23
push 0x458034
jmp 0x40ba1e
push str.FEP___HOST_:COM
jmp 0x40ba1c
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax]
push 3
pop edi
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x2c]
push edx
lea edx, [ebp - 0x1c]
push edx
push eax
mov dword [ebp - 4], edi
call dword [ecx + 0x20]
jmp 0x40b888
or dword [ebp - 4], 0xffffffff
cmp dword [ebp + 8], 0x43
je 0x40b9db
cmp dword [ebp + 8], 0x44
je 0x40b9db
cmp dword [ebp + 8], 0x33
je 0x40b9db
cmp dword [ebp - 0x18], 0
jne 0x40b962
push dword [ebp + 0xc]
lea ebx, [esi + 0x1ab4]
push ebx
mov ecx, esi
call fcn.00403691
push dword [ebp + 0xc]
mov ecx, dword [esi + 0x150]
push ebx
call fcn.00410fb0
mov ecx, dword [esi + 0x150]
push 1
call fcn.00411b81
and dword [ebp + 0xc], 0
lea ebx, [esi + 0x1c0]
mov dword [ebx], edi
mov byte [esi + 0x1c4], 0x38
mov byte [esi + 0x1c5], 0x39
mov byte [esi + 0x1c6], 0
mov edx, dword [ebx]
mov ecx, dword [esi + 0x154]
mov eax, dword [ecx]
push 0
add edx, 4
push edx
push ebx
call dword [eax + 0x18]
cmp eax, 0xffffffff
jne 0x40b925
mov eax, dword [ebp + 0xc]
inc dword [ebp + 0xc]
cmp eax, edi
jl 0x40b902
cmp dword [ebp + 0xc], edi
jg 0x40b947
mov eax, dword [ebx]
mov ecx, dword [esi + 0x150]
add eax, 4
push eax
push ebx
call fcn.004114ef
mov ecx, dword [esi + 0x150]
jmp 0x40ba05
push 0x458034
mov ecx, esi
call fcn.00408cf5
push dword [ebp + 8]
mov ecx, esi
call fcn.0040a885
jmp 0x40ba23
cmp dword [ebp - 0x18], 1
jne 0x40ba23
and dword [ebp + 8], 0
lea ebx, [esi + 0x1c0]
mov dword [ebx], edi
mov byte [esi + 0x1c4], 0x38
mov byte [esi + 0x1c5], 0x41
mov byte [esi + 0x1c6], 0x32
mov edx, dword [ebx]
mov ecx, dword [esi + 0x154]
mov eax, dword [ecx]
push 0
add edx, 4
push edx
push ebx
call dword [eax + 0x18]
cmp eax, 0xffffffff
jne 0x40b9b0
mov eax, dword [ebp + 8]
inc dword [ebp + 8]
cmp eax, edi
jl 0x40b98d
cmp dword [ebp + 8], edi
jg 0x40b9d4
mov eax, dword [ebx]
add eax, 4
push eax
lea edi, [esi + 0x150]
mov ecx, dword [edi]
push ebx
call fcn.004114ef
mov ecx, dword [edi]
push 1
call fcn.00411b81
jmp 0x40ba17
push 0x458034
jmp 0x40ba1c
cmp dword [ebp - 0x18], 0
jne 0x40ba11
push dword [ebp + 0xc]
lea ebx, [esi + 0x1ab4]
push ebx
mov ecx, esi
call fcn.00403691
push dword [ebp + 0xc]
lea edi, [esi + 0x150]
mov ecx, dword [edi]
push ebx
call fcn.00410fb0
mov ecx, dword [edi]
push 1
call fcn.00411b81
jmp 0x40b953
cmp dword [ebp - 0x18], 1
jne 0x40ba23
push str.FEP___HOST:COM
mov ecx, esi
call fcn.00408cf5
push dword [ebp - 0x1c]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetDim]
jmp 0x40ba41
push 0x458034
jmp 0x40ba3c
push str.FEP___ATM_:COM
mov ecx, esi
call fcn.00408cf5
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8