Function at 0x598880
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 8]
mov ecx, 0x40
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [ebx + 0x244]
lea edi, [ebx + 0x106]
rep movsd dword es:[edi], dword [esi]
push 4
mov dword [ebp + 8], eax
lea eax, [ebp - 4]
push eax
push 4
movsw word es:[edi], word [esi]
push 0xffff
push dword [ebx + 0x21c]
lea edi, [ebx + 0x21c]
mov dword [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x598934
call fcn.004db1d0
mov edi, eax
test edi, edi
je 0x598915
mov ecx, dword [edi]
push 0x402
push edi
mov ecx, dword [ecx + 4]
call ecx
add esp, 8
cmp eax, 3
jl 0x598915
mov esi, dword [edi]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [ebx + 0x21c]
mov eax, dword [esi]
push ebx
push str.id_p_handle_p:_setsockopt___call_for_enabling_SO_REUSEADDR_failed_with_WSAError__d
push 0x402
push 3
push edi
call eax
add esp, 0x1c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00596e30
push eax
call fcn.004d86d0
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x30
push 1
push dword [ebx]
call fcn.004d8260
mov esi, eax
add esp, 0xc
mov dword [ebp - 0xc], esi
test esi, esi
jne 0x59895f
pop edi
pop esi
mov dword [ebx + 0x22c], 0x200
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 8]
mov dword [esi + 0xc], esi
mov dword [eax], 0x5974d0
cmp dword [ebx + 0x224], 0
mov dword [ebp - 0x18], eax
je 0x598988
push 0x403
call fcn.004d86d0
mov ecx, dword [ebx]
add esp, 4
jmp 0x5989a1
mov eax, dword [ebp + 0x10]
push edi
push eax
mov dword [ebx + 0x224], eax
call fcn.00587de0
mov ecx, dword [ebx]
add esp, 8
test eax, eax
je 0x5989bf
push esi
push ecx
mov dword [ebx + 0x22c], 0x200
call fcn.004d84f0
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi], ecx
mov dword [esi + 4], ebx
mov dword [ebx + 0x22c], 2
call fcn.00599ab0
mov edi, eax
mov eax, dword [ebp + 8]
push esi
push 0x597b10
mov ecx, dword [eax + 4]
mov byte [ecx + 0x58], 1
mov ecx, dword [eax + 4]
add ecx, 8
push ecx
call fcn.00592ce0
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 8], 0
mov dword [eax + 0x12c], esi
mov esi, dword [ebp + 0x1c]
push esi
push dword [ebp + 0x14]
push dword [ebx + 0x21c]
call dword [sym.imp.WS2_32.dll_bind]
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x210]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.004815b0
add esp, 4
push eax
push 0
push 0
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 0x18]
push dword [ebx + 0x21c]
call edi
mov edi, dword [ebp + 0x10]
mov esi, eax
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push edi
movlpd qword [ebp - 0x20], xmm0
call fcn.00587e00
add esp, 8
test esi, esi
jne 0x598b0f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 0xc], eax
cmp eax, 0x3e5
je 0x598afc
call fcn.004db1d0
mov esi, eax
test esi, esi
je 0x598ac1
mov ecx, dword [esi]
push 0x404
push esi
mov ecx, dword [ecx + 4]
call ecx
mov edi, dword [ebp + 0xc]
add esp, 8
cmp eax, 2
jl 0x598ac4
mov eax, dword [esi]
push edi
push dword [ebx + 0x21c]
mov eax, dword [eax]
push ebx
push str.id_p_handle_p:_connection_error__d
push 0x404
push 2
push esi
call eax
add esp, 0x1c
jmp 0x598ac4
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
mov dword [eax + 0x12c], 0
mov eax, dword [eax + 4]
mov byte [eax + 0x58], 0
call fcn.004d84f0
push edi
call fcn.00596e30
push eax
call fcn.004d86d0
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0x3b9aca00
push 0x3e8
push 0
push dword [ebp - 0x14]
jmp 0x598b22
push 0
push 0x3b9aca00
push 0x3e8
push 0
push 0x1f4
call fcn.004dd790
add esp, 0x14
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x20], eax
adc edx, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], edx
call fcn.004db1d0
mov esi, eax
test esi, esi
je 0x598b73
mov ecx, dword [esi]
push 0x402
push esi
mov ecx, dword [ecx + 4]
call ecx
add esp, 8
cmp eax, 6
jl 0x598b73
push dword [ebx + 0x21c]
mov eax, dword [esi]
push ebx
push str.id_p_handle_p:_connection_pending__scheduling_timeout_task
push 0x402
mov eax, dword [eax]
push 6
push esi
call eax
add esp, 0x18
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x18]
push edi
call fcn.00588250
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret