Function at 0x4a44d0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x334
mov eax, dword [0x598b80]
xor eax, esp
mov dword [esp + 0x330], eax
movsd xmm0, qword [ebp + 8]
push ebx
push esi
push edi
sub esp, 8
movsd qword [esp], xmm0
call fcn.004a7d20
cmp dword [0x5999dc], 0
fstp qword [ebp + 8]
je 0x4a461e
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
lea eax, [esp + 0x234]
mov dword [esp + 0x20], 0
push eax
lea eax, [esp + 0x134]
mov ecx, 0xc3
push eax
lea eax, [esp + 0x34]
mov esi, 0x5999e0
push eax
mov eax, dword [0x5999d8]
lea edi, [esp + 0x38]
inc eax
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.ws2_32.dll_select]
test eax, eax
je 0x4a460f
xor ebx, ebx
cmp dword [0x5999dc], ebx
jle 0x4a4604
xor edi, edi
nop
mov eax, dword [0x599cf0]
lea ecx, [esp + 0x28]
push ecx
mov eax, dword [edi + eax]
push eax
mov dword [esp + 0x2c], eax
call sub.ws2_32.dll___WSAFDIsSet
neg eax
sbb eax, eax
neg eax
movzx esi, ax
lea eax, [esp + 0x12c]
push eax
push dword [esp + 0x28]
call sub.ws2_32.dll___WSAFDIsSet
mov ecx, esi
or ecx, 4
test eax, eax
movzx edx, cx
lea eax, [esp + 0x230]
mov ecx, esi
push eax
push dword [esp + 0x28]
cmove edx, ecx
movzx esi, dx
call sub.ws2_32.dll___WSAFDIsSet
mov ecx, esi
or ecx, 8
test eax, eax
movzx edx, cx
mov ecx, esi
cmove edx, ecx
mov ecx, dword [0x599cf0]
movzx eax, dx
test word [edi + ecx + 4], ax
je 0x4a45f4
push dword [edi + ecx + 0xc]
mov eax, dword [edi + ecx + 8]
push dword [esp + 0x28]
call eax
add esp, 8
inc ebx
add edi, 0x10
cmp ebx, dword [0x5999dc]
jl 0x4a4570
xorps xmm0, xmm0
movsd qword [esp + 0x18], xmm0
jmp 0x4a462c
movsd xmm0, qword [0x56bb48]
minsd xmm0, qword [ebp + 8]
jmp 0x4a4623
movsd xmm0, qword [ebp + 8]
movsd qword [esp + 0x18], xmm0
xorps xmm0, xmm0
cmp dword [0x599824], 0
jne 0x4a463e
cmp dword [0x599804], 0
je 0x4a4644
movsd qword [esp + 0x18], xmm0
call fcn.004970c0
test eax, eax
jne 0x4a466a
movsd xmm0, qword [esp + 0x18]
ucomisd xmm0, qword [0x56a930]
lahf
test ah, 0x44
jp 0x4a466a
xorps xmm0, xmm0
movsd qword [esp + 0x18], xmm0
call dword [0x596dac]
movsd xmm0, qword [0x56bec0]
sub esp, 8
minsd xmm0, qword [esp + 0x20]
movsd qword [esp], xmm0
call fcn.004d40b0
fmul qword [0x5691a0]
add esp, 8
push 0xff
fadd qword [0x55cb60]
fstp qword [esp + 0x1c]
cvttsd2si eax, qword [esp + 0x1c]
push eax
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
call dword [0x596da8]
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
push 1
push 0
push 0
push 0
push 0x599990
call esi
test eax, eax
jle 0x4a477b
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
push 0x599990
call fcn.00497250
add esp, 4
test eax, eax
jne 0x4a4764
mov eax, dword [0x599994]
cmp eax, 0x12
jne 0x4a4710
push 0xf
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_raise]
mov eax, dword [0x599994]
add esp, 4
cmp eax, dword [0x59998c]
jne 0x4a4756
mov eax, dword [0x599998]
mov dword [0x599cf4], eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004aee40
add esp, 8
test eax, eax
jne 0x4a4756
push dword [esp + 0x24]
call dword [esp + 0x1c]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004aee40
add esp, 0xc
test eax, eax
je 0x4a4738
push 0x599990
call edi
push 0x599990
call ebx
push 1
push 0
push 0
push 0
push 0x599990
call esi
test eax, eax
jg 0x4a46e5
call fcn.004aee00
test al, al
jne 0x4a4789
call fcn.004a3ae0
call fcn.00497380
mov ecx, dword [esp + 0x33c]
fld1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00515f8b
mov esp, ebp
pop ebp
ret 8