Function at 0x463440
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bd2dc
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x6522a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
push ecx
push dword [esi + 0x18]
mov word [ebp - 0xa8], cx
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0xa8]
push ecx
push eax
call fcn.00462b60
add esp, 0x10
test al, al
je 0x4636b1
push dword [ebp - 0xa0]
movzx eax, word [ebp - 0xa8]
push dword [ebp - 0xa4]
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x46359a
mov dword [ebp - 0xb8], 4
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], str.bind
mov dword [ebp - 4], 2
mov dword [ebp - 0xc4], 6
mov dword [ebp - 0xc0], 0
mov dword [ebp - 0xbc], str.Socket
push str.cannot_create_socket
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0xc4]
push eax
push 0
call fcn.0044ef70
add esp, 0x10
mov ecx, dword [ebp - 0xc0]
or edi, ebx
mov byte [ebp - 4], 4
test ecx, ecx
je 0x46355e
mov eax, edi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x46355e
mov dword [ebp - 0xc0], 0
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 4], 5
test ecx, ecx
je 0x463585
lock xadd dword [ecx + 4], edi
dec edi
jne 0x463585
mov dword [ebp - 0xb4], 0
mov eax, dword [ecx]
call dword [eax]
mov dword [ebp - 4], 0xffffffff
call sub.WS2_32.dll_WSAGetLastError
push eax
call fcn.00473db0
add esp, 4
mov edi, dword [esi + 0x18]
mov dword [esi], ebx
xor bl, bl
mov dword [ebp - 0xb8], esi
mov byte [ebp - 0xb4], bl
mov dword [ebp - 0xb0], edi
push 1
push edi
mov ecx, 0x655a20
mov dword [ebp - 4], 6
call fcn.004640b0
movzx eax, byte [ebp + 0x10]
push 4
mov dword [ebp - 0xc8], eax
lea eax, [ebp - 0xc8]
push eax
push 4
push 0xffff
push dword [esi]
call dword [sym.imp.WS2_32.dll_setsockopt]
push dword [esi + 0xc]
mov ecx, esi
call fcn.00464c90
push dword [esi + 0x10]
mov ecx, esi
call fcn.00465180
movzx eax, byte [esi + 0x14]
mov ecx, esi
push eax
call fcn.00465980
mov al, byte [esi + 0x15]
test al, al
je 0x463637
mov ecx, dword [esi]
cmp ecx, 0xffffffff
je 0x463637
movzx eax, al
push 4
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0xac]
push eax
push 0x20
push 0xffff
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
push dword [ebp - 0x9c]
lea eax, [ebp - 0x98]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x463667
call sub.WS2_32.dll_WSAGetLastError
mov bl, 1
push eax
mov byte [ebp - 0xb4], bl
call fcn.00473db0
add esp, 4
mov dword [ebp - 4], 7
test bl, bl
je 0x463693
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x463693
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
push 0xffffffffffffffff
push edi
mov ecx, 0x655a20
mov dword [esi], 0xffffffff
call fcn.004640b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00592832
mov esp, ebp
pop ebp
ret 0xc
push 0x28
lea eax, [ebp - 0xb8]
push 0x5c9864
push eax
call fcn.00448a50
mov esi, eax
push 0x13
lea eax, [ebp - 0xc4]
mov dword [ebp - 4], 0
push str.ESocketLookupFailed
push eax
call fcn.00448a50
add esp, 0x18
push 0xb2
push esi
push eax
lea ecx, [ebp - 0xec]
mov byte [ebp - 4], 1
call fcn.00473950
push 0x642304
lea eax, [ebp - 0xec]
push eax
call fcn.00594600
int3