Function at 0x45f490
Capabilities:
Get socket status
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4baa3a
mov eax, dword fs:[0]
push eax
sub esp, 0x970
mov eax, dword [0x57e030]
xor eax, esp
mov dword [esp + 0x968], eax
push ebx
push esi
push edi
mov eax, dword [0x57e030]
xor eax, esp
push eax
lea eax, [esp + 0x980]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.WS2_32.dll_select]
xor ebx, ebx
mov esi, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x3c], 0x10
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], 0x30d40
mov eax, dword [esi + 0x24]
lea ecx, [esp + 0x40]
push ecx
push ebx
push ebx
lea edx, [esp + 0x78]
mov dword [esp + 0x7c], eax
push edx
inc eax
push eax
mov dword [esp + 0x80], 1
call edi
cmp byte [esi + 0x28], bl
jne 0x45f599
cmp eax, 0xffffffff
je 0x45f599
cmp eax, ebx
jle 0x45f4f5
mov ecx, dword [esi + 0x24]
lea eax, [esp + 0x6c]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x45f4f5
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x24]
lea edx, [esp + 0x3c]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_accept]
cmp eax, 0xffffffff
jne 0x45f6e0
lea edx, [esp + 0x48]
push edx
call fcn.00404880
mov dword [esp + 0x988], 4
mov dword [esp + 0x48], vtable.SocketException.0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea esi, [esp + 0x4c]
call fcn.0045fd20
push 0x56ea00
mov eax, esi
push eax
mov dword [esp + 0x990], 0xffffffff
call fcn.004841dc
lea ecx, [esp + 0x1c]
push 4
mov dword [esp + 0x1c], vtable.Exception.0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], vtable.StringStorage.0
call fcn.00480ed5
add esp, 4
cmp eax, ebx
je 0x45f5c7
lea edx, [esp + 0x20]
mov dword [eax], edx
jmp 0x45f5c9
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov eax, 0x4c8df0
mov dword [esp + 0x988], 1
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x45f5f0
sub eax, edx
sar eax, 1
inc eax
lea ecx, [esp + 0x20]
call fcn.00403440
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov esi, ecx
sub esi, eax
sar esi, 1
add esi, esi
mov edi, eax
cmp eax, ecx
jbe 0x45f624
call fcn.00480e22
mov eax, dword [esp + 0x20]
cmp eax, ebx
jne 0x45f6d9
call fcn.00480e22
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x45f641
call fcn.00480e22
push esi
push 0x4c8df0
push edi
call fcn.00483e40
add esp, 0xc
mov dword [esp + 0x988], 2
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 4]
push 0x4c8df0
lea ecx, [esp + 0x20]
call edx
mov dword [esp + 0x988], 3
mov dword [esp + 0x18], vtable.SocketException.0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push ebx
push 0x800
lea ecx, [esp + 0x17c]
push ecx
push 0x400
push eax
push ebx
push 0x1200
mov dword [esp + 0x54], eax
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x174]
push edx
mov edx, dword [eax + 4]
lea ecx, [esp + 0x20]
call edx
push 0x56ea00
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x990], 0xffffffff
call fcn.004841dc
mov eax, dword [eax]
jmp 0x45f637
mov ecx, dword [esp + 0x980]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x968]
xor ecx, esp
call fcn.004807f8
mov esp, ebp
pop ebp
ret 4