Function at 0x4aa500
Capabilities:
Resolve function by parsing pe exports
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
mov eax, dword [0x7eba44]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
xorps xmm0, xmm0
mov dword [esp + 8], 0xffffffff
mov ebx, ecx
movlpd qword [esp + 0x28], xmm0
mov dword [esp + 0x18], ebx
movlpd qword [esp + 0x50], xmm0
movlpd qword [esp + 0x58], xmm0
movlpd qword [esp + 0x60], xmm0
push esi
push edi
test ebx, ebx
jne 0x4aa562
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.006dbabd
mov esp, ebp
pop ebp
ret
mov eax, dword [0x7f02bc]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov ecx, dword [eax + 0xc8]
mov eax, dword [eax + 0xcc]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x30]
movzx eax, dx
mov dword [esp + 0x48], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x44], eax
call fcn.004a8860
mov esi, eax
mov dword [esp + 0x1c], esi
test esi, esi
jne 0x4ab7a9
mov ebx, dword [esp + 0x6c]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
je 0x4aa927
cmp ebx, 0x277b
je 0x4aa79b
mov esi, ebx
mov dword [esp + 0x1c], esi
cmp dword [0x7f02b8], eax
je 0x4aa919
mov eax, dword [0x7f02b8]
mov dword [esp + 0x1c], esi
cmp dword [eax + 0x14], 4
jl 0x4aa919
push 0
push 0x400
push 0x7f05e0
push 0x400
push ebx
push 0
push 0x12ff
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0x7f05e0
push ebx
push dword [esp + 0x28]
push 0x233
push str.d:_srcmaster_2022ClientOSSServicecsproxy_src_sock.c
push str.__s:_d_:_n___csp_sock_resolve___for__s_failed__error__d:_s
push 4
call fcn.00472f60
mov edi, eax
add esp, 0x1c
mov dword [esp + 0x18], edi
test edi, edi
je 0x4aa790
mov edi, dword [0x7f02b8]
test edi, edi
je 0x4aa784
cmp byte [edi + 8], 0
je 0x4aa784
cmp dword [edi + 0x14], 4
jl 0x4aa784
mov esi, eax
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4aa677
mov eax, dword [edi + 0x20]
sub esi, ecx
add eax, esi
cmp dword [edi + 0x28], eax
jb 0x4aa784
test esi, esi
je 0x4aa784
push 8
push 1
call fcn.006e6b64
add esp, 8
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4aa784
push 1
push esi
call fcn.006e6b64
mov ecx, eax
add esp, 8
mov eax, dword [esp + 0x1c]
mov dword [eax], ecx
test ecx, ecx
jne 0x4aa6cd
mov dword [eax + 4], ecx
jmp 0x4aa784
push esi
push dword [esp + 0x1c]
push ecx
call fcn.006dccc0
mov eax, dword [esp + 0x28]
add esp, 0xc
mov dword [eax + 4], esi
mov eax, dword [edi + 0x24]
test eax, eax
je 0x4aa6f5
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x24]
add dword [edi + 0x20], esi
test eax, eax
je 0x4aa705
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x4aa784
cmp byte [esi + 0x10], 0
je 0x4aa722
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4aa722
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 0xc]
push 0xc
push 1
call fcn.006e6b64
add esp, 8
test edi, edi
je 0x4aa759
test eax, eax
je 0x4aa76e
mov ecx, dword [esp + 0x1c]
mov dword [eax], ecx
mov ecx, dword [edi + 8]
mov dword [eax + 8], ecx
mov dword [edi + 8], eax
mov dword [eax + 4], edi
test ecx, ecx
je 0x4aa754
mov dword [ecx + 4], eax
jmp 0x4aa76b
mov dword [esi + 0xc], eax
jmp 0x4aa76b
mov ecx, eax
test ecx, ecx
je 0x4aa76e
mov eax, dword [esp + 0x1c]
mov dword [ecx], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
inc dword [esi + 4]
cmp byte [esi + 0x10], 0
je 0x4aa784
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4aa784
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [esp + 0x18]
call fcn.006e60fe
add esp, 4
mov esi, ebx
mov dword [esp + 0x1c], esi
jmp 0x4aa919
call edi
mov esi, eax
mov eax, dword [0x7f02b8]
mov dword [esp + 0x1c], esi
test eax, eax
je 0x4aa919
cmp dword [eax + 0x14], 4
jl 0x4aa919
push esi
call fcn.006e72af
add esp, 4
push eax
push esi
push dword [esp + 0x28]
push 0x22d
push str.d:_srcmaster_2022ClientOSSServicecsproxy_src_sock.c
push str.__s:_d_:_n___csp_sock_resolve___for__s_failed__error__d:_s
push 4
call fcn.00472f60
mov edi, eax
add esp, 0x1c
mov dword [esp + 0x18], edi
test edi, edi
je 0x4aa919
mov edi, dword [0x7f02b8]
test edi, edi
je 0x4aa90d
cmp byte [edi + 8], 0
je 0x4aa90d
cmp dword [edi + 0x14], 4
jl 0x4aa90d
mov esi, eax
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4aa817
mov eax, dword [edi + 0x20]
sub esi, ecx
add eax, esi
cmp dword [edi + 0x28], eax
jb 0x4aa909
test esi, esi
je 0x4aa909
push 8
push 1
call fcn.006e6b64
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4aa909
push 1
push esi
call fcn.006e6b64
add esp, 8
mov dword [ebx], eax
test eax, eax
jne 0x4aa865
mov dword [ebx + 4], eax
jmp 0x4aa909
push esi
push dword [esp + 0x1c]
push eax
call fcn.006dccc0
mov eax, dword [edi + 0x24]
add esp, 0xc
mov dword [ebx + 4], esi
test eax, eax
je 0x4aa889
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x24]
add dword [edi + 0x20], esi
test eax, eax
je 0x4aa899
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x4aa909
cmp byte [esi + 0x10], 0
je 0x4aa8b6
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4aa8b6
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 0xc]
push 0xc
push 1
call fcn.006e6b64
add esp, 8
test edi, edi
je 0x4aa8e4
test eax, eax
je 0x4aa8f3
mov ecx, dword [edi + 8]
mov dword [eax], ebx
mov dword [eax + 8], ecx
mov dword [edi + 8], eax
mov dword [eax + 4], edi
test ecx, ecx
je 0x4aa8ed
mov dword [ecx + 4], eax
jmp 0x4aa8f0
test eax, eax
je 0x4aa8f3
mov dword [eax], ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
inc dword [esi + 4]
cmp byte [esi + 0x10], 0
je 0x4aa909
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4aa909
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x1c]
push dword [esp + 0x18]
call fcn.006e60fe
add esp, 4
test esi, esi
jne 0x4ab7a9
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x4ab3d2
nop word [eax + eax]
mov al, byte [0x7d3deb]
push 0x40
mov byte [esp + 0x74], al
lea eax, [esp + 0x75]
push 0
push eax
call fcn.006dca70
mov eax, dword [0x7f02bc]
add esp, 0xc
mov eax, dword [eax + 0x60]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 4]
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 1
sub eax, 2
je 0x4aa995
sub eax, 0x15
jne 0x4aa9ab
push 0x41
lea eax, [esp + 0x74]
push eax
mov eax, dword [ebx + 0x18]
add eax, 8
push eax
push 0x17
jmp 0x4aa9a5
push 0x41
lea eax, [esp + 0x74]
push eax
mov eax, dword [ebx + 0x18]
add eax, 4
push eax
push 2
call dword [sym.imp.WS2_32.dll_inet_ntop]
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x4aab5f
mov eax, dword [0x7f02b8]
test eax, eax
je 0x4ab3b9
cmp dword [eax + 0x14], 4
jl 0x4ab3b9
push esi
call fcn.006e72af
add esp, 4
push eax
push esi
lea eax, [esp + 0x78]
push eax
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [ebx + 4]
push 0x25f
push str.d:_srcmaster_2022ClientOSSServicecsproxy_src_sock.c
push str.__s:_d_:_n__failed_to_create_socket__d___d___d__on_interface__s__error__d:_s
push 4
call fcn.00472f60
mov edi, eax
add esp, 0x28
mov dword [esp + 0x14], edi
test edi, edi
je 0x4ab3b9
mov edi, dword [0x7f02b8]
test edi, edi
je 0x4aab4e
cmp byte [edi + 8], 0
je 0x4aab4e
cmp dword [edi + 0x14], 4
jl 0x4aab4e
mov esi, eax
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4aaa45
mov eax, dword [edi + 0x20]
sub esi, ecx
add eax, esi
cmp dword [edi + 0x28], eax
jb 0x4aab4e
test esi, esi
je 0x4aab4e
push 8
push 1
call fcn.006e6b64
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4aab4a
push 1
push esi
call fcn.006e6b64
add esp, 8
mov dword [ebx], eax
test eax, eax
jne 0x4aaaa3
push dword [esp + 0x14]
mov dword [ebx + 4], eax
mov ebx, dword [esp + 0x1c]
call fcn.006e60fe
add esp, 4
jmp 0x4ab3b9
push esi
push dword [esp + 0x18]
push eax
call fcn.006dccc0
mov dword [ebx + 4], esi
add esp, 0xc
mov eax, dword [edi + 0x24]
test eax, eax
je 0x4aaac7
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x24]
add dword [edi + 0x20], esi
test eax, eax
je 0x4aaad7
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x4aab4a
cmp byte [esi + 0x10], 0
je 0x4aaaf4
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4aaaf4
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 0xc]
push 0xc
push 1
call fcn.006e6b64
add esp, 8
test edi, edi
je 0x4aab25
test eax, eax
je 0x4aab34
mov dword [eax], ebx
mov ecx, dword [edi + 8]
mov dword [eax + 8], ecx
mov dword [edi + 8], eax
mov ecx, dword [eax + 8]
mov dword [eax + 4], edi
test ecx, ecx
je 0x4aab2e
mov dword [ecx + 4], eax
jmp 0x4aab31
test eax, eax
je 0x4aab34
mov dword [eax], ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
inc dword [esi + 4]
cmp byte [esi + 0x10], 0
je 0x4aab4a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4aab4a
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [esp + 0x18]
push dword [esp + 0x14]
call fcn.006e60fe
add esp, 4
jmp 0x4ab3b9
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x28]
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
push eax
push 4
push 0xffff
push esi
call ebx
cmp eax, 0xffffffff
jne 0x4aad03
mov eax, dword [0x7f02b8]
test eax, eax
je 0x4aad03
cmp dword [eax + 0x14], 4
jl 0x4aad03
call edi
push eax
call fcn.006e72af
add esp, 4
push eax
call edi
push eax
push esi
push 0x273
push str.d:_srcmaster_2022ClientOSSServicecsproxy_src_sock.c
push str.__s:_d_:_n__fd__03d__Failed_to_set_SO_REUSEADDR__error__d:_s
push 4
call fcn.00472f60
mov edi, eax
add esp, 0x1c
mov dword [esp + 0x14], edi
test edi, edi
je 0x4aad03
mov edi, dword [0x7f02b8]
test edi, edi
je 0x4aacf7
cmp byte [edi + 8], 0
je 0x4aacf7
cmp dword [edi + 0x14], 4
jl 0x4aacf7
mov esi, eax
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4aabf8
mov eax, dword [edi + 0x20]
sub esi, ecx
add eax, esi
cmp dword [edi + 0x28], eax
jb 0x4aacf3
test esi, esi
je 0x4aacf3
push 8
push 1
call fcn.006e6b64
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4aaced
push 1
push esi
call fcn.006e6b64
add esp, 8
mov dword [ebx], eax
test eax, eax
jne 0x4aac46
mov dword [ebx + 4], eax
jmp 0x4aaced
push esi
push dword [esp + 0x18]
push eax
call fcn.006dccc0
mov dword [ebx + 4], esi
add esp, 0xc
mov eax, dword [edi + 0x24]
test eax, eax
je 0x4aac6a
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x24]
add dword [edi + 0x20], esi
test eax, eax
je 0x4aac7a
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x4aaced
cmp byte [esi + 0x10], 0
je 0x4aac97
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4aac97
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 0xc]
push 0xc
push 1
call fcn.006e6b64
add esp, 8
test edi, edi
je 0x4aacc8
test eax, eax
je 0x4aacd7
mov dword [eax], ebx
mov ecx, dword [edi + 8]
mov dword [eax + 8], ecx
mov dword [edi + 8], eax
mov ecx, dword [eax + 8]
mov dword [eax + 4], edi
test ecx, ecx
je 0x4aacd1
mov dword [ecx + 4], eax
jmp 0x4aacd4
test eax, eax
je 0x4aacd7
mov dword [eax], ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
inc dword [esi + 4]
cmp byte [esi + 0x10], 0
je 0x4aaced
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4aaced
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, dword [esp + 0x10]
push dword [esp + 0x14]
call fcn.006e60fe
add esp, 4
push 4
lea eax, [esp + 0x28]
push eax
push 0x1001
push 0xffff
push esi
call ebx
cmp eax, 0xffffffff
jne 0x4aaeab
mov eax, dword [0x7f02b8]
test eax, eax
je 0x4aaeab
cmp dword [eax + 0x14], 4
jl 0x4aaeab
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
push eax
call fcn.006e72af
add esp, 4
push eax
call ebx
push eax
push esi
push 0x27c
push str.d:_srcmaster_2022ClientOSSServicecsproxy_src_sock.c
push str.__s:_d_:_n__fd__03d__Failed_to_set_SO_SNDBUF__error__d:_s
push 4
call fcn.00472f60
mov edi, eax
add esp, 0x1c
mov dword [esp + 0x14], edi
test edi, edi
je 0x4aaea5
mov edi, dword [0x7f02b8]
test edi, edi
je 0x4aae99
cmp byte [edi + 8], 0
je 0x4aae99
cmp dword [edi + 0x14], 4
jl 0x4aae99
mov esi, eax
lea ecx, [esi + 1]
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4aada0
mov eax, dword [edi + 0x20]
sub esi, ecx
add eax, esi
cmp dword [edi + 0x28], eax
jb 0x4aae95
test esi, esi
je 0x4aae95
push 8
push 1
call fcn.006e6b64
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4aae95
push 1
push esi
call fcn.006e6b64
add esp, 8
mov dword [ebx], eax
test eax, eax
jne 0x4aadee
mov dword [ebx + 4], eax
jmp 0x4aae95
push esi
push dword [esp + 0x18]
push eax
call fcn.006dccc0
mov dword [ebx + 4], esi
add esp, 0xc
mov eax, dword [edi + 0x24]
test eax, eax
je 0x4aae12
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x24]
add dword [edi + 0x20], esi
test eax, eax
je 0x4aae22
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x4aae95
cmp byte [esi + 0x10], 0
je 0x4aae3f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4aae3f
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 0xc]
push 0xc
push 1
call fcn.006e6b64
add esp, 8
test edi, edi
je 0x4aae70
test eax, eax
je 0x4aae7f
mov dword [eax], ebx
mov ecx, dword [edi + 8]
mov dword [eax + 8], ecx
mov dword [edi + 8], eax
mov ecx, dword [eax + 8]
mov dword [eax + 4], edi
test ecx, ecx
je 0x4aae79
mov dword [ecx + 4], eax
jmp 0x4aae7c
test eax, eax
je 0x4aae7f
mov dword [eax], ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
inc dword [esi + 4]
cmp byte [esi + 0x10], 0
je 0x4aae95
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4aae95
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x10]
push dword [esp + 0x14]
call fcn.006e60fe
add esp, 4
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [esp + 0x28]
push eax
push 0x1002
push 0xffff
push esi
call ebx
cmp eax, 0xffffffff
jne 0x4ab048
mov eax, dword [0x7f02b8]
test eax, eax
je 0x4ab048
cmp dword [eax + 0x14], 4
jl 0x4ab048
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
push eax
call fcn.006e72af
add esp, 4
push eax
call ebx
push eax
push esi
push 0x285
push str.d:_srcmaster_2022ClientOSSServicecsproxy_src_sock.c
push str.__s:_d_:_n__fd__03d__Failed_to_set_SO_RCVBUF__error__d:_s
push 4
call fcn.00472f60
mov edi, eax
add esp, 0x1c
mov dword [esp + 0x14], edi
test edi, edi
je 0x4ab048
mov edi, dword [0x7f02b8]
test edi, edi
je 0x4ab03c
cmp byte [edi + 8], 0
je 0x4ab03c
cmp dword [edi + 0x14], 4
jl 0x4ab03c
mov esi, eax
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4aaf43
mov eax, dword [edi + 0x20]
sub esi, ecx
add eax, esi
cmp dword [edi + 0x28], eax
jb 0x4ab038
test esi, esi
je 0x4ab038
push 8
push 1
call fcn.006e6b64
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4ab038
push 1
push esi
call fcn.006e6b64
add esp, 8
mov dword [ebx], eax
test eax, eax
jne 0x4aaf91
mov dword [ebx + 4], eax
jmp 0x4ab038
push esi
push dword [esp + 0x18]
push eax
call fcn.006dccc0
mov dword [ebx + 4], esi
add esp, 0xc
mov eax, dword [edi + 0x24]
test eax, eax
je 0x4aafb5
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x24]
add dword [edi + 0x20], esi
test eax, eax
je 0x4aafc5
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x4ab038
cmp byte [esi + 0x10], 0
je 0x4aafe2
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4aafe2
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 0xc]
push 0xc
push 1
call fcn.006e6b64
add esp, 8
test edi, edi
je 0x4ab013
test eax, eax
je 0x4ab022
mov dword [eax], ebx
mov ecx, dword [edi + 8]
mov dword [eax + 8], ecx
mov dword [edi + 8], eax
mov ecx, dword [eax + 8]
mov dword [eax + 4], edi
test ecx, ecx
je 0x4ab01c
mov dword [ecx + 4], eax
jmp 0x4ab01f
test eax, eax
je 0x4ab022
mov dword [eax], ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
inc dword [esi + 4]
cmp byte [esi + 0x10], 0
je 0x4ab038
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ab038
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x10]
push dword [esp + 0x14]
call fcn.006e60fe
add esp, 4
mov ebx, dword [esp + 0x18]
cmp dword [ebx + 4], 0x17
jne 0x4ab1f9
push 4
lea eax, [esp + 0x30]
push eax
push 0x1b
push 0x29
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x4ab1f9
mov eax, dword [0x7f02b8]
test eax, eax
je 0x4ab1f9
cmp dword [eax + 0x14], 4
jl 0x4ab1f9
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
push eax
call fcn.006e72af
add esp, 4
push eax
call edi
push eax
push esi
push 0x295
push str.d:_srcmaster_2022ClientOSSServicecsproxy_src_sock.c
push str.__s:_d_:_n__fd__03d__Failed_to_set_IPV6_V6ONLY__error__d:_s
push 4
call fcn.00472f60
mov edi, eax
add esp, 0x1c
mov dword [esp + 0x14], edi
test edi, edi
je 0x4ab1f9
mov edi, dword [0x7f02b8]
test edi, edi
je 0x4ab1ed
cmp byte [edi + 8], 0
je 0x4ab1ed
cmp dword [edi + 0x14], 4
jl 0x4ab1ed
mov esi, eax
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4ab0f0
mov eax, dword [edi + 0x20]
sub esi, ecx
add eax, esi
cmp dword [edi + 0x28], eax
jb 0x4ab1e9
test esi, esi
je 0x4ab1e9
push 8
push 1
call fcn.006e6b64
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4ab1e5
push 1
push esi
call fcn.006e6b64
add esp, 8
mov dword [ebx], eax
test eax, eax
jne 0x4ab13e
mov dword [ebx + 4], eax
jmp 0x4ab1e5
push esi
push dword [esp + 0x18]
push eax
call fcn.006dccc0
mov dword [ebx + 4], esi
add esp, 0xc
mov eax, dword [edi + 0x24]
test eax, eax
je 0x4ab162
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x24]
add dword [edi + 0x20], esi
test eax, eax
je 0x4ab172
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x4ab1e5
cmp byte [esi + 0x10], 0
je 0x4ab18f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ab18f
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 0xc]
push 0xc
push 1
call fcn.006e6b64
add esp, 8
test edi, edi
je 0x4ab1c0
test eax, eax
je 0x4ab1cf
mov dword [eax], ebx
mov ecx, dword [edi + 8]
mov dword [eax + 8], ecx
mov dword [edi + 8], eax
mov ecx, dword [eax + 8]
mov dword [eax + 4], edi
test ecx, ecx
je 0x4ab1c9
mov dword [ecx + 4], eax
jmp 0x4ab1cc
test eax, eax
je 0x4ab1cf
mov dword [eax], ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
inc dword [esi + 4]
cmp byte [esi + 0x10], 0
je 0x4ab1e5
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ab1e5
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
push dword [esp + 0x14]
call fcn.006e60fe
add esp, 4
push esi
call fcn.004bae8d
add esp, 4
push dword [ebx + 0x10]
push dword [ebx + 0x18]
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x4ab492
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
mov esi, eax
mov eax, dword [0x7f02b8]
mov dword [esp + 0x1c], esi
test eax, eax
je 0x4ab3a3
cmp dword [eax + 0x14], 4
jl 0x4ab3a3
push esi
call fcn.006e72af
add esp, 4
push eax
push esi
push dword [esp + 0x28]
lea eax, [esp + 0x7c]
push eax
push dword [esp + 0x20]
push 0x2a9
push str.d:_srcmaster_2022ClientOSSServicecsproxy_src_sock.c
push str.__s:_d_:_n__fd__03d__Could_not_bind_to__s___s___error__d:_s
push 4
call fcn.00472f60
mov edi, eax
add esp, 0x24
mov dword [esp + 0x14], edi
test edi, edi
je 0x4ab3a3
mov edi, dword [0x7f02b8]
test edi, edi
je 0x4ab397
cmp byte [edi + 8], 0
je 0x4ab397
cmp dword [edi + 0x14], 4
jl 0x4ab397
mov esi, eax
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4ab2a2
mov eax, dword [edi + 0x20]
sub esi, ecx
add eax, esi
cmp dword [edi + 0x28], eax
jb 0x4ab397
test esi, esi
je 0x4ab397
push 8
push 1
call fcn.006e6b64
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4ab397
push 1
push esi
call fcn.006e6b64
add esp, 8
mov dword [ebx], eax
test eax, eax
jne 0x4ab2f0
mov dword [ebx + 4], eax
jmp 0x4ab397
push esi
push dword [esp + 0x18]
push eax
call fcn.006dccc0
mov dword [ebx + 4], esi
add esp, 0xc
mov eax, dword [edi + 0x24]
test eax, eax
je 0x4ab314
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x24]
add dword [edi + 0x20], esi
test eax, eax
je 0x4ab324
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x4ab397
cmp byte [esi + 0x10], 0
je 0x4ab341
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ab341
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 0xc]
push 0xc
push 1
call fcn.006e6b64
add esp, 8
test edi, edi
je 0x4ab372
test eax, eax
je 0x4ab381
mov dword [eax], ebx
mov ecx, dword [edi + 8]
mov dword [eax + 8], ecx
mov dword [edi + 8], eax
mov ecx, dword [eax + 8]
mov dword [eax + 4], edi
test ecx, ecx
je 0x4ab37b
mov dword [ecx + 4], eax
jmp 0x4ab37e
test eax, eax
je 0x4ab381
mov dword [eax], ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
inc dword [esi + 4]
cmp byte [esi + 0x10], 0
je 0x4ab397
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ab397
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [esp + 0x14]
call fcn.006e60fe
add esp, 4
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_closesocket]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
mov ebx, dword [ebx + 0x1c]
mov esi, dword [esp + 0x1c]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x18], ebx
test ebx, ebx
jne 0x4aa940
mov eax, dword [0x7f02b8]
test eax, eax
je 0x4ab86e
cmp dword [eax + 0x14], 4
jl 0x4ab86e
push 0xffffffffffffffff
push 0x2b5
push str.d:_srcmaster_2022ClientOSSServicecsproxy_src_sock.c
push str.__s:_d_:_n__fd__03d__Unable_to_bind_listening_socket_to_any_address.
push 4
call fcn.00472f60
mov edi, eax
add esp, 0x14
mov dword [esp + 0x14], edi
test edi, edi
je 0x4ab86e
mov edi, dword [0x7f02b8]
test edi, edi
je 0x4ab862
cmp byte [edi + 8], 0
je 0x4ab862
cmp dword [edi + 0x14], 4
jl 0x4ab862
mov esi, eax
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4ab440
mov eax, dword [edi + 0x20]
sub esi, ecx
add eax, esi
cmp dword [edi + 0x28], eax
jb 0x4ab862
test esi, esi
je 0x4ab862
push 8
push 1
call fcn.006e6b64
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4ab862
push 1
push esi
call fcn.006e6b64
add esp, 8
mov dword [ebx], eax
test eax, eax
jne 0x4ab7be
mov dword [ebx + 4], eax
jmp 0x4ab862
mov eax, dword [0x7f02b8]
test eax, eax
je 0x4ab607
cmp dword [eax + 0x14], 6
jl 0x4ab607
push dword [esp + 0x20]
lea eax, [esp + 0x74]
push eax
push esi
push 0x2a0
push str.d:_srcmaster_2022ClientOSSServicecsproxy_src_sock.c
push str.__s:_d_:_n__fd__03d__bind_to__s___s__succeeded
push 6
call fcn.00472f60
mov edi, eax
add esp, 0x1c
mov dword [esp + 0x14], edi
test edi, edi
je 0x4ab607
mov edi, dword [0x7f02b8]
test edi, edi
je 0x4ab5fb
cmp byte [edi + 8], 0
je 0x4ab5fb
cmp dword [edi + 0x14], 6
jl 0x4ab5fb
mov esi, eax
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4ab501
mov eax, dword [edi + 0x20]
sub esi, ecx
add eax, esi
cmp dword [edi + 0x28], eax
jb 0x4ab5f7
test esi, esi
je 0x4ab5f7
push 8
push 1
call fcn.006e6b64
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4ab5f3
push 1
push esi
call fcn.006e6b64
add esp, 8
mov dword [ebx], eax
test eax, eax
jne 0x4ab54f
mov dword [ebx + 4], eax
jmp 0x4ab5f3
push esi
push dword [esp + 0x18]
push eax
call fcn.006dccc0
mov eax, dword [edi + 0x24]
add esp, 0xc
mov dword [ebx + 4], esi
test eax, eax
je 0x4ab573
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x24]
add dword [edi + 0x20], esi
test eax, eax
je 0x4ab583
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x4ab5f3
cmp byte [esi + 0x10], 0
je 0x4ab5a0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ab5a0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 0xc]
push 0xc
push 1
call fcn.006e6b64
add esp, 8
test edi, edi
je 0x4ab5ce
test eax, eax
je 0x4ab5dd
mov ecx, dword [edi + 8]
mov dword [eax], ebx
mov dword [eax + 8], ecx
mov dword [edi + 8], eax
mov dword [eax + 4], edi
test ecx, ecx
je 0x4ab5d7
mov dword [ecx + 4], eax
jmp 0x4ab5da
test eax, eax
je 0x4ab5dd
mov dword [eax], ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
inc dword [esi + 4]
cmp byte [esi + 0x10], 0
je 0x4ab5f3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ab5f3
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
push dword [esp + 0x14]
call fcn.006e60fe
add esp, 4
mov eax, dword [0x7f02bc]
push dword [eax + 0x38]
push esi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
jns 0x4ab7b1
mov eax, dword [0x7f02b8]
test eax, eax
je 0x4ab7a2
cmp dword [eax + 0x14], 4
jl 0x4ab7a2
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
push eax
call fcn.006e72af
add esp, 4
push eax
call edi
push eax
push esi
push 0x2bd
push str.d:_srcmaster_2022ClientOSSServicecsproxy_src_sock.c
push str.__s:_d_:_n__fd__03d__Unable_to_start_listening_socket__error__d:_s
push 4
call fcn.00472f60
mov edi, eax
add esp, 0x1c
mov dword [esp + 0x14], edi
test edi, edi
je 0x4ab7a2
mov edi, dword [0x7f02b8]
test edi, edi
je 0x4ab796
cmp byte [edi + 8], 0
je 0x4ab796
cmp dword [edi + 0x14], 4
jl 0x4ab796
mov esi, eax
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4ab6a0
mov eax, dword [edi + 0x20]
sub esi, ecx
add eax, esi
cmp dword [edi + 0x28], eax
jb 0x4ab792
test esi, esi
je 0x4ab792
push 8
push 1
call fcn.006e6b64
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4ab792
push 1
push esi
call fcn.006e6b64
add esp, 8
mov dword [ebx], eax
test eax, eax
jne 0x4ab6ee
mov dword [ebx + 4], eax
jmp 0x4ab792
push esi
push dword [esp + 0x18]
push eax
call fcn.006dccc0
mov eax, dword [edi + 0x24]
add esp, 0xc
mov dword [ebx + 4], esi
test eax, eax
je 0x4ab712
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x24]
add dword [edi + 0x20], esi
test eax, eax
je 0x4ab722
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x4ab792
cmp byte [esi + 0x10], 0
je 0x4ab73f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ab73f
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 0xc]
push 0xc
push 1
call fcn.006e6b64
add esp, 8
test edi, edi
je 0x4ab76d
test eax, eax
je 0x4ab77c
mov ecx, dword [edi + 8]
mov dword [eax], ebx
mov dword [eax + 8], ecx
mov dword [edi + 8], eax
mov dword [eax + 4], edi
test ecx, ecx
je 0x4ab776
mov dword [ecx + 4], eax
jmp 0x4ab779
test eax, eax
je 0x4ab77c
mov dword [eax], ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
inc dword [esi + 4]
cmp byte [esi + 0x10], 0
je 0x4ab792
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ab792
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [esp + 0x10]
push dword [esp + 0x14]
call fcn.006e60fe
add esp, 4
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or esi, 0xffffffff
jmp 0x4ab872
mov eax, dword [ebx + 0x10]
mov dword [0x7f02ec], eax
jmp 0x4ab872
push esi
push dword [esp + 0x18]
push eax
call fcn.006dccc0
mov eax, dword [edi + 0x24]
add esp, 0xc
mov dword [ebx + 4], esi
test eax, eax
je 0x4ab7e2
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x24]
add dword [edi + 0x20], esi
test eax, eax
je 0x4ab7f2
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x4ab862
cmp byte [esi + 0x10], 0
je 0x4ab80f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ab80f
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esi + 0xc]
push 0xc
push 1
call fcn.006e6b64
add esp, 8
test edi, edi
je 0x4ab83d
test eax, eax
je 0x4ab84c
mov ecx, dword [edi + 8]
mov dword [eax], ebx
mov dword [eax + 8], ecx
mov dword [edi + 8], eax
mov dword [eax + 4], edi
test ecx, ecx
je 0x4ab846
mov dword [ecx + 4], eax
jmp 0x4ab849
test eax, eax
je 0x4ab84c
mov dword [eax], ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
inc dword [esi + 4]
cmp byte [esi + 0x10], 0
je 0x4ab862
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ab862
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [esp + 0x14]
call fcn.006e60fe
add esp, 4
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x68]
test eax, eax
je 0x4ab881
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov ecx, dword [esp + 0xbc]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.006dbabd
mov esp, ebp
pop ebp
ret