Function at 0x4380f0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push edi
push 0x601860
movq qword [ebp - 0x1c], xmm0
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x20], 0
movq qword [ebp - 0x34], xmm0
mov dword [ebp - 0x2c], 0
call fcn.00429200
mov eax, dword [0x60188c]
mov esi, dword [ebp + 8]
push 0x601860
mov esi, dword [eax + esi*4]
call fcn.00429210
mov eax, dword [ebp + 0x10]
mov esi, dword [esi + 0x60]
cdq
push edx
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], esi
push eax
call fcn.00429bc0
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.0043b510
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.0043b510
lea eax, [ebp - 0x34]
push eax
push esi
call fcn.0043b510
mov ebx, dword [ebp + 0xc]
add esp, 0x2c
mov eax, dword [ebx]
test al, 1
je 0x43819a
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.0043b510
mov edi, dword [ebp - 0x1c]
add esp, 8
mov eax, dword [edi]
mov dword [edi + eax*4 + 4], esi
inc dword [edi]
mov eax, dword [ebx]
jmp 0x43819d
mov edi, dword [ebp - 0x1c]
test al, 2
je 0x4381c0
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.0043b510
mov ebx, dword [ebp - 0x28]
add esp, 8
mov eax, dword [ebx]
mov dword [ebx + eax*4 + 4], esi
mov eax, dword [ebp + 0xc]
inc dword [ebx]
mov eax, dword [eax]
jmp 0x4381c3
mov ebx, dword [ebp - 0x28]
test al, 4
je 0x4381e4
lea eax, [ebp - 0x34]
push eax
push esi
call fcn.0043b510
mov esi, dword [ebp - 0x34]
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, dword [esi]
mov dword [esi + eax*4 + 4], ecx
inc dword [esi]
jmp 0x4381e7
mov esi, dword [ebp - 0x34]
mov eax, dword [0x5ed8f8]
test eax, eax
je 0x4381ff
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x4381ff
push dword [ebp + 8]
call eax
add esp, 4
xor eax, eax
lea ecx, [ebp - 0x10]
cmp dword [ebp + 0x10], eax
cmovl ecx, eax
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 8], eax
je 0x4382ad
test edi, edi
je 0x438222
cmp dword [edi], 0
jne 0x438234
test ebx, ebx
je 0x43822b
cmp dword [ebx], 0
jne 0x438234
test esi, esi
je 0x4382ad
cmp dword [esi], 0
je 0x4382ad
push ecx
push esi
push ebx
push edi
push eax
call dword [sym.imp.WS2_32.dll_select]
push eax
call fcn.0053b400
mov ecx, eax
add esp, 4
mov dword [ebp + 8], ecx
test ecx, ecx
jns 0x4382c4
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [ebp + 0x10], eax
mov ecx, dword [eax + 0x28f0]
test ecx, ecx
je 0x43826a
mov eax, ecx
jmp 0x43827a
call fcn.00541542
mov ecx, eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x28f0]
cmp dword [ecx], 0x2726
jne 0x438296
test eax, eax
jne 0x43828b
call fcn.00541542
mov dword [eax], 0x2714
mov ecx, dword [ebp + 8]
jmp 0x4382c4
test eax, eax
jne 0x43829f
call fcn.00541542
cmp dword [eax], 0x2736
je 0x43833b
jmp 0x438291
push 1
push ecx
call fcn.00429df0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SleepEx]
xor ecx, ecx
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
test ecx, ecx
jle 0x43830a
push edi
push dword [ebp - 4]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4382e4
mov eax, dword [ebp + 0xc]
or dword [eax], 1
push ebx
push dword [ebp - 4]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4382f7
mov eax, dword [ebp + 0xc]
or dword [eax], 2
push esi
push dword [ebp - 4]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x43830a
mov eax, dword [ebp + 0xc]
or dword [eax], 4
test edi, edi
je 0x438317
push edi
call fcn.00541560
add esp, 4
test ebx, ebx
je 0x438324
push ebx
call fcn.00541560
add esp, 4
test esi, esi
je 0x438331
push esi
call fcn.00541560
add esp, 4
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push ebx
push edi
push dword [ebp - 8]
call fcn.00436bc0
int3