Function at 0x415460
Capabilities:
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1264
call fcn.004b9610
mov eax, dword [0x555c24]
xor eax, esp
mov dword [esp + 0x1260], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esp + 0xc], 0
push edi
cmp byte [ebx + 8], 1
mov dword [esp + 0x14], esi
jne case.0x4154f2.0
mov eax, dword [esi]
push dword [esi + 0x14]
call dword [eax]
push dword [ebx + 4]
mov edx, dword [esi]
mov edi, eax
push edi
mov ecx, esi
mov dword [esp + 0x18], edi
call dword [edx + 4]
xor eax, eax
mov dword [esp + 0x1050], 2
push edi
mov dword [esp + 0x1058], eax
mov dword [esp + 0x105c], eax
mov dword [esp + 0x1164], eax
call fcn.004904d0
add esp, 4
push eax
push edi
call fcn.00490bc0
add esp, 8
cmp eax, 6
ja case.0x4154f2.1
jmp dword [eax*4 + 0x415758]
mov eax, dword [esp + 0x1058]
xor ecx, ecx
test eax, eax
je 0x41551e
mov edx, dword [ebx + 4]
nop dword [eax]
cmp dword [esp + ecx*4 + 0x105c], edx
je 0x41551e
inc ecx
cmp ecx, eax
jb 0x415510
cmp ecx, eax
jne 0x415578
cmp eax, 0x40
jae 0x415578
mov eax, dword [ebx + 4]
mov dword [esp + ecx*4 + 0x105c], eax
inc dword [esp + 0x1058]
jmp 0x415578
mov ecx, dword [esp + 0x1160]
xor eax, eax
test ecx, ecx
je 0x41555e
mov edx, dword [ebx + 4]
nop word [eax + eax]
cmp dword [esp + eax*4 + 0x1164], edx
je 0x41555e
inc eax
cmp eax, ecx
jb 0x415550
cmp eax, ecx
jne 0x415578
cmp ecx, 0x40
jae 0x415578
mov ecx, dword [ebx + 4]
mov dword [esp + eax*4 + 0x1164], ecx
inc dword [esp + 0x1160]
lea eax, [esp + 0x1050]
push eax
push 0
lea eax, [esp + 0x1060]
push eax
lea eax, [esp + 0x116c]
push eax
mov eax, dword [ebx + 4]
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 1
jl case.0x4154f2.1
push edi
call fcn.00491460
add esp, 4
cmp eax, 3
je case.0x4154f2.0
jmp 0x4154b4
push 0
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je case.0x4154f2.0
mov ecx, dword [esi + 4]
call fcn.00412510
push 0x88
call fcn.004c8445
add esp, 4
mov edi, eax
push 0x88
push 0
push edi
call fcn.004bd7d0
add esp, 0xc
lea eax, [esp + 0x18]
push 0x1030
push 0
push eax
call fcn.004bd7d0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [ebx + 4]
mov dword [esp + 0x18], eax
mov al, byte [ebx + 8]
mov byte [esp + 0x20], al
lea eax, [esp + 0x104c]
push eax
push 0x8004667e
push ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1040], 0x1e
mov dword [esp + 0x1058], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
lea eax, [esp + 0x18]
mov ecx, esi
push eax
push edi
call fcn.00415780
test al, al
je 0x415719
mov ecx, dword [esi + 4]
push edi
call fcn.00412810
test al, al
je 0x415701
push ecx
push edi
call fcn.00415cf0
test eax, eax
je 0x415701
lea eax, [esp + 0x18]
mov ecx, esi
push eax
push edi
call fcn.00416350
test al, al
je 0x415701
cmp byte [ebx + 8], 1
jne 0x4156c3
call fcn.00417490
push 0
call fcn.00417e40
mov eax, dword [esi]
add esp, 4
mov ecx, esi
push dword [esp + 0x10]
call dword [eax + 0x14]
push dword [esp + 0x10]
mov esi, eax
call fcn.004913f0
mov ecx, dword [esp + 0x18]
add esp, 4
mov edx, dword [ecx]
push dword [esp + 0x10]
call dword [edx + 0x18]
push esi
jmp 0x4156c6
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_closesocket]
push edi
call fcn.00416570
test edi, edi
je 0x4156df
push edi
call fcn.004c6770
add esp, 4
push ebx
call fcn.004c6770
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1260]
xor ecx, esp
call fcn.004b8b56
mov esp, ebp
pop ebp
ret 4
push ecx
push edi
call fcn.00415cf0
test eax, eax
je 0x415719
lea eax, [esp + 0x18]
mov ecx, esi
push eax
push edi
call fcn.00416350
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_closesocket]
push ebx
call fcn.004c6770
add esp, 4
push edi
call fcn.00416570
test edi, edi
je 0x41573e
push edi
call fcn.004c6770
add esp, 4
mov ecx, dword [esp + 0x126c]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b8b56
mov esp, ebp
pop ebp
ret 4