Function at 0x423760
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x45d780]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [str.VKkc0KbC6UISm1nOUxIMA]
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, ecx
mov ecx, dword [ebp + 0xc]
lea ebx, [edi + 0x14]
mov dword [ebp - 0x90], ecx
push edx
mov ecx, ebx
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], ebx
call fcn.00404630
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, 0xffffffff
lea ecx, [edi + 4]
setne byte [ebp - 0x85]
call fcn.00401f30
test al, al
je 0x4237e4
mov eax, dword [edi]
movzx ecx, byte [ebp - 0x85]
mov edx, dword [str.mzRkDcUhfbI]
push eax
push ecx
push str.__d__socket___d
push edx
lea eax, [edi + 8]
push eax
call fcn.00404720
add esp, 0x14
cmp byte [ebp - 0x85], 0
je 0x423809
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00430215
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push esi
push 1
push 0
push 0
push 0
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [str.VKkc0KbC6UISm1nOUxIMA]
push esi
push str._socket_d___d
push eax
push ebx
call fcn.004046d0
add esp, 0x14
cmp esi, 0xffffffff
je 0x423997
test byte [ebp + 0x18], 4
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
je 0x423879
push 4
lea ecx, [ebp - 0x8c]
push ecx
push 4
push 0xffff
push esi
mov dword [ebp - 0x8c], 1
call ebx
cmp eax, 0xffffffff
je 0x42396c
mov eax, 2
cmp dword [ebp + 0x14], eax
jne 0x4238b4
test byte [ebp + 0x18], 0x20
je 0x4238b4
cmp dword [ebp + 0x10], eax
jne 0x4238b4
push 4
lea edx, [ebp - 0x8c]
push edx
push 0x20
push 0xffff
push esi
mov dword [ebp - 0x8c], 1
call ebx
cmp eax, 0xffffffff
je 0x42396c
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.0042fa50
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x90]
lea ecx, [ebp - 0x84]
push ecx
mov ecx, dword [ebp - 0x98]
push edx
push eax
push ecx
call fcn.004234a0
add esp, 0x1c
push 0x45f4e8
lea ecx, [ebp - 0x84]
call fcn.00422ae0
test al, al
sete al
mov byte [ebp - 0x85], al
test al, al
je 0x4239d2
xor eax, eax
cmp word [ebp - 0x84], 2
lea edx, [ebp - 0x84]
setne al
dec eax
and eax, 0xffffff90
sub eax, 0xffffff80
push eax
push edx
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x4239d2
cmp dword [ebp + 0x14], 1
jne 0x423995
push 4
lea edx, [ebp - 0x8c]
push edx
push 0x80
push 0xffff
xor eax, eax
push esi
mov dword [ebp - 0x8c], eax
call ebx
push bind
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x423995
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00430215
mov esp, ebp
pop ebp
ret 0x14
mov dword [edi], esi
mov edx, dword [edi]
mov eax, dword [str.VKkc0KbC6UISm1nOUxIMA]
mov ecx, dword [ebp - 0x94]
xor ebx, ebx
cmp esi, 0xffffffff
setne bl
push edx
push ebx
push str.__d__socket_d
push eax
push ecx
call fcn.00404720
add esp, 0x14
pop esi
pop edi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00430215
mov esp, ebp
pop ebp
ret 0x14
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [str.VKkc0KbC6UISm1nOUxIMA]
mov ebx, eax
movzx eax, byte [ebp - 0x85]
push ebx
push eax
push str.__d_CreateFrom___d_bind
push ecx
add edi, 0x38
push edi
call fcn.004046d0
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
pop esi
pop edi
xor ecx, ebp
xor al, al
pop ebx
call fcn.00430215
mov esp, ebp
pop ebp
ret 0x14