Function at 0x4299d0
Capabilities:
Get local ipv4 addresses
Get socket information
Get socket status

Disassembly:
sub esp, 0x234
mov eax, dword [0x4e9964]
mov ecx, dword [0x4e9960]
cmp eax, ecx
mov dword [esp + 4], 0
ja 0x4299ef
mov eax, ecx
inc eax
push 0
mov dword [esp + 0xc], eax
call fcn.00486540
mov eax, dword [0x4e9964]
add esp, 4
cmp eax, 0xffffffff
mov dword [esp + 0x2c], 0
je 0x429a1c
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], 1
mov eax, dword [0x511564]
test eax, eax
push ebx
push ebp
push esi
push edi
jne 0x429c2b
lea ecx, [ecx]
push 0
push 0
push 0
mov ecx, 0x41
lea esi, [esp + 0x48]
lea edi, [esp + 0x14c]
lea eax, [esp + 0x14c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x24]
push eax
push ecx
call sub.WSOCK32.dll_select
test eax, eax
jge 0x429aa8
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2714
je 0x429c1e
mov eax, dword [0x511a34]
mov edx, eax
inc eax
test edx, edx
mov dword [0x511a34], eax
jne 0x429c1e
mov eax, dword [0x511564]
test eax, eax
jne 0x429c2b
call sub.WSOCK32.dll_WSAGetLastError
push eax
push str.mysqld:_Got_error__d_from_select
call fcn.004247f0
add esp, 8
jmp 0x429c1e
mov eax, dword [0x511564]
test eax, eax
jne 0x429c2b
mov ebx, dword [0x4e9964]
xor edi, edi
lea ecx, [ecx]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ebp, 0x10
push ebx
mov dword [esp + 0x1c], ebp
call sub.WSOCK32.dll_accept
mov esi, eax
cmp esi, 0xffffffff
jne 0x429b42
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2714
je 0x429af8
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2734
jne 0x429afe
inc edi
cmp edi, 0xa
jb 0x429ac0
mov eax, dword [esp + 0x14]
mov edx, eax
inc eax
test dl, dl
mov dword [esp + 0x14], eax
jne 0x429b1a
push str.Error_in_accept
call fcn.00424890
add esp, 4
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x17
je 0x429b32
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x18
jne 0x429c1e
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x429c1e
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x30]
push ecx
push esi
mov dword [esp + 0x1c], ebp
call sub.WSOCK32.dll_getsockname
test eax, eax
jge 0x429b7a
push str.Error_on_new_connection_socket
call fcn.00424890
add esp, 4
push 2
push esi
call sub.WSOCK32.dll_shutdown
push esi
call sub.WSOCK32.dll_closesocket
jmp 0x429c1e
push 0x18
push 0x640
call fcn.0047fff0
add esp, 8
test eax, eax
je 0x429b9a
mov ecx, eax
call fcn.004415e0
mov ebp, eax
test ebp, ebp
jne 0x429baa
push 2
push esi
call sub.WSOCK32.dll_shutdown
push esi
call sub.WSOCK32.dll_closesocket
jmp 0x429c1e
mov eax, dword [0x4e9960]
cmp ebx, eax
sete dl
xor ecx, ecx
cmp ebx, eax
sete cl
push edx
inc ecx
push ecx
push esi
call fcn.00473a50
mov edi, eax
add esp, 0xc
test edi, edi
je 0x429c07
lea edx, [ebp + 0xc]
push edi
push edx
call fcn.0042bb30
add esp, 8
test eax, eax
jne 0x429bfc
cmp ebx, dword [0x4e9960]
jne 0x429bf1
mov eax, dword [str.localhost]
mov dword [ebp + 0x448], eax
push ebp
call fcn.00429c40
add esp, 4
jmp 0x429c1e
push edi
call fcn.00473b20
add esp, 4
jmp 0x429c15
push 2
push esi
call sub.WSOCK32.dll_shutdown
push esi
call sub.WSOCK32.dll_closesocket
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
mov eax, dword [0x511564]
test eax, eax
je 0x429a30
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x234
ret